nestjs-knife4j-plus 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +59 -0
  3. package/dist/index.d.ts +47 -0
  4. package/dist/index.js +38 -0
  5. package/package.json +48 -0
  6. package/ui/assets/css/app.12fbd497.css +15 -0
  7. package/ui/assets/css/chunk-1287e0be.d6530adc.css +1 -0
  8. package/ui/assets/css/chunk-f3245bfc.9612b987.css +1 -0
  9. package/ui/assets/css/chunk-vendors.f24a310a.css +1 -0
  10. package/ui/assets/fonts/fontawesome-webfont.706450d7.ttf +0 -0
  11. package/ui/assets/fonts/fontawesome-webfont.97493d3f.woff2 +0 -0
  12. package/ui/assets/fonts/fontawesome-webfont.d9ee23d5.woff +0 -0
  13. package/ui/assets/fonts/fontawesome-webfont.f7c2b4b7.eot +0 -0
  14. package/ui/assets/fonts/iconfont.4ca3d0c0.ttf +0 -0
  15. package/ui/assets/fonts/iconfont.e2d2b98e.eot +0 -0
  16. package/ui/assets/img/editormd-logo.53ea80e2.svg +11 -0
  17. package/ui/assets/img/fontawesome-webfont.29800836.svg +565 -0
  18. package/ui/assets/img/iconfont.1d48c203.svg +56 -0
  19. package/ui/assets/img/loading.c929501e.gif +0 -0
  20. package/ui/assets/img/loading@2x.695405a9.gif +0 -0
  21. package/ui/assets/img/loading@3x.65eacf61.gif +0 -0
  22. package/ui/assets/js/app.f5d7ba62.js +1 -0
  23. package/ui/assets/js/chunk-0d102d5a.52847613.js +1 -0
  24. package/ui/assets/js/chunk-0fd67716.7c05a478.js +1 -0
  25. package/ui/assets/js/chunk-1287e0be.3f3aadeb.js +8 -0
  26. package/ui/assets/js/chunk-214218f0.e57955ea.js +1 -0
  27. package/ui/assets/js/chunk-2d0af44e.986e3858.js +1 -0
  28. package/ui/assets/js/chunk-2d0bd799.9cfd78bf.js +1 -0
  29. package/ui/assets/js/chunk-2d0da532.afc7b81f.js +1 -0
  30. package/ui/assets/js/chunk-3b888a65.4da69ee0.js +1 -0
  31. package/ui/assets/js/chunk-42d52f4e.cb854102.js +9 -0
  32. package/ui/assets/js/chunk-589faee0.76a3ceab.js +8 -0
  33. package/ui/assets/js/chunk-6cbe5a9e.eef687ac.js +1 -0
  34. package/ui/assets/js/chunk-735c675c.fa58a10f.js +1 -0
  35. package/ui/assets/js/chunk-9185dcc8.4d55eb83.js +9 -0
  36. package/ui/assets/js/chunk-9aa77aca.5de9c585.js +47 -0
  37. package/ui/assets/js/chunk-a27fb06c.58b6553d.js +1 -0
  38. package/ui/assets/js/chunk-adb9e944.9d64cfc4.js +8 -0
  39. package/ui/assets/js/chunk-f3245bfc.91b00092.js +1 -0
  40. package/ui/assets/js/chunk-vendors.b5c20e55.js +335 -0
  41. package/ui/doc.html +1 -0
  42. package/ui/favicon.ico +0 -0
@@ -0,0 +1,8 @@
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-589faee0"],{"3c60":function(e,t,n){"use strict";n.r(t);var o=(n("a15b"),n("14d9"),n("e9f5"),n("7d54"),n("b680"),n("d3b7"),n("ac1f"),n("25f0"),n("3ca3"),n("5319"),n("159b"),n("ddb0"),n("b1c7")),r=n("b311"),s=n.n(r),i={props:{api:{type:Object,required:!0},swaggerInstance:{type:Object,required:!0},debugSend:{type:Boolean,default:!1},responseHeaders:{type:Array},responseRawText:{type:String,default:""},responseCurlText:{type:String,default:""},responseStatus:{type:Object},responseContent:{type:Object},responseFieldDescriptionChecked:{type:Boolean,default:!0}},components:{EditorDebugShow:function(){return Promise.all([n.e("chunk-3b888a65"),n.e("chunk-0fd67716"),n.e("chunk-214218f0"),n.e("chunk-735c675c")]).then(n.bind(null,"b3ee"))}},data:function(){return{pagination:!1,i18n:null,base64Image:!1,debugResponse:!0,responseHeaderColumn:[]}},watch:{language:function(e,t){this.initI18n()}},computed:{language:function(){return this.$store.state.globals.language},responseSizeText:function(){var e="0 B",t=this.responseStatus;if(null!=t&&null!=t){var n=t.size,o=(n/1024).toFixed(2),r=(n/1024/1024).toFixed(2);e=o>1?o+" KB":r>1?r+" MB":n+" B"}return e}},created:function(){this.initI18n(),this.copyRawText(),this.copyCurlText()},methods:{getCurrentI18nInstance:function(){return this.$i18n.messages[this.language]},base64Init:function(){var e=o.a.getValue(this.responseContent,"base64","",!0);o.a.strNotBlank(e)&&(this.base64Image=!0)},initI18n:function(){this.i18n=this.getCurrentI18nInstance(),this.responseHeaderColumn=this.i18n.table.debugResponseHeaderColumns},copyRawText:function(){var e=this,t="btnDebugCopyRaw"+this.api.id,n=new s.a("#"+t,{text:function(){return e.responseRawText}}),o=this.i18n.message.copy.raw.success,r=this.i18n.message.copy.raw.fail;n.on("success",(function(t){e.$message.info(o)})),n.on("error",(function(t){e.$message.info(r)}))},copyCurlText:function(){var e=this,t="btnDebugCopyCurl"+this.api.id,n=new s.a("#"+t,{text:function(){return e.responseCurlText}}),o=this.i18n.message.copy.curl.success,r=this.i18n.message.copy.curl.fail;n.on("success",(function(t){e.$message.info(o)})),n.on("error",(function(t){e.$message.info(r)}))},resetResponseContent:function(){if(null!=this.responseContent&&"json"==this.responseContent.mode){var e=this.responseContent.text;this.responseContent.text=o.a.json5stringify(o.a.json5parse(e))}},showFieldDesChange:function(e){var t=e.target.checked;this.$emit("debugShowFieldDescriptionChange",t),this.toggleFieldDescription(t)},debugEditorChange:function(e){this.$emit("debugEditorChange",e)},toggleFieldDescription:function(e){var t="responseEditorContent"+this.api.id,n=document.getElementById(t).getElementsByClassName("knife4j-debug-editor-field-description");o.a.arrNotEmpty(n)?n.forEach((function(t){t.style.display=e?"block":"none"})):this.showEditorFieldAnyWay()},showEditorFieldDescription:function(e){var t=this;o.a.checkUndefined(e)&&parseInt(e)<=200&&setTimeout((function(){t.showEditorFieldWait()}),100)},showEditorFieldWait:function(){this.debugSend&&this.responseFieldDescriptionChecked&&"json"==this.responseContent.mode&&this.showEditorFieldAnyWay()},showEditorFieldAnyWay:function(){var e=this.swaggerInstance,t=this.api.getHttpSuccessCodeObject(),n="responseEditorContent"+this.api.id,r=document.getElementById(n),s=[],i=r.getElementsByClassName("ace_text-layer"),a=0,u=r.querySelector(".ace_print-margin");if(o.a.checkUndefined(u)&&o.a.checkUndefined(u.style)&&(a=u.style.left),i.length>0)for(var c=i[0].getElementsByClassName("ace_line"),l=0;l<c.length;l++){var p=c[l],d=p.getElementsByClassName("ace_variable"),f=null;if(o.a.arrNotEmpty(d)){f=o.a.toString(d[0].innerHTML,"").replace(/^"(.*)"$/g,"$1");var y=p.getElementsByClassName("knife4j-debug-editor-field-description");if(!o.a.arrNotEmpty(y)){var g=document.createElement("span");g.className="knife4j-debug-editor-field-description",g.innerHTML=t.responseDescriptionFind(s,f,e),g.style.left=a,p.appendChild(g)}}var h=p.getElementsByClassName("ace_paren");if(o.a.arrNotEmpty(h)){for(var b=[],m=0;m<h.length;m++)b.push(h[m].innerHTML);switch(b.join("")){case"[":case"{":s.push(f||0);break;case"}":case"]":s.pop()}}}}}},a=n("2877"),u=Object(a.a)(i,(function(){var e=this,t=e._self._c;return t("a-row",{staticClass:"knife4j-debug-response"},[e.debugSend?t("a-row",[t("a-tabs",{attrs:{defaultActiveKey:"debugResponse"}},[t("template",{slot:"tabBarExtraContent"},[e.responseStatus?t("a-row",{staticClass:"knife4j-debug-status"},[t("span",[t("a-checkbox",{attrs:{defaultChecked:e.responseFieldDescriptionChecked},on:{change:e.showFieldDesChange}},[t("span",{staticStyle:{color:"#919191"},domProps:{innerHTML:e._s(e.$t("debug.response.showDes"))}},[e._v("显示说明")])])],1),t("span",{staticClass:"key",domProps:{innerHTML:e._s(e.$t("debug.response.code"))}},[e._v("响应码:")]),t("span",{staticClass:"value"},[e._v(e._s(e.responseStatus.code))]),t("span",{staticClass:"key",domProps:{innerHTML:e._s(e.$t("debug.response.cost"))}},[e._v("耗时:")]),t("span",{staticClass:"value"},[e._v(e._s(e.responseStatus.cost))]),t("span",{staticClass:"key",domProps:{innerHTML:e._s(e.$t("debug.response.size"))}},[e._v("大小:")]),t("span",{staticClass:"value"},[e._v(e._s(e.responseSizeText)+" ")])]):e._e()],1),t("a-tab-pane",{key:"debugResponse",attrs:{tab:e.i18n.debug.response.content}},[e.responseContent?t("a-row",[e.responseContent.blobFlag?t("a-row",[e.responseContent.imageFlag?t("div",[t("img",{attrs:{src:e.responseContent.blobUrl}})]):t("div",[t("a-button",{attrs:{type:"link",href:e.responseContent.blobUrl,download:e.responseContent.blobFileName},domProps:{innerHTML:e._s(e.$t("debug.response.download"))}},[e._v("下载文件")])],1)]):t("a-row",{attrs:{id:"responseEditorContent"+e.api.id}},[t("editor-debug-show",{attrs:{debugResponse:e.debugResponse,value:e.responseContent.text,mode:e.responseContent.mode},on:{showDescription:e.showEditorFieldDescription,debugEditorChange:e.debugEditorChange}})],1)],1):e._e()],1),t("a-tab-pane",{key:"debugRaw",attrs:{tab:"Raw",forceRender:""}},[t("a-row",{staticClass:"knife4j-debug-response-mt"},[t("a-button",{attrs:{id:"btnDebugCopyRaw"+e.api.id,type:"primary"}},[t("a-icon",{attrs:{type:"copy"}}),e._v(" "),t("span",{domProps:{innerHTML:e._s(e.$t("debug.response.copy"))}},[e._v("复制")])],1)],1),t("a-row",{staticClass:"knife4j-debug-response-mt"},[t("a-textarea",{attrs:{rows:10,value:e.responseRawText}})],1)],1),t("a-tab-pane",{key:"debugHeaders",attrs:{tab:"Headers"}},[t("a-row",{staticClass:"knife4j-debug-response-mt"},[t("a-table",{attrs:{bordered:"",size:"small",columns:e.responseHeaderColumn,pagination:e.pagination,dataSource:e.responseHeaders,rowKey:"id"}})],1)],1),t("a-tab-pane",{key:"debugCurl",attrs:{tab:"Curl"}},[t("a-row",{staticClass:"knife4j-debug-response-mt"},[t("a-button",{attrs:{id:"btnDebugCopyCurl"+e.api.id,type:"primary"}},[t("a-icon",{attrs:{type:"copy"}}),e._v(" "),t("span",{domProps:{innerHTML:e._s(e.$t("debug.response.copy"))}},[e._v("复制")])],1)],1),t("a-row",{staticClass:"knife4j-debug-response-mt"},[t("pre",{staticClass:"knife4j-debug-response-curl"},[e._v(e._s(e.responseCurlText))])])],1),null!=e.responseContent&&null!=e.responseContent.base64&&""!=e.responseContent.base64?t("a-tab-pane",{key:"debugBase64Img",attrs:{tab:"Base64Img"}},[t("a-row",{staticClass:"knife4j-debug-response-mt"},[t("img",{attrs:{src:e.responseContent.base64}})])],1):e._e()],2)],1):t("a-row")],1)}),[],!1,null,null,null);t.default=u.exports},b311:function(e,t,n){
2
+ /*!
3
+ * clipboard.js v2.0.11
4
+ * https://clipboardjs.com/
5
+ *
6
+ * Licensed MIT © Zeno Rocha
7
+ */
8
+ e.exports=function(){var e={686:function(e,t,n){"use strict";n.d(t,{default:function(){return E}});var o=n(279),r=n.n(o),s=n(370),i=n.n(s),a=n(817),u=n.n(a);function c(e){try{return document.execCommand(e)}catch(e){return!1}}var l=function(e){var t=u()(e);return c("cut"),t},p=function(e,t){var n=function(e){var t="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[t?"right":"left"]="-9999px";var o=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(o,"px"),n.setAttribute("readonly",""),n.value=e,n}(e);t.container.appendChild(n);var o=u()(n);return c("copy"),n.remove(),o},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof e?n=p(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?n=p(e.value,t):(n=u()(e),c("copy")),n};function f(e){return(f="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})(e)}var y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,o=e.container,r=e.target,s=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==r){if(!r||"object"!==f(r)||1!==r.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&r.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(r.hasAttribute("readonly")||r.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return s?d(s,{container:o}):r?"cut"===n?l(r):d(r,{container:o}):void 0};function g(e){return(g="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})(e)}function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=C(e);if(t){var r=C(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==g(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(e,t){var n="data-clipboard-".concat(e);if(t.hasAttribute(n))return t.getAttribute(n)}var E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(n,e);var t=m(n);function n(e,o){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(r=t.call(this)).resolveOptions(o),r.listenClick(e),r}return function(e,t,n){t&&h(e.prototype,t),n&&h(e,n)}(n,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===g(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=i()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",o=y({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(o?"success":"error",{action:n,text:o,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return w("action",e)}},{key:"defaultTarget",value:function(e){var t=w("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return w("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return d(e,t)}},{key:"cut",value:function(e){return l(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}]),n}(r())},828:function(e){if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){var o=n(828);function r(e,t,n,o,r){var i=s.apply(this,arguments);return e.addEventListener(n,i,r),{destroy:function(){e.removeEventListener(n,i,r)}}}function s(e,t,n,r){return function(n){n.delegateTarget=o(n.target,t),n.delegateTarget&&r.call(e,n)}}e.exports=function(e,t,n,o,s){return"function"==typeof e.addEventListener?r.apply(null,arguments):"function"==typeof n?r.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return r(e,t,n,o,s)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var o=n(879),r=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!o.string(t))throw new TypeError("Second argument must be a String");if(!o.fn(n))throw new TypeError("Third argument must be a Function");if(o.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(o.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(o.string(e))return function(e,t,n){return r(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var o=window.getSelection(),r=document.createRange();r.selectNodeContents(e),o.removeAllRanges(),o.addRange(r),t=o.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var o=this.e||(this.e={});return(o[e]||(o[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var o=this;function r(){o.off(e,r),t.apply(n,arguments)}return r._=t,this.on(e,r,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),o=0,r=n.length;o<r;o++)n[o].fn.apply(n[o].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),o=n[e],r=[];if(o&&t)for(var s=0,i=o.length;s<i;s++)o[s].fn!==t&&o[s].fn._!==t&&r.push(o[s]);return r.length?n[e]=r:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n(686)}().default}}]);
@@ -0,0 +1 @@
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-6cbe5a9e"],{"5bc2":function(t,e,n){"use strict";n.r(e),n.d(e,"diagram",(function(){return z}));var i=n("3835"),r=n("b85c"),a=(n("944a"),n("d9e2"),n("99af"),n("cb29"),n("4de4"),n("7db0"),n("a15b"),n("14d9"),n("fb6a"),n("6c57"),n("e9f5"),n("910d"),n("7d54"),n("0c47"),n("23dc"),n("dca8"),n("3410"),n("b64b"),n("d3b7"),n("ac1f"),n("466d"),n("5319"),n("1276"),n("498a"),n("18a5"),n("159b"),n("ddb0"),n("b60a")),s=n("898b7"),c=n("5d6b"),o=n("3683"),l=n("60b3"),h=(n("ff22"),n("5a0c"),n("8ff8"),n("c0c4"),n("dfa8"),n("c07a"),n("8a27"),n("74b2"),n("3de6"),n("6152"),n("18df"),n("c95f"),n("5e77d"),n("f906"),n("8f19"),function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,2],n=[1,5],i=[6,9,11,17,18,20,22,23,26,27,28],r=[1,15],a=[1,16],s=[1,17],c=[1,18],o=[1,19],l=[1,23],h=[1,24],d=[1,27],u=[4,6,9,11,17,18,20,22,23,26,27,28],p={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,period_statement:24,event_statement:25,period:26,event:27,open_directive:28,type_directive:29,arg_directive:30,close_directive:31,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",26:"period",27:"event",28:"open_directive",29:"type_directive",30:"arg_directive",31:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[24,1],[25,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(t,e,n,i,r,a,s){var c=a.length-1;switch(r){case 1:return a[c-1];case 3:this.$=[];break;case 4:a[c-1].push(a[c]),this.$=a[c-1];break;case 5:case 6:this.$=a[c];break;case 7:case 8:this.$=[];break;case 11:i.getCommonDb().setDiagramTitle(a[c].substr(6)),this.$=a[c].substr(6);break;case 12:this.$=a[c].trim(),i.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=a[c].trim(),i.getCommonDb().setAccDescription(this.$);break;case 15:i.addSection(a[c].substr(8)),this.$=a[c].substr(8);break;case 19:i.addTask(a[c],0,""),this.$=a[c];break;case 20:i.addEvent(a[c].substr(2)),this.$=a[c];break;case 21:i.parseDirective("%%{","open_directive");break;case 22:i.parseDirective(a[c],"type_directive");break;case 23:a[c]=a[c].trim().replace(/'/g,'"'),i.parseDirective(a[c],"arg_directive");break;case 24:i.parseDirective("}%%","close_directive","timeline")}},table:[{3:1,4:e,7:3,12:4,28:n},{1:[3]},t(i,[2,3],{5:6}),{3:7,4:e,7:3,12:4,28:n},{13:8,29:[1,9]},{29:[2,21]},{6:[1,10],7:22,8:11,9:[1,12],10:13,11:[1,14],12:4,17:r,18:a,20:s,22:c,23:o,24:20,25:21,26:l,27:h,28:n},{1:[2,2]},{14:25,15:[1,26],31:d},t([15,31],[2,22]),t(i,[2,8],{1:[2,1]}),t(i,[2,4]),{7:22,10:28,12:4,17:r,18:a,20:s,22:c,23:o,24:20,25:21,26:l,27:h,28:n},t(i,[2,6]),t(i,[2,7]),t(i,[2,11]),{19:[1,29]},{21:[1,30]},t(i,[2,14]),t(i,[2,15]),t(i,[2,16]),t(i,[2,17]),t(i,[2,18]),t(i,[2,19]),t(i,[2,20]),{11:[1,31]},{16:32,30:[1,33]},{11:[2,24]},t(i,[2,5]),t(i,[2,12]),t(i,[2,13]),t(u,[2,9]),{14:34,31:d},{31:[2,23]},{11:[1,35]},t(u,[2,10])],defaultActions:{5:[2,21],7:[2,2],27:[2,24],33:[2,23]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],i=[],r=[null],a=[],s=this.table,c="",o=0,l=0,h=2,d=1,u=a.slice.call(arguments,1),p=Object.create(this.lexer),y={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(y.yy[g]=this.yy[g]);p.setInput(t,y.yy),y.yy.lexer=p,y.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var f=p.yylloc;a.push(f);var b=p.options&&p.options.ranges;function m(){var t;return"number"!=typeof(t=i.pop()||p.lex()||d)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof y.yy.parseError?this.parseError=y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,_,k,x,w,S,O,E,j={};;){if(_=n[n.length-1],this.defaultActions[_]?k=this.defaultActions[_]:(null!=v||(v=m()),k=s[_]&&s[_][v]),void 0===k||!k.length||!k[0]){var I="";for(w in E=[],s[_])this.terminals_[w]&&w>h&&E.push("'"+this.terminals_[w]+"'");I=p.showPosition?"Parse error on line "+(o+1)+":\n"+p.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(o+1)+": Unexpected "+(v==d?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(I,{text:p.match,token:this.terminals_[v]||v,line:p.yylineno,loc:f,expected:E})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+v);switch(k[0]){case 1:n.push(v),r.push(p.yytext),a.push(p.yylloc),n.push(k[1]),v=null,l=p.yyleng,c=p.yytext,o=p.yylineno,f=p.yylloc;break;case 2:if(S=this.productions_[k[1]][1],j.$=r[r.length-S],j._$={first_line:a[a.length-(S||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(S||1)].first_column,last_column:a[a.length-1].last_column},b&&(j._$.range=[a[a.length-(S||1)].range[0],a[a.length-1].range[1]]),void 0!==(x=this.performAction.apply(j,[c,l,o,y.yy,k[1],r,a].concat(u))))return x;S&&(n=n.slice(0,-1*S*2),r=r.slice(0,-1*S),a=a.slice(0,-1*S)),n.push(this.productions_[k[1]][0]),r.push(j.$),a.push(j._$),O=s[n[n.length-2]][n[n.length-1]],n.push(O);break;case 3:return!0}}return!0}},y={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},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 i=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===i.length?this.yylloc.first_column:0)+i[i.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,i,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))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.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 a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;a<r.length;a++)if((n=this._input.match(this.rules[r[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&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(t){this.conditionStack.push(t)},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(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),28;case 1:return this.begin("type_directive"),29;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),31;case 4:return 30;case 5:case 6:break;case 7:return 11;case 8:case 9:break;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 27;case 21:return 26;case 22:return 6;case 23:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\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:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23],inclusive:!0}}};function g(){this.yy={}}return p.lexer=y,g.prototype=p,p.Parser=g,new g}());h.parser=h;var d=h,u="",p=0,y=[],g=[],f=[],b=function(){return a.j},m=function(t,e,n){Object(a.k)(globalThis,t,e,n)},v=function(){y.length=0,g.length=0,u="",f.length=0,Object(a.m)()},_=function(t){u=t,y.push(t)},k=function(){return y},x=function(){for(var t=E(),e=0;!t&&e<100;)t=E(),e++;return g.push.apply(g,f),g},w=function(t,e,n){var i={id:p++,section:u,type:u,task:t,score:e||0,events:n?[n]:[]};f.push(i)},S=function(t){f.find((function(t){return t.id===p-1})).events.push(t)},O=function(t){var e={section:u,type:u,description:t,task:t,classes:[]};g.push(e)},E=function(){var t,e=function(t){return f[t].processed},n=!0,a=Object(r.a)(f.entries());try{for(a.s();!(t=a.n()).done;){var s=Object(i.a)(t.value,2),c=s[0],o=s[1];e(c),n=n&&o.processed}}catch(t){a.e(t)}finally{a.f()}return n},j={clear:v,getCommonDb:b,addSection:_,getSections:k,getTasks:x,addTask:w,addTaskOrg:O,addEvent:S,parseDirective:m},I=Object.freeze(Object.defineProperty({__proto__:null,addEvent:S,addSection:_,addTask:w,addTaskOrg:O,clear:v,default:j,getCommonDb:b,getSections:k,getTasks:x,parseDirective:m},Symbol.toStringTag,{value:"Module"}));!function(){function t(t,e,n,r,a,s,c,o){i(e.append("text").attr("x",n+a/2).attr("y",r+s/2+5).style("font-color",o).style("text-anchor","middle").text(t),c)}function e(t,e,n,r,a,s,c,o,l){for(var h=o.taskFontSize,d=o.taskFontFamily,u=t.split(/<br\s*\/?>/gi),p=0;p<u.length;p++){var y=p*h-h*(u.length-1)/2,g=e.append("text").attr("x",n+a/2).attr("y",r).attr("fill",l).style("text-anchor","middle").style("font-size",h).style("font-family",d);g.append("tspan").attr("x",n+a/2).attr("dy",y).text(u[p]),g.attr("y",r+s/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(g,c)}}function n(t,n,r,a,s,c,o,l){var h=n.append("switch"),d=h.append("foreignObject").attr("x",r).attr("y",a).attr("width",s).attr("height",c).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");d.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,h,r,a,s,c,o,l),i(d,o)}function i(t,e){for(var n in e)n in e&&t.attr(n,e[n])}}();function T(t,e){t.each((function(){for(var t,n=Object(s.F)(this),i=n.text().split(/(\s+|<br>)/).reverse(),r=[],a=n.attr("y"),c=parseFloat(n.attr("dy")),o=n.text(null).append("tspan").attr("x",0).attr("y",a).attr("dy",c+"em"),l=0;l<i.length;l++)t=i[i.length-1-l],r.push(t),o.text(r.join(" ").trim()),(o.node().getComputedTextLength()>e||"<br>"===t)&&(r.pop(),o.text(r.join(" ").trim()),r="<br>"===t?[""]:[t],o=n.append("tspan").attr("x",0).attr("y",a).attr("dy","1.1em").text(t))}))}var D=function(t,e,n){t.append("path").attr("id","node-"+e.id).attr("class","node-bkg node-"+e.type).attr("d","M0 ".concat(e.height-5," v").concat(10-e.height," q0,-5 5,-5 h").concat(e.width-10," q5,0 5,5 v").concat(e.height-5," H0 Z")),t.append("line").attr("class","node-line-"+n).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)},L=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=function(t,e,n,i){var r=n%12-1,a=t.append("g");e.section=r,a.attr("class",(e.class?e.class+" ":"")+"timeline-node section-"+r);var s=a.append("g"),c=a.append("g"),o=c.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(T,e.width).node().getBBox(),l=i.fontSize&&i.fontSize.replace?i.fontSize.replace("px",""):i.fontSize;return e.height=o.height+1.1*l*.5+e.padding,e.height=Math.max(e.height,e.maxHeight),e.width=e.width+2*e.padding,c.attr("transform","translate("+e.width/2+", "+e.padding/2+")"),D(s,e,r),e},$=function(t,e,n){var i=t.append("g"),r=i.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(T,e.width).node().getBBox(),a=n.fontSize&&n.fontSize.replace?n.fontSize.replace("px",""):n.fontSize;return i.remove(),r.height+1.1*a*.5+e.padding},A=function(t,e,n,i,s,c,o,l,h,d,u){var p,y=Object(r.a)(e);try{for(y.s();!(p=y.n()).done;){var g=p.value,f={descr:g.task,section:n,number:n,width:150,padding:20,maxHeight:c};a.l.debug("taskNode",f);var b=t.append("g").attr("class","taskWrapper"),m=M(b,f,n,o).height;if(a.l.debug("taskHeight after draw",m),b.attr("transform","translate(".concat(i,", ").concat(s,")")),c=Math.max(c,m),g.events){var v=t.append("g").attr("class","lineWrapper");s+=100,C(t,g.events,n,i,s,o),s-=100,v.append("line").attr("x1",i+95).attr("y1",s+c).attr("x2",i+95).attr("y2",s+c+(u?c:d)+h+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}i+=200,u&&!Object(a.g)().timeline.disableMulticolor&&n++}}catch(t){y.e(t)}finally{y.f()}s-=10},C=function(t,e,n,i,s,c){var o=0,l=s;s+=100;var h,d=Object(r.a)(e);try{for(d.s();!(h=d.n()).done;){var u={descr:h.value,section:n,number:n,width:150,padding:20,maxHeight:50};a.l.debug("eventNode",u);var p=t.append("g").attr("class","eventWrapper"),y=M(p,u,n,c).height;o+=y,p.attr("transform","translate(".concat(i,", ").concat(s,")")),s=s+10+y}}catch(t){d.e(t)}finally{d.f()}return s=l,o},H={setConf:function(t){Object.keys(t).forEach((function(e){conf[e]=t[e]}))},draw:function(t,e,n,c){var o=Object(a.g)(),l=o.leftMargin?o.leftMargin:50;c.db.clear(),c.parser.parse(t+"\n"),a.l.debug("timeline",c.db);var h,d=o.securityLevel;"sandbox"===d&&(h=Object(s.F)("#i"+e));var u=("sandbox"===d?Object(s.F)(h.nodes()[0].contentDocument.body):Object(s.F)("body")).select("#"+e);u.append("g");var p=c.db.getTasks(),y=c.db.getCommonDb().getDiagramTitle();a.l.debug("task",p),L(u);var g=c.db.getSections();a.l.debug("sections",g);var f,b=0,m=0,v=50+l,_=50;var k=0,x=!0;g.forEach((function(t){var e=$(u,{number:k,descr:t,section:k,width:150,padding:20,maxHeight:b},o);a.l.debug("sectionHeight before draw",e),b=Math.max(b,e+20)}));var w=0,S=0;a.l.debug("tasks.length",p.length);var O,E=Object(r.a)(p.entries());try{for(E.s();!(O=E.n()).done;){var j=Object(i.a)(O.value,2),I=j[0],T=j[1],D={number:I,descr:T,section:T.section,width:150,padding:20,maxHeight:m},C=$(u,D,o);a.l.debug("taskHeight before draw",C),m=Math.max(m,C+20),w=Math.max(w,T.events.length);for(var H=0,z=0;z<T.events.length;z++){var P={descr:T.events[z],section:T.section,number:T.section,width:150,padding:20,maxHeight:50};H+=$(u,P,o)}S=Math.max(S,H)}}catch(t){E.e(t)}finally{E.f()}a.l.debug("maxSectionHeight before draw",b),a.l.debug("maxTaskHeight before draw",m),g&&g.length>0?g.forEach((function(t){var e={number:k,descr:t,section:k,width:150,padding:20,maxHeight:b};a.l.debug("sectionNode",e);var n=u.append("g"),i=M(n,e,k,o);a.l.debug("sectionNode output",i),n.attr("transform","translate(".concat(v,", ").concat(50,")")),_+=b+50;var r=p.filter((function(e){return e.section===t}));r.length>0&&A(u,r,k,v,_,m,o,w,S,b,!1),v+=200*Math.max(r.length,1),_=50,k++})):(x=!1,A(u,p,k,v,_,m,o,w,S,b,!0));var F=u.node().getBBox();a.l.debug("bounds",F),y&&u.append("text").text(y).attr("x",F.width/2-l).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),f=x?b+m+150:m+100,u.append("g").attr("class","lineWrapper").append("line").attr("x1",l).attr("y1",f).attr("x2",F.width+3*l).attr("y2",f).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),Object(a.q)(void 0,u,o.timeline.padding?o.timeline.padding:50,!!o.timeline.useMaxWidth&&o.timeline.useMaxWidth)}},z={db:I,renderer:H,parser:d,styles:function(t){return"\n .edge {\n stroke-width: 3;\n }\n ".concat(function(t){for(var e="",n=0;n<t.THEME_COLOR_LIMIT;n++)t["lineColor"+n]=t["lineColor"+n]||t["cScaleInv"+n],Object(c.a)(t["lineColor"+n])?t["lineColor"+n]=Object(o.a)(t["lineColor"+n],20):t["lineColor"+n]=Object(l.a)(t["lineColor"+n],20);for(var i=0;i<t.THEME_COLOR_LIMIT;i++){var r=""+(17-3*i);e+="\n .section-".concat(i-1," rect, .section-").concat(i-1," path, .section-").concat(i-1," circle, .section-").concat(i-1," path {\n fill: ").concat(t["cScale"+i],";\n }\n .section-").concat(i-1," text {\n fill: ").concat(t["cScaleLabel"+i],";\n }\n .node-icon-").concat(i-1," {\n font-size: 40px;\n color: ").concat(t["cScaleLabel"+i],";\n }\n .section-edge-").concat(i-1,"{\n stroke: ").concat(t["cScale"+i],";\n }\n .edge-depth-").concat(i-1,"{\n stroke-width: ").concat(r,";\n }\n .section-").concat(i-1," line {\n stroke: ").concat(t["cScaleInv"+i]," ;\n stroke-width: 3;\n }\n\n .lineWrapper line{\n stroke: ").concat(t["cScaleLabel"+i]," ;\n }\n\n .disabled, .disabled circle, .disabled text {\n fill: lightgray;\n }\n .disabled text {\n fill: #efefef;\n }\n ")}return e}(t),"\n .section-root rect, .section-root path, .section-root circle {\n fill: ").concat(t.git0,";\n }\n .section-root text {\n fill: ").concat(t.gitBranchLabel0,";\n }\n .icon-container {\n height:100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .edge {\n fill: none;\n }\n .eventWrapper {\n filter: brightness(120%);\n }\n")}}},"5d6b":function(t,e,n){"use strict";var i=n("025c"),r=n("1c86");var a=t=>{const{r:e,g:n,b:a}=r.a.parse(t),s=.2126*i.a.channel.toLinear(e)+.7152*i.a.channel.toLinear(n)+.0722*i.a.channel.toLinear(a);return i.a.lang.round(s)};var s=t=>a(t)>=.5;e.a=t=>!s(t)},"6c57":function(t,e,n){"use strict";var i=n("23e7"),r=n("cfe9");i({global:!0,forced:r.globalThis!==r},{globalThis:r})}}]);