daiquiri-ui 2025.12.1__py3-none-any.whl → 2026.2.0__py3-none-any.whl

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 (143) hide show
  1. daiquiri_ui/__init__.py +0 -1
  2. daiquiri_ui/static/assets/Anchor-0b4a3d33.js +1 -0
  3. daiquiri_ui/static/assets/AutoscaleOption-3cb99678.js +1 -0
  4. daiquiri_ui/static/assets/{BPMVideoStream-7dfae0bb.js → BPMVideoStream-c3e09e8b.js} +1 -1
  5. daiquiri_ui/static/assets/{CanvasEnhancer-16124b1e.js → CanvasEnhancer-dd82c090.js} +1 -1
  6. daiquiri_ui/static/assets/ColorMap-be59ad21.js +1 -0
  7. daiquiri_ui/static/assets/CompositeMap-c93f5466.js +1 -0
  8. daiquiri_ui/static/assets/{ConnectUtils-b8bfa186.js → ConnectUtils-3923fa2f.js} +1 -1
  9. daiquiri_ui/static/assets/{Console-42bf9fd1.js → Console-d0028912.js} +1 -1
  10. daiquiri_ui/static/assets/{Cross-d0a1a410.js → Cross-d5df0df3.js} +1 -1
  11. daiquiri_ui/static/assets/{CrossMarker-2285e102.js → CrossMarker-71cd11cf.js} +2 -2
  12. daiquiri_ui/static/assets/DraggableRect-25d91c7d.js +1 -0
  13. daiquiri_ui/static/assets/DropdownButton-29cc265b.js +1 -0
  14. daiquiri_ui/static/assets/DropdownDetector-5016908a.js +1 -0
  15. daiquiri_ui/static/assets/{Editor-8c26c281.js → Editor-7b500b85.js} +9 -9
  16. daiquiri_ui/static/assets/EditorTree-7fc000d8.js +1 -0
  17. daiquiri_ui/static/assets/H5Viewer-d1305c58.js +1 -0
  18. daiquiri_ui/static/assets/{H5WebCurvePlot-136dfa6f.js → H5WebCurvePlot-61b08211.js} +1 -1
  19. daiquiri_ui/static/assets/HSegment-8d2c001e.js +43 -0
  20. daiquiri_ui/static/assets/HardwareButton-af41c610.js +1 -0
  21. daiquiri_ui/static/assets/Hdf5Plot-bbffc65f.js +1 -0
  22. daiquiri_ui/static/assets/{HistogramDomainSlider-5572e533.js → HistogramDomainSlider-304bdab4.js} +1 -1
  23. daiquiri_ui/static/assets/Image-ee61818a.js +1 -0
  24. daiquiri_ui/static/assets/Label-9d8979b3.js +1 -0
  25. daiquiri_ui/static/assets/{LoadingMessage-e1e479c5.js → LoadingMessage-03b4fa4f.js} +1 -1
  26. daiquiri_ui/static/assets/NewScanButton-0051d220.js +1 -0
  27. daiquiri_ui/static/assets/NewScanButton-57cf0c17.js +1 -0
  28. daiquiri_ui/static/assets/OptionsProcess-da629bfb.js +1 -0
  29. daiquiri_ui/static/assets/ParametersList-2d01832f.js +1 -0
  30. daiquiri_ui/static/assets/RectRoi-3693cc65.js +1 -0
  31. daiquiri_ui/static/assets/RectRuler-1fee3fd8.js +543 -0
  32. daiquiri_ui/static/assets/RulerButton-a95a6035.js +139 -0
  33. daiquiri_ui/static/assets/SampleDCList-dce0bd2b.js +1 -0
  34. daiquiri_ui/static/assets/SampleRegistration-544aa4bd.js +1 -0
  35. daiquiri_ui/static/assets/SavingButton-c3efc92c.js +1 -0
  36. daiquiri_ui/static/assets/ScanDataService-16f29ecd.js +1 -0
  37. daiquiri_ui/static/assets/ScanPlot0d-67c76bfe.js +1 -0
  38. daiquiri_ui/static/assets/ScanPlot0dValue-c0dd01b5.js +1 -0
  39. daiquiri_ui/static/assets/ScanPlot1d-3c930b95.js +1 -0
  40. daiquiri_ui/static/assets/ScanPlot1d-ee33c98b.js +1 -0
  41. daiquiri_ui/static/assets/{ScanPlot2d-c49ba2bc.js → ScanPlot2d-af57d8ad.js} +1 -1
  42. daiquiri_ui/static/assets/{ScanTable-4e677d2b.js → ScanTable-bc13760e.js} +1 -1
  43. daiquiri_ui/static/assets/ScanValue-00aab91b.js +1 -0
  44. daiquiri_ui/static/assets/SceneScale-e2a42af2.js +1 -0
  45. daiquiri_ui/static/assets/SchemaForm-7d897a32.js +1 -0
  46. daiquiri_ui/static/assets/{ScreenScale-ae820d30.js → ScreenScale-b2417934.js} +1 -1
  47. daiquiri_ui/static/assets/{SelectionPoint-d30865f3.js → SelectionPoint-a2cb4dfc.js} +1 -1
  48. daiquiri_ui/static/assets/{StackedNameState-3f198174.js → StackedNameState-4e8dc742.js} +1 -1
  49. daiquiri_ui/static/assets/Statistics.worker-54a0d965.js +46 -0
  50. daiquiri_ui/static/assets/{Synoptic-0f3dac61.js → Synoptic-8a3c67f3.js} +5 -5
  51. daiquiri_ui/static/assets/TomoAlign-b80a68c3.js +7 -0
  52. daiquiri_ui/static/assets/TomoBeamShaping-65a115e9.js +1 -0
  53. daiquiri_ui/static/assets/TomoDetector-500d46af.js +1 -0
  54. daiquiri_ui/static/assets/TomoDetector-e04a5a8b.js +1 -0
  55. daiquiri_ui/static/assets/TomoDetectorView-952499e6.js +64 -0
  56. daiquiri_ui/static/assets/TomoHolo-db2c8449.js +1 -0
  57. daiquiri_ui/static/assets/TomoPusherView-a50e2acd.js +1 -0
  58. daiquiri_ui/static/assets/TomoReconstructedSinogram-deee0779.js +191 -0
  59. daiquiri_ui/static/assets/TomoScanInfo-972a690b.js +1 -0
  60. daiquiri_ui/static/assets/{TomoScanList-d9bea762.js → TomoScanList-ede05c2a.js} +1 -1
  61. daiquiri_ui/static/assets/TomoService-e9741d6a.js +1 -0
  62. daiquiri_ui/static/assets/TomoSinogram-dce5808e.js +1 -0
  63. daiquiri_ui/static/assets/TomoTiling-04701bb7.js +69 -0
  64. daiquiri_ui/static/assets/TwoD-fee9523f.js +3 -0
  65. daiquiri_ui/static/assets/TwoDObject-2f30deac.js +1 -0
  66. daiquiri_ui/static/assets/TwoDObjectList-458e4824.js +1 -0
  67. daiquiri_ui/static/assets/{UseMouseModeInteraction-fc86164b.js → UseMouseModeInteraction-51c6269c.js} +1 -1
  68. daiquiri_ui/static/assets/VLineRoi-b38fe841.js +1 -0
  69. daiquiri_ui/static/assets/{VSegment-cf1ceafc.js → VSegment-f0d42c9a.js} +2 -2
  70. daiquiri_ui/static/assets/VSegmentRoi-d5e035cc.js +1 -0
  71. daiquiri_ui/static/assets/{VideoStream-4b855f43.js → VideoStream-a5200b21.js} +1 -1
  72. daiquiri_ui/static/assets/{VisViewpointRestore-097e2edf.js → VisViewpointRestore-4aa338ea.js} +3 -3
  73. daiquiri_ui/static/assets/{WorldScale-6e6ac5b5.js → WorldScale-23bd1dfb.js} +1 -1
  74. daiquiri_ui/static/assets/{ZoomPanCanvas-8f437b75.js → ZoomPanCanvas-23b61dbb.js} +1 -1
  75. daiquiri_ui/static/assets/{colormap-344855f8.js → colormap-6e43299c.js} +1 -1
  76. daiquiri_ui/static/assets/fontawesomemore-webfont-6ae56ae3.woff2 +0 -0
  77. daiquiri_ui/static/assets/{geometry-1fc3c1a0.js → geometry-cd448ec1.js} +1 -1
  78. daiquiri_ui/static/assets/hooks-171c0765.js +1 -0
  79. daiquiri_ui/static/assets/{hooks-cf59b64f.js → hooks-e0d9229c.js} +1 -1
  80. daiquiri_ui/static/assets/index-779a56ef.css +9 -0
  81. daiquiri_ui/static/assets/{index-a0f7b98c.js → index-a9bb7636.js} +7 -7
  82. daiquiri_ui/static/assets/index-b3c0133a.js +3576 -0
  83. daiquiri_ui/static/assets/{plotly-basic-889d4727.js → plotly-basic-ccc5794d.js} +2 -2
  84. daiquiri_ui/static/assets/{plotly-gl2d-e2e89493.js → plotly-gl2d-345cb34a.js} +2 -2
  85. daiquiri_ui/static/assets/store-5d136a2c.js +1 -0
  86. daiquiri_ui/static/assets/{types-46afffa0.js → types-c366a377.js} +1 -1
  87. daiquiri_ui/static/index.html +2 -2
  88. daiquiri_ui/static/meta.json +1 -1
  89. {daiquiri_ui-2025.12.1.dist-info → daiquiri_ui-2026.2.0.dist-info}/METADATA +1 -1
  90. daiquiri_ui-2026.2.0.dist-info/RECORD +134 -0
  91. {daiquiri_ui-2025.12.1.dist-info → daiquiri_ui-2026.2.0.dist-info}/WHEEL +1 -1
  92. daiquiri_ui/static/assets/Anchor-3fa6d19c.js +0 -1
  93. daiquiri_ui/static/assets/AutoscaleOption-d8d0ca8d.js +0 -1
  94. daiquiri_ui/static/assets/DraggableRect-db33e02e.js +0 -1
  95. daiquiri_ui/static/assets/DropdownButton-d066ece0.js +0 -1
  96. daiquiri_ui/static/assets/DropdownDetector-4ddfa946.js +0 -1
  97. daiquiri_ui/static/assets/EditorTree-b390ece1.js +0 -1
  98. daiquiri_ui/static/assets/H5Viewer-bbcf29f5.js +0 -1
  99. daiquiri_ui/static/assets/HSegment-8966b13f.js +0 -43
  100. daiquiri_ui/static/assets/HardwareButton-2e65150e.js +0 -1
  101. daiquiri_ui/static/assets/Hdf5Plot-3b35de75.js +0 -1
  102. daiquiri_ui/static/assets/Image-1ff7dca9.js +0 -1
  103. daiquiri_ui/static/assets/Label-3c95fb14.js +0 -1
  104. daiquiri_ui/static/assets/NewScanButton-25f65a41.js +0 -1
  105. daiquiri_ui/static/assets/NewScanButton-f40700e9.js +0 -1
  106. daiquiri_ui/static/assets/OptionsProcess-6fd11ce7.js +0 -1
  107. daiquiri_ui/static/assets/ParametersList-c91938bf.js +0 -1
  108. daiquiri_ui/static/assets/RectRoi-19381507.js +0 -1
  109. daiquiri_ui/static/assets/RulerButton-5c2020aa.js +0 -139
  110. daiquiri_ui/static/assets/SampleDCList-64bd9100.js +0 -1
  111. daiquiri_ui/static/assets/SampleRegistration-a354b270.js +0 -1
  112. daiquiri_ui/static/assets/SavingButton-c1839199.js +0 -1
  113. daiquiri_ui/static/assets/ScanPlot0d-d180ecd3.js +0 -1
  114. daiquiri_ui/static/assets/ScanPlot0dValue-0e33cb2c.js +0 -1
  115. daiquiri_ui/static/assets/ScanPlot1d-38bddb23.js +0 -1
  116. daiquiri_ui/static/assets/ScanPlot1d-543e4ac4.js +0 -1
  117. daiquiri_ui/static/assets/ScanValue-a303a86d.js +0 -1
  118. daiquiri_ui/static/assets/SceneScale-33094e68.js +0 -1
  119. daiquiri_ui/static/assets/SchemaForm-b27ccd55.js +0 -1
  120. daiquiri_ui/static/assets/TomoAlign-03e37551.js +0 -4
  121. daiquiri_ui/static/assets/TomoBeamShaping-6ec15838.js +0 -1
  122. daiquiri_ui/static/assets/TomoDetector-aead72a5.js +0 -1
  123. daiquiri_ui/static/assets/TomoDetectorView-aadf1539.js +0 -64
  124. daiquiri_ui/static/assets/TomoHolo-7eb20a1e.js +0 -1
  125. daiquiri_ui/static/assets/TomoReconstructedSinogram-53bbfb3b.js +0 -191
  126. daiquiri_ui/static/assets/TomoScanInfo-5ca06333.js +0 -1
  127. daiquiri_ui/static/assets/TomoSinogram-ecd9dca2.js +0 -1
  128. daiquiri_ui/static/assets/TomoTiling-1b9f4bf4.js +0 -69
  129. daiquiri_ui/static/assets/TwoD-ca5cd677.js +0 -3
  130. daiquiri_ui/static/assets/TwoDObject-86b91ffb.js +0 -1
  131. daiquiri_ui/static/assets/TwoDObjectList-143af6e7.js +0 -1
  132. daiquiri_ui/static/assets/VLineRoi-5130fa5a.js +0 -1
  133. daiquiri_ui/static/assets/colors-2395de5a.js +0 -1
  134. daiquiri_ui/static/assets/fontawesomemore-webfont-97d0220a.woff2 +0 -0
  135. daiquiri_ui/static/assets/hooks-457bfe32.js +0 -1
  136. daiquiri_ui/static/assets/index-0751d893.js +0 -3576
  137. daiquiri_ui/static/assets/index-f085dfca.css +0 -9
  138. daiquiri_ui/static/assets/store-c3eddf46.js +0 -1
  139. daiquiri_ui/static/resources/shaders/compare.frag.glsl +0 -386
  140. daiquiri_ui/static/resources/shaders/compare.vert.glsl +0 -11
  141. daiquiri_ui-2025.12.1.dist-info/RECORD +0 -128
  142. {daiquiri_ui-2025.12.1.dist-info → daiquiri_ui-2026.2.0.dist-info}/licenses/LICENSE +0 -0
  143. {daiquiri_ui-2025.12.1.dist-info → daiquiri_ui-2026.2.0.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,4 @@
1
- import{bN as be,dC as Mt,r as Me,l as rt,j as ye,E as $i,A as Si,dD as Ci,dE as Ai,dF as _i,B as tn,w as xi,c as ki,dG as Ot,q as Li}from"./index-0751d893.js";var Je={},Ft={},un={exports:{}};(function(O,R){(function(){var w="ace",$=function(){return this}();!$&&typeof window<"u"&&($=window);var T=function(t,e,n){if(typeof t!="string"){T.original?T.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(n=e),T.modules[t]||(T.payloads[t]=n,T.modules[t]=null)};T.modules={},T.payloads={};var f=function(t,e,n){if(typeof e=="string"){var i=o(t,e);if(i!=null)return n&&n(),i}else if(Object.prototype.toString.call(e)==="[object Array]"){for(var s=[],l=0,c=e.length;l<c;++l){var b=o(t,e[l]);if(b==null&&m.original)return;s.push(b)}return n&&n.apply(null,s)||!0}},m=function(t,e){var n=f("",t,e);return n==null&&m.original?m.original.apply(this,arguments):n},h=function(t,e){if(e.indexOf("!")!==-1){var n=e.split("!");return h(t,n[0])+"!"+h(t,n[1])}if(e.charAt(0)=="."){var i=t.split("/").slice(0,-1).join("/");for(e=i+"/"+e;e.indexOf(".")!==-1&&s!=e;){var s=e;e=e.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return e},o=function(t,e){e=h(t,e);var n=T.modules[e];if(!n){if(n=T.payloads[e],typeof n=="function"){var i={},s={id:e,uri:"",exports:i,packaged:!0},l=function(b,y){return f(e,b,y)},c=n(l,i,s);i=c||s.exports,T.modules[e]=i,delete T.payloads[e]}n=T.modules[e]=i||n}return n};function a(t){var e=$;t&&($[t]||($[t]={}),e=$[t]),(!e.define||!e.define.packaged)&&(T.original=e.define,e.define=T,e.define.packaged=!0),(!e.require||!e.require.packaged)&&(m.original=e.require,e.require=m,e.require.packaged=!0)}a(w)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(w,$,T){function f(m,h,o){Object.defineProperty(m,h,{value:o,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||f(String.prototype,"startsWith",function(m,h){return h=h||0,this.lastIndexOf(m,h)===h}),String.prototype.endsWith||f(String.prototype,"endsWith",function(m,h){var o=this;(h===void 0||h>o.length)&&(h=o.length),h-=m.length;var a=o.indexOf(m,h);return a!==-1&&a===h}),String.prototype.repeat||f(String.prototype,"repeat",function(m){for(var h="",o=this;m>0;)m&1&&(h+=o),(m>>=1)&&(o+=o);return h}),String.prototype.includes||f(String.prototype,"includes",function(m,h){return this.indexOf(m,h)!=-1}),Object.assign||(Object.assign=function(m){if(m==null)throw new TypeError("Cannot convert undefined or null to object");for(var h=Object(m),o=1;o<arguments.length;o++){var a=arguments[o];a!=null&&Object.keys(a).forEach(function(t){h[t]=a[t]})}return h}),Object.values||(Object.values=function(m){return Object.keys(m).map(function(h){return m[h]})}),Array.prototype.find||f(Array.prototype,"find",function(m){for(var h=this.length,o=arguments[1],a=0;a<h;a++){var t=this[a];if(m.call(o,t,a,this))return t}}),Array.prototype.findIndex||f(Array.prototype,"findIndex",function(m){for(var h=this.length,o=arguments[1],a=0;a<h;a++){var t=this[a];if(m.call(o,t,a,this))return a}}),Array.prototype.includes||f(Array.prototype,"includes",function(m,h){return this.indexOf(m,h)!=-1}),Array.prototype.fill||f(Array.prototype,"fill",function(m){for(var h=this,o=h.length>>>0,a=arguments[1],t=a>>0,e=t<0?Math.max(o+t,0):Math.min(t,o),n=arguments[2],i=n===void 0?o:n>>0,s=i<0?Math.max(o+i,0):Math.min(i,o);e<s;)h[e]=m,e++;return h}),Array.of||f(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(w,$,T){w("./es6-shim")}),ace.define("ace/lib/lang",["require","exports","module"],function(w,$,T){$.last=function(h){return h[h.length-1]},$.stringReverse=function(h){return h.split("").reverse().join("")},$.stringRepeat=function(h,o){for(var a="";o>0;)o&1&&(a+=h),(o>>=1)&&(h+=h);return a};var f=/^\s\s*/,m=/\s\s*$/;$.stringTrimLeft=function(h){return h.replace(f,"")},$.stringTrimRight=function(h){return h.replace(m,"")},$.copyObject=function(h){var o={};for(var a in h)o[a]=h[a];return o},$.copyArray=function(h){for(var o=[],a=0,t=h.length;a<t;a++)h[a]&&typeof h[a]=="object"?o[a]=this.copyObject(h[a]):o[a]=h[a];return o},$.deepCopy=function h(o){if(typeof o!="object"||!o)return o;var a;if(Array.isArray(o)){a=[];for(var t=0;t<o.length;t++)a[t]=h(o[t]);return a}if(Object.prototype.toString.call(o)!=="[object Object]")return o;a={};for(var t in o)a[t]=h(o[t]);return a},$.arrayToMap=function(h){for(var o={},a=0;a<h.length;a++)o[h[a]]=1;return o},$.createMap=function(h){var o=Object.create(null);for(var a in h)o[a]=h[a];return o},$.arrayRemove=function(h,o){for(var a=0;a<=h.length;a++)o===h[a]&&h.splice(a,1)},$.escapeRegExp=function(h){return h.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},$.escapeHTML=function(h){return(""+h).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},$.getMatchOffsets=function(h,o){var a=[];return h.replace(o,function(t){a.push({offset:arguments[arguments.length-2],length:t.length})}),a},$.deferredCall=function(h){var o=null,a=function(){o=null,h()},t=function(e){return t.cancel(),o=setTimeout(a,e||0),t};return t.schedule=t,t.call=function(){return this.cancel(),h(),t},t.cancel=function(){return clearTimeout(o),o=null,t},t.isPending=function(){return o},t},$.delayedCall=function(h,o){var a=null,t=function(){a=null,h()},e=function(n){a==null&&(a=setTimeout(t,n||o))};return e.delay=function(n){a&&clearTimeout(a),a=setTimeout(t,n||o)},e.schedule=e,e.call=function(){this.cancel(),h()},e.cancel=function(){a&&clearTimeout(a),a=null},e.isPending=function(){return a},e}}),ace.define("ace/lib/oop",["require","exports","module"],function(w,$,T){$.inherits=function(f,m){f.super_=m,f.prototype=Object.create(m.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}})},$.mixin=function(f,m){for(var h in m)f[h]=m[h];return f},$.implement=function(f,m){$.mixin(f,m)}}),ace.define("ace/lib/useragent",["require","exports","module"],function(w,$,T){$.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},$.getOS=function(){return $.isMac?$.OS.MAC:$.isLinux?$.OS.LINUX:$.OS.WINDOWS};var f=typeof navigator=="object"?navigator:{},m=(/mac|win|linux/i.exec(f.platform)||["other"])[0].toLowerCase(),h=f.userAgent||"",o=f.appName||"";$.isWin=m=="win",$.isMac=m=="mac",$.isLinux=m=="linux",$.isIE=o=="Microsoft Internet Explorer"||o.indexOf("MSAppHost")>=0?parseFloat((h.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((h.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),$.isOldIE=$.isIE&&$.isIE<9,$.isGecko=$.isMozilla=h.match(/ Gecko\/\d+/),$.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",$.isWebKit=parseFloat(h.split("WebKit/")[1])||void 0,$.isChrome=parseFloat(h.split(" Chrome/")[1])||void 0,$.isEdge=parseFloat(h.split(" Edge/")[1])||void 0,$.isAIR=h.indexOf("AdobeAIR")>=0,$.isAndroid=h.indexOf("Android")>=0,$.isChromeOS=h.indexOf(" CrOS ")>=0,$.isIOS=/iPad|iPhone|iPod/.test(h)&&!window.MSStream,$.isIOS&&($.isMac=!0),$.isMobile=$.isIOS||$.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(w,$,T){var f=w("./useragent"),m="http://www.w3.org/1999/xhtml";$.buildDom=function n(i,s,l){if(typeof i=="string"&&i){var c=document.createTextNode(i);return s&&s.appendChild(c),c}if(!Array.isArray(i))return i&&i.appendChild&&s&&s.appendChild(i),i;if(typeof i[0]!="string"||!i[0]){for(var b=[],y=0;y<i.length;y++){var x=n(i[y],s,l);x&&b.push(x)}return b}var S=document.createElement(i[0]),u=i[1],g=1;u&&typeof u=="object"&&!Array.isArray(u)&&(g=2);for(var y=g;y<i.length;y++)n(i[y],S,l);return g==2&&Object.keys(u).forEach(function(_){var p=u[_];_==="class"?S.className=Array.isArray(p)?p.join(" "):p:typeof p=="function"||_=="value"||_[0]=="$"?S[_]=p:_==="ref"?l&&(l[p]=S):_==="style"?typeof p=="string"&&(S.style.cssText=p):p!=null&&S.setAttribute(_,p)}),s&&s.appendChild(S),S},$.getDocumentHead=function(n){return n||(n=document),n.head||n.getElementsByTagName("head")[0]||n.documentElement},$.createElement=function(n,i){return document.createElementNS?document.createElementNS(i||m,n):document.createElement(n)},$.removeChildren=function(n){n.innerHTML=""},$.createTextNode=function(n,i){var s=i?i.ownerDocument:document;return s.createTextNode(n)},$.createFragment=function(n){var i=n?n.ownerDocument:document;return i.createDocumentFragment()},$.hasCssClass=function(n,i){var s=(n.className+"").split(/\s+/g);return s.indexOf(i)!==-1},$.addCssClass=function(n,i){$.hasCssClass(n,i)||(n.className+=" "+i)},$.removeCssClass=function(n,i){for(var s=n.className.split(/\s+/g);;){var l=s.indexOf(i);if(l==-1)break;s.splice(l,1)}n.className=s.join(" ")},$.toggleCssClass=function(n,i){for(var s=n.className.split(/\s+/g),l=!0;;){var c=s.indexOf(i);if(c==-1)break;l=!1,s.splice(c,1)}return l&&s.push(i),n.className=s.join(" "),l},$.setCssClass=function(n,i,s){s?$.addCssClass(n,i):$.removeCssClass(n,i)},$.hasCssString=function(n,i){var s=0,l;if(i=i||document,l=i.querySelectorAll("style")){for(;s<l.length;)if(l[s++].id===n)return!0}},$.removeElementById=function(n,i){i=i||document,i.getElementById(n)&&i.getElementById(n).remove()};var h,o=[];$.useStrictCSP=function(n){h=n,n==!1?a():o||(o=[])};function a(){var n=o;o=null,n&&n.forEach(function(i){t(i[0],i[1])})}function t(n,i,s){if(!(typeof document>"u")){if(o){if(s)a();else if(s===!1)return o.push([n,i])}if(!h){var l=s;!s||!s.getRootNode?l=document:(l=s.getRootNode(),(!l||l==s)&&(l=document));var c=l.ownerDocument||l;if(i&&$.hasCssString(i,l))return null;i&&(n+=`
1
+ import{bX as be,dN as Mt,r as Me,l as rt,j as ye,Z as yi,A as $i,dO as Si,dP as Ci,dQ as Ai,B as tn,w as _i,c as xi,dR as Ot,H as ki}from"./index-b3c0133a.js";var Je={},Ft={},un={exports:{}};(function(O,R){(function(){var w="ace",$=function(){return this}();!$&&typeof window<"u"&&($=window);var T=function(t,e,n){if(typeof t!="string"){T.original?T.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(n=e),T.modules[t]||(T.payloads[t]=n,T.modules[t]=null)};T.modules={},T.payloads={};var f=function(t,e,n){if(typeof e=="string"){var i=o(t,e);if(i!=null)return n&&n(),i}else if(Object.prototype.toString.call(e)==="[object Array]"){for(var s=[],l=0,c=e.length;l<c;++l){var b=o(t,e[l]);if(b==null&&m.original)return;s.push(b)}return n&&n.apply(null,s)||!0}},m=function(t,e){var n=f("",t,e);return n==null&&m.original?m.original.apply(this,arguments):n},h=function(t,e){if(e.indexOf("!")!==-1){var n=e.split("!");return h(t,n[0])+"!"+h(t,n[1])}if(e.charAt(0)=="."){var i=t.split("/").slice(0,-1).join("/");for(e=i+"/"+e;e.indexOf(".")!==-1&&s!=e;){var s=e;e=e.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return e},o=function(t,e){e=h(t,e);var n=T.modules[e];if(!n){if(n=T.payloads[e],typeof n=="function"){var i={},s={id:e,uri:"",exports:i,packaged:!0},l=function(b,y){return f(e,b,y)},c=n(l,i,s);i=c||s.exports,T.modules[e]=i,delete T.payloads[e]}n=T.modules[e]=i||n}return n};function a(t){var e=$;t&&($[t]||($[t]={}),e=$[t]),(!e.define||!e.define.packaged)&&(T.original=e.define,e.define=T,e.define.packaged=!0),(!e.require||!e.require.packaged)&&(m.original=e.require,e.require=m,e.require.packaged=!0)}a(w)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(w,$,T){function f(m,h,o){Object.defineProperty(m,h,{value:o,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||f(String.prototype,"startsWith",function(m,h){return h=h||0,this.lastIndexOf(m,h)===h}),String.prototype.endsWith||f(String.prototype,"endsWith",function(m,h){var o=this;(h===void 0||h>o.length)&&(h=o.length),h-=m.length;var a=o.indexOf(m,h);return a!==-1&&a===h}),String.prototype.repeat||f(String.prototype,"repeat",function(m){for(var h="",o=this;m>0;)m&1&&(h+=o),(m>>=1)&&(o+=o);return h}),String.prototype.includes||f(String.prototype,"includes",function(m,h){return this.indexOf(m,h)!=-1}),Object.assign||(Object.assign=function(m){if(m==null)throw new TypeError("Cannot convert undefined or null to object");for(var h=Object(m),o=1;o<arguments.length;o++){var a=arguments[o];a!=null&&Object.keys(a).forEach(function(t){h[t]=a[t]})}return h}),Object.values||(Object.values=function(m){return Object.keys(m).map(function(h){return m[h]})}),Array.prototype.find||f(Array.prototype,"find",function(m){for(var h=this.length,o=arguments[1],a=0;a<h;a++){var t=this[a];if(m.call(o,t,a,this))return t}}),Array.prototype.findIndex||f(Array.prototype,"findIndex",function(m){for(var h=this.length,o=arguments[1],a=0;a<h;a++){var t=this[a];if(m.call(o,t,a,this))return a}}),Array.prototype.includes||f(Array.prototype,"includes",function(m,h){return this.indexOf(m,h)!=-1}),Array.prototype.fill||f(Array.prototype,"fill",function(m){for(var h=this,o=h.length>>>0,a=arguments[1],t=a>>0,e=t<0?Math.max(o+t,0):Math.min(t,o),n=arguments[2],i=n===void 0?o:n>>0,s=i<0?Math.max(o+i,0):Math.min(i,o);e<s;)h[e]=m,e++;return h}),Array.of||f(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(w,$,T){w("./es6-shim")}),ace.define("ace/lib/lang",["require","exports","module"],function(w,$,T){$.last=function(h){return h[h.length-1]},$.stringReverse=function(h){return h.split("").reverse().join("")},$.stringRepeat=function(h,o){for(var a="";o>0;)o&1&&(a+=h),(o>>=1)&&(h+=h);return a};var f=/^\s\s*/,m=/\s\s*$/;$.stringTrimLeft=function(h){return h.replace(f,"")},$.stringTrimRight=function(h){return h.replace(m,"")},$.copyObject=function(h){var o={};for(var a in h)o[a]=h[a];return o},$.copyArray=function(h){for(var o=[],a=0,t=h.length;a<t;a++)h[a]&&typeof h[a]=="object"?o[a]=this.copyObject(h[a]):o[a]=h[a];return o},$.deepCopy=function h(o){if(typeof o!="object"||!o)return o;var a;if(Array.isArray(o)){a=[];for(var t=0;t<o.length;t++)a[t]=h(o[t]);return a}if(Object.prototype.toString.call(o)!=="[object Object]")return o;a={};for(var t in o)a[t]=h(o[t]);return a},$.arrayToMap=function(h){for(var o={},a=0;a<h.length;a++)o[h[a]]=1;return o},$.createMap=function(h){var o=Object.create(null);for(var a in h)o[a]=h[a];return o},$.arrayRemove=function(h,o){for(var a=0;a<=h.length;a++)o===h[a]&&h.splice(a,1)},$.escapeRegExp=function(h){return h.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},$.escapeHTML=function(h){return(""+h).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},$.getMatchOffsets=function(h,o){var a=[];return h.replace(o,function(t){a.push({offset:arguments[arguments.length-2],length:t.length})}),a},$.deferredCall=function(h){var o=null,a=function(){o=null,h()},t=function(e){return t.cancel(),o=setTimeout(a,e||0),t};return t.schedule=t,t.call=function(){return this.cancel(),h(),t},t.cancel=function(){return clearTimeout(o),o=null,t},t.isPending=function(){return o},t},$.delayedCall=function(h,o){var a=null,t=function(){a=null,h()},e=function(n){a==null&&(a=setTimeout(t,n||o))};return e.delay=function(n){a&&clearTimeout(a),a=setTimeout(t,n||o)},e.schedule=e,e.call=function(){this.cancel(),h()},e.cancel=function(){a&&clearTimeout(a),a=null},e.isPending=function(){return a},e}}),ace.define("ace/lib/oop",["require","exports","module"],function(w,$,T){$.inherits=function(f,m){f.super_=m,f.prototype=Object.create(m.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}})},$.mixin=function(f,m){for(var h in m)f[h]=m[h];return f},$.implement=function(f,m){$.mixin(f,m)}}),ace.define("ace/lib/useragent",["require","exports","module"],function(w,$,T){$.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},$.getOS=function(){return $.isMac?$.OS.MAC:$.isLinux?$.OS.LINUX:$.OS.WINDOWS};var f=typeof navigator=="object"?navigator:{},m=(/mac|win|linux/i.exec(f.platform)||["other"])[0].toLowerCase(),h=f.userAgent||"",o=f.appName||"";$.isWin=m=="win",$.isMac=m=="mac",$.isLinux=m=="linux",$.isIE=o=="Microsoft Internet Explorer"||o.indexOf("MSAppHost")>=0?parseFloat((h.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((h.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),$.isOldIE=$.isIE&&$.isIE<9,$.isGecko=$.isMozilla=h.match(/ Gecko\/\d+/),$.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",$.isWebKit=parseFloat(h.split("WebKit/")[1])||void 0,$.isChrome=parseFloat(h.split(" Chrome/")[1])||void 0,$.isEdge=parseFloat(h.split(" Edge/")[1])||void 0,$.isAIR=h.indexOf("AdobeAIR")>=0,$.isAndroid=h.indexOf("Android")>=0,$.isChromeOS=h.indexOf(" CrOS ")>=0,$.isIOS=/iPad|iPhone|iPod/.test(h)&&!window.MSStream,$.isIOS&&($.isMac=!0),$.isMobile=$.isIOS||$.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(w,$,T){var f=w("./useragent"),m="http://www.w3.org/1999/xhtml";$.buildDom=function n(i,s,l){if(typeof i=="string"&&i){var c=document.createTextNode(i);return s&&s.appendChild(c),c}if(!Array.isArray(i))return i&&i.appendChild&&s&&s.appendChild(i),i;if(typeof i[0]!="string"||!i[0]){for(var b=[],y=0;y<i.length;y++){var x=n(i[y],s,l);x&&b.push(x)}return b}var S=document.createElement(i[0]),u=i[1],g=1;u&&typeof u=="object"&&!Array.isArray(u)&&(g=2);for(var y=g;y<i.length;y++)n(i[y],S,l);return g==2&&Object.keys(u).forEach(function(_){var p=u[_];_==="class"?S.className=Array.isArray(p)?p.join(" "):p:typeof p=="function"||_=="value"||_[0]=="$"?S[_]=p:_==="ref"?l&&(l[p]=S):_==="style"?typeof p=="string"&&(S.style.cssText=p):p!=null&&S.setAttribute(_,p)}),s&&s.appendChild(S),S},$.getDocumentHead=function(n){return n||(n=document),n.head||n.getElementsByTagName("head")[0]||n.documentElement},$.createElement=function(n,i){return document.createElementNS?document.createElementNS(i||m,n):document.createElement(n)},$.removeChildren=function(n){n.innerHTML=""},$.createTextNode=function(n,i){var s=i?i.ownerDocument:document;return s.createTextNode(n)},$.createFragment=function(n){var i=n?n.ownerDocument:document;return i.createDocumentFragment()},$.hasCssClass=function(n,i){var s=(n.className+"").split(/\s+/g);return s.indexOf(i)!==-1},$.addCssClass=function(n,i){$.hasCssClass(n,i)||(n.className+=" "+i)},$.removeCssClass=function(n,i){for(var s=n.className.split(/\s+/g);;){var l=s.indexOf(i);if(l==-1)break;s.splice(l,1)}n.className=s.join(" ")},$.toggleCssClass=function(n,i){for(var s=n.className.split(/\s+/g),l=!0;;){var c=s.indexOf(i);if(c==-1)break;l=!1,s.splice(c,1)}return l&&s.push(i),n.className=s.join(" "),l},$.setCssClass=function(n,i,s){s?$.addCssClass(n,i):$.removeCssClass(n,i)},$.hasCssString=function(n,i){var s=0,l;if(i=i||document,l=i.querySelectorAll("style")){for(;s<l.length;)if(l[s++].id===n)return!0}},$.removeElementById=function(n,i){i=i||document,i.getElementById(n)&&i.getElementById(n).remove()};var h,o=[];$.useStrictCSP=function(n){h=n,n==!1?a():o||(o=[])};function a(){var n=o;o=null,n&&n.forEach(function(i){t(i[0],i[1])})}function t(n,i,s){if(!(typeof document>"u")){if(o){if(s)a();else if(s===!1)return o.push([n,i])}if(!h){var l=s;!s||!s.getRootNode?l=document:(l=s.getRootNode(),(!l||l==s)&&(l=document));var c=l.ownerDocument||l;if(i&&$.hasCssString(i,l))return null;i&&(n+=`
2
2
  /*# sourceURL=ace/css/`+i+" */");var b=$.createElement("style");b.appendChild(c.createTextNode(n)),i&&(b.id=i),l==c&&(l=$.getDocumentHead(c)),l.insertBefore(b,l.firstChild)}}}if($.importCssString=t,$.importCssStylsheet=function(n,i){$.buildDom(["link",{rel:"stylesheet",href:n}],$.getDocumentHead(i))},$.scrollbarWidth=function(n){var i=$.createElement("ace_inner");i.style.width="100%",i.style.minWidth="0px",i.style.height="200px",i.style.display="block";var s=$.createElement("ace_outer"),l=s.style;l.position="absolute",l.left="-10000px",l.overflow="hidden",l.width="200px",l.minWidth="0px",l.height="150px",l.display="block",s.appendChild(i);var c=n&&n.documentElement||document&&document.documentElement;if(!c)return 0;c.appendChild(s);var b=i.offsetWidth;l.overflow="scroll";var y=i.offsetWidth;return b===y&&(y=s.clientWidth),c.removeChild(s),b-y},$.computedStyle=function(n,i){return window.getComputedStyle(n,"")||{}},$.setStyle=function(n,i,s){n[i]!==s&&(n[i]=s)},$.HAS_CSS_ANIMATION=!1,$.HAS_CSS_TRANSFORMS=!1,$.HI_DPI=f.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,f.isChromeOS&&($.HI_DPI=!1),typeof document<"u"){var e=document.createElement("div");$.HI_DPI&&e.style.transform!==void 0&&($.HAS_CSS_TRANSFORMS=!0),!f.isEdge&&typeof e.style.animationName<"u"&&($.HAS_CSS_ANIMATION=!0),e=null}$.HAS_CSS_TRANSFORMS?$.translate=function(n,i,s){n.style.transform="translate("+Math.round(i)+"px, "+Math.round(s)+"px)"}:$.translate=function(n,i,s){n.style.top=Math.round(s)+"px",n.style.left=Math.round(i)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(w,$,T){/*
3
3
  * based on code from:
4
4
  *
@@ -888,18 +888,18 @@ import{bN as be,dC as Mt,r as Me,l as rt,j as ye,E as $i,A as Si,dD as Ci,dE as
888
888
  border-left-color: transparent!important;
889
889
  top: -5px;
890
890
  }
891
- `,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(w,$,T){w("./loader_build")($);var f=w("./lib/dom"),m=w("./lib/event"),h=w("./range").Range,o=w("./editor").Editor,a=w("./edit_session").EditSession,t=w("./undomanager").UndoManager,e=w("./virtual_renderer").VirtualRenderer;w("./worker/worker_client"),w("./keyboard/hash_handler"),w("./placeholder"),w("./multi_select"),w("./mode/folding/fold_mode"),w("./theme/textmate"),w("./ext/error_marker"),$.config=w("./config"),$.edit=function(n,i){if(typeof n=="string"){var s=n;if(n=document.getElementById(s),!n)throw new Error("ace.edit can't find div #"+s)}if(n&&n.env&&n.env.editor instanceof o)return n.env.editor;var l="";if(n&&/input|textarea/i.test(n.tagName)){var c=n;l=c.value,n=f.createElement("pre"),c.parentNode.replaceChild(n,c)}else n&&(l=n.textContent,n.innerHTML="");var b=$.createEditSession(l),y=new o(new e(n),b,i),x={document:b,editor:y,onResize:y.resize.bind(y,null)};return c&&(x.textarea=c),m.addListener(window,"resize",x.onResize),y.on("destroy",function(){m.removeListener(window,"resize",x.onResize),x.editor.container.env=null}),y.container.env=y.env=x,y},$.createEditSession=function(n,i){var s=new a(n,i);return s.setUndoManager(new t),s},$.Range=h,$.Editor=o,$.EditSession=a,$.UndoManager=t,$.VirtualRenderer=e,$.version=$.config.version}),function(){ace.require(["ace/ace"],function(w){w&&(w.config.init(!0),w.define=ace.define),window.ace||(window.ace=w);for(var $ in w)w.hasOwnProperty($)&&(window.ace[$]=w[$]);window.ace.default=window.ace,O&&(O.exports=window.ace)})}()})(un);var pt=un.exports,mt={exports:{}};mt.exports;(function(O,R){var w=200,$="__lodash_hash_undefined__",T=1,f=2,m=9007199254740991,h="[object Arguments]",o="[object Array]",a="[object AsyncFunction]",t="[object Boolean]",e="[object Date]",n="[object Error]",i="[object Function]",s="[object GeneratorFunction]",l="[object Map]",c="[object Number]",b="[object Null]",y="[object Object]",x="[object Promise]",S="[object Proxy]",u="[object RegExp]",g="[object Set]",_="[object String]",p="[object Symbol]",C="[object Undefined]",r="[object WeakMap]",d="[object ArrayBuffer]",v="[object DataView]",A="[object Float32Array]",k="[object Float64Array]",L="[object Int8Array]",E="[object Int16Array]",F="[object Int32Array]",I="[object Uint8Array]",D="[object Uint8ClampedArray]",W="[object Uint16Array]",N="[object Uint32Array]",U=/[\\^$.*+?()[\]{}|]/g,B=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,z={};z[A]=z[k]=z[L]=z[E]=z[F]=z[I]=z[D]=z[W]=z[N]=!0,z[h]=z[o]=z[d]=z[t]=z[v]=z[e]=z[n]=z[i]=z[l]=z[c]=z[y]=z[u]=z[g]=z[_]=z[r]=!1;var j=typeof be=="object"&&be&&be.Object===Object&&be,Y=typeof self=="object"&&self&&self.Object===Object&&self,V=j||Y||Function("return this")(),J=R&&!R.nodeType&&R,X=J&&!0&&O&&!O.nodeType&&O,q=X&&X.exports===J,oe=q&&j.process,ve=function(){try{return oe&&oe.binding&&oe.binding("util")}catch{}}(),ge=ve&&ve.isTypedArray;function le(M,P){for(var G=-1,Q=M==null?0:M.length,fe=0,ie=[];++G<Q;){var we=M[G];P(we,G,M)&&(ie[fe++]=we)}return ie}function Ae(M,P){for(var G=-1,Q=P.length,fe=M.length;++G<Q;)M[fe+G]=P[G];return M}function De(M,P){for(var G=-1,Q=M==null?0:M.length;++G<Q;)if(P(M[G],G,M))return!0;return!1}function Ee(M,P){for(var G=-1,Q=Array(M);++G<M;)Q[G]=P(G);return Q}function qe(M){return function(P){return M(P)}}function yt(M,P){return M.has(P)}function K(M,P){return M==null?void 0:M[P]}function Z(M){var P=-1,G=Array(M.size);return M.forEach(function(Q,fe){G[++P]=[fe,Q]}),G}function ne(M,P){return function(G){return M(P(G))}}function se(M){var P=-1,G=Array(M.size);return M.forEach(function(Q){G[++P]=Q}),G}var he=Array.prototype,pe=Function.prototype,ue=Object.prototype,de=V["__core-js_shared__"],ce=pe.toString,re=ue.hasOwnProperty,_e=function(){var M=/[^.]+$/.exec(de&&de.keys&&de.keys.IE_PROTO||"");return M?"Symbol(src)_1."+M:""}(),He=ue.toString,ot=RegExp("^"+ce.call(re).replace(U,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ht=q?V.Buffer:void 0,at=V.Symbol,Nt=V.Uint8Array,zt=ue.propertyIsEnumerable,An=he.splice,Ne=at?at.toStringTag:void 0,Ut=Object.getOwnPropertySymbols,_n=Ht?Ht.isBuffer:void 0,xn=ne(Object.keys,Object),$t=Xe(V,"DataView"),et=Xe(V,"Map"),St=Xe(V,"Promise"),Ct=Xe(V,"Set"),At=Xe(V,"WeakMap"),tt=Xe(Object,"create"),kn=Ve($t),Ln=Ve(et),En=Ve(St),Tn=Ve(Ct),Rn=Ve(At),Vt=at?at.prototype:void 0,_t=Vt?Vt.valueOf:void 0;function ze(M){var P=-1,G=M==null?0:M.length;for(this.clear();++P<G;){var Q=M[P];this.set(Q[0],Q[1])}}function Mn(){this.__data__=tt?tt(null):{},this.size=0}function On(M){var P=this.has(M)&&delete this.__data__[M];return this.size-=P?1:0,P}function Fn(M){var P=this.__data__;if(tt){var G=P[M];return G===$?void 0:G}return re.call(P,M)?P[M]:void 0}function In(M){var P=this.__data__;return tt?P[M]!==void 0:re.call(P,M)}function Dn(M,P){var G=this.__data__;return this.size+=this.has(M)?0:1,G[M]=tt&&P===void 0?$:P,this}ze.prototype.clear=Mn,ze.prototype.delete=On,ze.prototype.get=Fn,ze.prototype.has=In,ze.prototype.set=Dn;function Oe(M){var P=-1,G=M==null?0:M.length;for(this.clear();++P<G;){var Q=M[P];this.set(Q[0],Q[1])}}function Bn(){this.__data__=[],this.size=0}function Wn(M){var P=this.__data__,G=ht(P,M);if(G<0)return!1;var Q=P.length-1;return G==Q?P.pop():An.call(P,G,1),--this.size,!0}function Pn(M){var P=this.__data__,G=ht(P,M);return G<0?void 0:P[G][1]}function Hn(M){return ht(this.__data__,M)>-1}function Nn(M,P){var G=this.__data__,Q=ht(G,M);return Q<0?(++this.size,G.push([M,P])):G[Q][1]=P,this}Oe.prototype.clear=Bn,Oe.prototype.delete=Wn,Oe.prototype.get=Pn,Oe.prototype.has=Hn,Oe.prototype.set=Nn;function Ue(M){var P=-1,G=M==null?0:M.length;for(this.clear();++P<G;){var Q=M[P];this.set(Q[0],Q[1])}}function zn(){this.size=0,this.__data__={hash:new ze,map:new(et||Oe),string:new ze}}function Un(M){var P=ct(this,M).delete(M);return this.size-=P?1:0,P}function Vn(M){return ct(this,M).get(M)}function Gn(M){return ct(this,M).has(M)}function Kn(M,P){var G=ct(this,M),Q=G.size;return G.set(M,P),this.size+=G.size==Q?0:1,this}Ue.prototype.clear=zn,Ue.prototype.delete=Un,Ue.prototype.get=Vn,Ue.prototype.has=Gn,Ue.prototype.set=Kn;function lt(M){var P=-1,G=M==null?0:M.length;for(this.__data__=new Ue;++P<G;)this.add(M[P])}function jn(M){return this.__data__.set(M,$),this}function Yn(M){return this.__data__.has(M)}lt.prototype.add=lt.prototype.push=jn,lt.prototype.has=Yn;function Be(M){var P=this.__data__=new Oe(M);this.size=P.size}function Xn(){this.__data__=new Oe,this.size=0}function Qn(M){var P=this.__data__,G=P.delete(M);return this.size=P.size,G}function Jn(M){return this.__data__.get(M)}function Zn(M){return this.__data__.has(M)}function qn(M,P){var G=this.__data__;if(G instanceof Oe){var Q=G.__data__;if(!et||Q.length<w-1)return Q.push([M,P]),this.size=++G.size,this;G=this.__data__=new Ue(Q)}return G.set(M,P),this.size=G.size,this}Be.prototype.clear=Xn,Be.prototype.delete=Qn,Be.prototype.get=Jn,Be.prototype.has=Zn,Be.prototype.set=qn;function ei(M,P){var G=ut(M),Q=!G&&pi(M),fe=!G&&!Q&&xt(M),ie=!G&&!Q&&!fe&&qt(M),we=G||Q||fe||ie,$e=we?Ee(M.length,String):[],Se=$e.length;for(var me in M)(P||re.call(M,me))&&!(we&&(me=="length"||fe&&(me=="offset"||me=="parent")||ie&&(me=="buffer"||me=="byteLength"||me=="byteOffset")||ci(me,Se)))&&$e.push(me);return $e}function ht(M,P){for(var G=M.length;G--;)if(Xt(M[G][0],P))return G;return-1}function ti(M,P,G){var Q=P(M);return ut(M)?Q:Ae(Q,G(M))}function nt(M){return M==null?M===void 0?C:b:Ne&&Ne in Object(M)?li(M):gi(M)}function Gt(M){return it(M)&&nt(M)==h}function Kt(M,P,G,Q,fe){return M===P?!0:M==null||P==null||!it(M)&&!it(P)?M!==M&&P!==P:ni(M,P,G,Q,Kt,fe)}function ni(M,P,G,Q,fe,ie){var we=ut(M),$e=ut(P),Se=we?o:We(M),me=$e?o:We(P);Se=Se==h?y:Se,me=me==h?y:me;var xe=Se==y,Te=me==y,Ce=Se==me;if(Ce&&xt(M)){if(!xt(P))return!1;we=!0,xe=!1}if(Ce&&!xe)return ie||(ie=new Be),we||qt(M)?jt(M,P,G,Q,fe,ie):oi(M,P,Se,G,Q,fe,ie);if(!(G&T)){var ke=xe&&re.call(M,"__wrapped__"),Le=Te&&re.call(P,"__wrapped__");if(ke||Le){var Pe=ke?M.value():M,Fe=Le?P.value():P;return ie||(ie=new Be),fe(Pe,Fe,G,Q,ie)}}return Ce?(ie||(ie=new Be),ai(M,P,G,Q,fe,ie)):!1}function ii(M){if(!Zt(M)||di(M))return!1;var P=Qt(M)?ot:B;return P.test(Ve(M))}function ri(M){return it(M)&&Jt(M.length)&&!!z[nt(M)]}function si(M){if(!fi(M))return xn(M);var P=[];for(var G in Object(M))re.call(M,G)&&G!="constructor"&&P.push(G);return P}function jt(M,P,G,Q,fe,ie){var we=G&T,$e=M.length,Se=P.length;if($e!=Se&&!(we&&Se>$e))return!1;var me=ie.get(M);if(me&&ie.get(P))return me==P;var xe=-1,Te=!0,Ce=G&f?new lt:void 0;for(ie.set(M,P),ie.set(P,M);++xe<$e;){var ke=M[xe],Le=P[xe];if(Q)var Pe=we?Q(Le,ke,xe,P,M,ie):Q(ke,Le,xe,M,P,ie);if(Pe!==void 0){if(Pe)continue;Te=!1;break}if(Ce){if(!De(P,function(Fe,Ge){if(!yt(Ce,Ge)&&(ke===Fe||fe(ke,Fe,G,Q,ie)))return Ce.push(Ge)})){Te=!1;break}}else if(!(ke===Le||fe(ke,Le,G,Q,ie))){Te=!1;break}}return ie.delete(M),ie.delete(P),Te}function oi(M,P,G,Q,fe,ie,we){switch(G){case v:if(M.byteLength!=P.byteLength||M.byteOffset!=P.byteOffset)return!1;M=M.buffer,P=P.buffer;case d:return!(M.byteLength!=P.byteLength||!ie(new Nt(M),new Nt(P)));case t:case e:case c:return Xt(+M,+P);case n:return M.name==P.name&&M.message==P.message;case u:case _:return M==P+"";case l:var $e=Z;case g:var Se=Q&T;if($e||($e=se),M.size!=P.size&&!Se)return!1;var me=we.get(M);if(me)return me==P;Q|=f,we.set(M,P);var xe=jt($e(M),$e(P),Q,fe,ie,we);return we.delete(M),xe;case p:if(_t)return _t.call(M)==_t.call(P)}return!1}function ai(M,P,G,Q,fe,ie){var we=G&T,$e=Yt(M),Se=$e.length,me=Yt(P),xe=me.length;if(Se!=xe&&!we)return!1;for(var Te=Se;Te--;){var Ce=$e[Te];if(!(we?Ce in P:re.call(P,Ce)))return!1}var ke=ie.get(M);if(ke&&ie.get(P))return ke==P;var Le=!0;ie.set(M,P),ie.set(P,M);for(var Pe=we;++Te<Se;){Ce=$e[Te];var Fe=M[Ce],Ge=P[Ce];if(Q)var en=we?Q(Ge,Fe,Ce,P,M,ie):Q(Fe,Ge,Ce,M,P,ie);if(!(en===void 0?Fe===Ge||fe(Fe,Ge,G,Q,ie):en)){Le=!1;break}Pe||(Pe=Ce=="constructor")}if(Le&&!Pe){var dt=M.constructor,ft=P.constructor;dt!=ft&&"constructor"in M&&"constructor"in P&&!(typeof dt=="function"&&dt instanceof dt&&typeof ft=="function"&&ft instanceof ft)&&(Le=!1)}return ie.delete(M),ie.delete(P),Le}function Yt(M){return ti(M,wi,hi)}function ct(M,P){var G=M.__data__;return ui(P)?G[typeof P=="string"?"string":"hash"]:G.map}function Xe(M,P){var G=K(M,P);return ii(G)?G:void 0}function li(M){var P=re.call(M,Ne),G=M[Ne];try{M[Ne]=void 0;var Q=!0}catch{}var fe=He.call(M);return Q&&(P?M[Ne]=G:delete M[Ne]),fe}var hi=Ut?function(M){return M==null?[]:(M=Object(M),le(Ut(M),function(P){return zt.call(M,P)}))}:bi,We=nt;($t&&We(new $t(new ArrayBuffer(1)))!=v||et&&We(new et)!=l||St&&We(St.resolve())!=x||Ct&&We(new Ct)!=g||At&&We(new At)!=r)&&(We=function(M){var P=nt(M),G=P==y?M.constructor:void 0,Q=G?Ve(G):"";if(Q)switch(Q){case kn:return v;case Ln:return l;case En:return x;case Tn:return g;case Rn:return r}return P});function ci(M,P){return P=P??m,!!P&&(typeof M=="number"||H.test(M))&&M>-1&&M%1==0&&M<P}function ui(M){var P=typeof M;return P=="string"||P=="number"||P=="symbol"||P=="boolean"?M!=="__proto__":M===null}function di(M){return!!_e&&_e in M}function fi(M){var P=M&&M.constructor,G=typeof P=="function"&&P.prototype||ue;return M===G}function gi(M){return He.call(M)}function Ve(M){if(M!=null){try{return ce.call(M)}catch{}try{return M+""}catch{}}return""}function Xt(M,P){return M===P||M!==M&&P!==P}var pi=Gt(function(){return arguments}())?Gt:function(M){return it(M)&&re.call(M,"callee")&&!zt.call(M,"callee")},ut=Array.isArray;function mi(M){return M!=null&&Jt(M.length)&&!Qt(M)}var xt=_n||yi;function vi(M,P){return Kt(M,P)}function Qt(M){if(!Zt(M))return!1;var P=nt(M);return P==i||P==s||P==a||P==S}function Jt(M){return typeof M=="number"&&M>-1&&M%1==0&&M<=m}function Zt(M){var P=typeof M;return M!=null&&(P=="object"||P=="function")}function it(M){return M!=null&&typeof M=="object"}var qt=ge?qe(ge):ri;function wi(M){return mi(M)?ei(M):si(M)}function bi(){return[]}function yi(){return!1}O.exports=vi})(mt,mt.exports);var dn=mt.exports,Re={};Object.defineProperty(Re,"__esModule",{value:!0});Re.getAceInstance=Re.debounce=Re.editorEvents=Re.editorOptions=void 0;var Ei=["minLines","maxLines","readOnly","highlightActiveLine","tabSize","enableBasicAutocompletion","enableLiveAutocompletion","enableSnippets"];Re.editorOptions=Ei;var Ti=["onChange","onFocus","onInput","onBlur","onCopy","onPaste","onSelectionChange","onCursorChange","onScroll","handleOptions","updateRef"];Re.editorEvents=Ti;var Ri=function(){var O;return typeof window>"u"?(be.window={},O=pt,delete be.window):window.ace?(O=window.ace,O.acequire=window.ace.require||window.ace.acequire):O=pt,O};Re.getAceInstance=Ri;var Mi=function(O,R){var w=null;return function(){var $=this,T=arguments;clearTimeout(w),w=setTimeout(function(){O.apply($,T)},R)}};Re.debounce=Mi;var Oi=be&&be.__extends||function(){var O=function(R,w){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,T){$.__proto__=T}||function($,T){for(var f in T)Object.prototype.hasOwnProperty.call(T,f)&&($[f]=T[f])},O(R,w)};return function(R,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");O(R,w);function $(){this.constructor=R}R.prototype=w===null?Object.create(w):($.prototype=w.prototype,new $)}}(),Tt=be&&be.__assign||function(){return Tt=Object.assign||function(O){for(var R,w=1,$=arguments.length;w<$;w++){R=arguments[w];for(var T in R)Object.prototype.hasOwnProperty.call(R,T)&&(O[T]=R[T])}return O},Tt.apply(this,arguments)};Object.defineProperty(Ft,"__esModule",{value:!0});var Fi=pt,ee=Mt,nn=Me,gt=dn,Qe=Re,rn=(0,Qe.getAceInstance)(),Ii=function(O){Oi(R,O);function R(w){var $=O.call(this,w)||this;return Qe.editorEvents.forEach(function(T){$[T]=$[T].bind($)}),$.debounce=Qe.debounce,$}return R.prototype.isInShadow=function(w){for(var $=w&&w.parentNode;$;){if($.toString()==="[object ShadowRoot]")return!0;$=$.parentNode}return!1},R.prototype.componentDidMount=function(){var w=this,$=this.props,T=$.className,f=$.onBeforeLoad,m=$.onValidate,h=$.mode,o=$.focus,a=$.theme,t=$.fontSize,e=$.value,n=$.defaultValue,i=$.showGutter,s=$.wrapEnabled,l=$.showPrintMargin,c=$.scrollMargin,b=c===void 0?[0,0,0,0]:c,y=$.keyboardHandler,x=$.onLoad,S=$.commands,u=$.annotations,g=$.markers,_=$.placeholder;this.editor=rn.edit(this.refEditor),f&&f(rn);for(var p=Object.keys(this.props.editorProps),C=0;C<p.length;C++)this.editor[p[C]]=this.props.editorProps[p[C]];this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),this.editor.renderer.setScrollMargin(b[0],b[1],b[2],b[3]),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.getSession().setMode(typeof h=="string"?"ace/mode/".concat(h):h),a&&a!==""&&this.editor.setTheme("ace/theme/".concat(a)),this.editor.setFontSize(typeof t=="number"?"".concat(t,"px"):t),this.editor.getSession().setValue(n||e||""),this.props.navigateToFileEnd&&this.editor.navigateFileEnd(),this.editor.renderer.setShowGutter(i),this.editor.getSession().setUseWrapMode(s),this.editor.setShowPrintMargin(l),this.editor.on("focus",this.onFocus),this.editor.on("blur",this.onBlur),this.editor.on("copy",this.onCopy),this.editor.on("paste",this.onPaste),this.editor.on("change",this.onChange),this.editor.on("input",this.onInput),_&&this.updatePlaceholder(),this.editor.getSession().selection.on("changeSelection",this.onSelectionChange),this.editor.getSession().selection.on("changeCursor",this.onCursorChange),m&&this.editor.getSession().on("changeAnnotation",function(){var d=w.editor.getSession().getAnnotations();w.props.onValidate(d)}),this.editor.session.on("changeScrollTop",this.onScroll),this.editor.getSession().setAnnotations(u||[]),g&&g.length>0&&this.handleMarkers(g);var r=this.editor.$options;Qe.editorOptions.forEach(function(d){r.hasOwnProperty(d)?w.editor.setOption(d,w.props[d]):w.props[d]&&console.warn("ReactAce: editor option ".concat(d," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))}),this.handleOptions(this.props),Array.isArray(S)&&S.forEach(function(d){typeof d.exec=="string"?w.editor.commands.bindKey(d.bindKey,d.exec):w.editor.commands.addCommand(d)}),y&&this.editor.setKeyboardHandler("ace/keyboard/"+y),T&&(this.refEditor.className+=" "+T),x&&x(this.editor),this.editor.resize(),o&&this.editor.focus()},R.prototype.componentDidUpdate=function(w){for(var $=w,T=this.props,f=0;f<Qe.editorOptions.length;f++){var m=Qe.editorOptions[f];T[m]!==$[m]&&this.editor.setOption(m,T[m])}if(T.className!==$.className){var h=this.refEditor.className,o=h.trim().split(" "),a=$.className.trim().split(" ");a.forEach(function(n){var i=o.indexOf(n);o.splice(i,1)}),this.refEditor.className=" "+T.className+" "+o.join(" ")}var t=this.editor&&T.value!=null&&this.editor.getValue()!==T.value;if(t){this.silent=!0;var e=this.editor.session.selection.toJSON();this.editor.setValue(T.value,T.cursorStart),this.editor.session.selection.fromJSON(e),this.silent=!1}T.placeholder!==$.placeholder&&this.updatePlaceholder(),T.mode!==$.mode&&this.editor.getSession().setMode(typeof T.mode=="string"?"ace/mode/".concat(T.mode):T.mode),T.theme!==$.theme&&this.editor.setTheme("ace/theme/"+T.theme),T.keyboardHandler!==$.keyboardHandler&&(T.keyboardHandler?this.editor.setKeyboardHandler("ace/keyboard/"+T.keyboardHandler):this.editor.setKeyboardHandler(null)),T.fontSize!==$.fontSize&&this.editor.setFontSize(typeof T.fontSize=="number"?"".concat(T.fontSize,"px"):T.fontSize),T.wrapEnabled!==$.wrapEnabled&&this.editor.getSession().setUseWrapMode(T.wrapEnabled),T.showPrintMargin!==$.showPrintMargin&&this.editor.setShowPrintMargin(T.showPrintMargin),T.showGutter!==$.showGutter&&this.editor.renderer.setShowGutter(T.showGutter),gt(T.setOptions,$.setOptions)||this.handleOptions(T),(t||!gt(T.annotations,$.annotations))&&this.editor.getSession().setAnnotations(T.annotations||[]),!gt(T.markers,$.markers)&&Array.isArray(T.markers)&&this.handleMarkers(T.markers),gt(T.scrollMargin,$.scrollMargin)||this.handleScrollMargins(T.scrollMargin),(w.height!==this.props.height||w.width!==this.props.width)&&this.editor.resize(),this.props.focus&&!w.focus&&this.editor.focus()},R.prototype.handleScrollMargins=function(w){w===void 0&&(w=[0,0,0,0]),this.editor.renderer.setScrollMargin(w[0],w[1],w[2],w[3])},R.prototype.componentWillUnmount=function(){this.editor&&(this.editor.destroy(),this.editor=null)},R.prototype.onChange=function(w){if(this.props.onChange&&!this.silent){var $=this.editor.getValue();this.props.onChange($,w)}},R.prototype.onSelectionChange=function(w){if(this.props.onSelectionChange){var $=this.editor.getSelection();this.props.onSelectionChange($,w)}},R.prototype.onCursorChange=function(w){if(this.props.onCursorChange){var $=this.editor.getSelection();this.props.onCursorChange($,w)}},R.prototype.onInput=function(w){this.props.onInput&&this.props.onInput(w),this.props.placeholder&&this.updatePlaceholder()},R.prototype.onFocus=function(w){this.props.onFocus&&this.props.onFocus(w,this.editor)},R.prototype.onBlur=function(w){this.props.onBlur&&this.props.onBlur(w,this.editor)},R.prototype.onCopy=function(w){var $=w.text;this.props.onCopy&&this.props.onCopy($)},R.prototype.onPaste=function(w){var $=w.text;this.props.onPaste&&this.props.onPaste($)},R.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},R.prototype.handleOptions=function(w){for(var $=Object.keys(w.setOptions),T=0;T<$.length;T++)this.editor.setOption($[T],w.setOptions[$[T]])},R.prototype.handleMarkers=function(w){var $=this,T=this.editor.getSession().getMarkers(!0);for(var f in T)T.hasOwnProperty(f)&&this.editor.getSession().removeMarker(T[f].id);T=this.editor.getSession().getMarkers(!1);for(var f in T)T.hasOwnProperty(f)&&T[f].clazz!=="ace_active-line"&&T[f].clazz!=="ace_selected-word"&&this.editor.getSession().removeMarker(T[f].id);w.forEach(function(m){var h=m.startRow,o=m.startCol,a=m.endRow,t=m.endCol,e=m.className,n=m.type,i=m.inFront,s=i===void 0?!1:i,l=new Fi.Range(h,o,a,t);$.editor.getSession().addMarker(l,e,n,s)})},R.prototype.updatePlaceholder=function(){var w=this.editor,$=this.props.placeholder,T=!w.session.getValue().length,f=w.renderer.placeholderNode;!T&&f?(w.renderer.scroller.removeChild(w.renderer.placeholderNode),w.renderer.placeholderNode=null):T&&!f?(f=w.renderer.placeholderNode=document.createElement("div"),f.textContent=$||"",f.className="ace_comment ace_placeholder",f.style.padding="0 9px",f.style.position="absolute",f.style.zIndex="3",w.renderer.scroller.appendChild(f)):T&&f&&(f.textContent=$)},R.prototype.updateRef=function(w){this.refEditor=w},R.prototype.render=function(){var w=this.props,$=w.name,T=w.width,f=w.height,m=w.style,h=Tt({width:T,height:f},m);return nn.createElement("div",{ref:this.updateRef,id:$,style:h})},R.propTypes={mode:ee.oneOfType([ee.string,ee.object]),focus:ee.bool,theme:ee.string,name:ee.string,className:ee.string,height:ee.string,width:ee.string,fontSize:ee.oneOfType([ee.number,ee.string]),showGutter:ee.bool,onChange:ee.func,onCopy:ee.func,onPaste:ee.func,onFocus:ee.func,onInput:ee.func,onBlur:ee.func,onScroll:ee.func,value:ee.string,defaultValue:ee.string,onLoad:ee.func,onSelectionChange:ee.func,onCursorChange:ee.func,onBeforeLoad:ee.func,onValidate:ee.func,minLines:ee.number,maxLines:ee.number,readOnly:ee.bool,highlightActiveLine:ee.bool,tabSize:ee.number,showPrintMargin:ee.bool,cursorStart:ee.number,debounceChangePeriod:ee.number,editorProps:ee.object,setOptions:ee.object,style:ee.object,scrollMargin:ee.array,annotations:ee.array,markers:ee.array,keyboardHandler:ee.string,wrapEnabled:ee.bool,enableSnippets:ee.bool,enableBasicAutocompletion:ee.oneOfType([ee.bool,ee.array]),enableLiveAutocompletion:ee.oneOfType([ee.bool,ee.array]),navigateToFileEnd:ee.bool,commands:ee.array,placeholder:ee.string},R.defaultProps={name:"ace-editor",focus:!1,mode:"",theme:"",height:"500px",width:"500px",fontSize:12,enableSnippets:!1,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,placeholder:null,navigateToFileEnd:!0},R}(nn.Component);Ft.default=Ii;var It={},vt={},fn={exports:{}};(function(O,R){ace.define("ace/split",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/editor","ace/virtual_renderer","ace/edit_session"],function(w,$,T){var f=w("./lib/oop");w("./lib/lang");var m=w("./lib/event_emitter").EventEmitter,h=w("./editor").Editor,o=w("./virtual_renderer").VirtualRenderer,a=w("./edit_session").EditSession,t=function(e,n,i){this.BELOW=1,this.BESIDE=0,this.$container=e,this.$theme=n,this.$splits=0,this.$editorCSS="",this.$editors=[],this.$orientation=this.BESIDE,this.setSplits(i||1),this.$cEditor=this.$editors[0],this.on("focus",(function(s){this.$cEditor=s}).bind(this))};(function(){f.implement(this,m),this.$createEditor=function(){var e=document.createElement("div");e.className=this.$editorCSS,e.style.cssText="position: absolute; top:0px; bottom:0px",this.$container.appendChild(e);var n=new h(new o(e,this.$theme));return n.on("focus",(function(){this._emit("focus",n)}).bind(this)),this.$editors.push(n),n.setFontSize(this.$fontSize),n},this.setSplits=function(e){var n;if(e<1)throw"The number of splits have to be > 0!";if(e!=this.$splits){if(e>this.$splits){for(;this.$splits<this.$editors.length&&this.$splits<e;)n=this.$editors[this.$splits],this.$container.appendChild(n.container),n.setFontSize(this.$fontSize),this.$splits++;for(;this.$splits<e;)this.$createEditor(),this.$splits++}else for(;this.$splits>e;)n=this.$editors[this.$splits-1],this.$container.removeChild(n.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(e){return this.$editors[e]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(e){this.$editors.forEach(function(n){n.setTheme(e)})},this.setKeyboardHandler=function(e){this.$editors.forEach(function(n){n.setKeyboardHandler(e)})},this.forEach=function(e,n){this.$editors.forEach(e,n)},this.$fontSize="",this.setFontSize=function(e){this.$fontSize=e,this.forEach(function(n){n.setFontSize(e)})},this.$cloneSession=function(e){var n=new a(e.getDocument(),e.getMode()),i=e.getUndoManager();return n.setUndoManager(i),n.setTabSize(e.getTabSize()),n.setUseSoftTabs(e.getUseSoftTabs()),n.setOverwrite(e.getOverwrite()),n.setBreakpoints(e.getBreakpoints()),n.setUseWrapMode(e.getUseWrapMode()),n.setUseWorker(e.getUseWorker()),n.setWrapLimitRange(e.$wrapLimitRange.min,e.$wrapLimitRange.max),n.$foldData=e.$cloneFoldData(),n},this.setSession=function(e,n){var i;n==null?i=this.$cEditor:i=this.$editors[n];var s=this.$editors.some(function(l){return l.session===e});return s&&(e=this.$cloneSession(e)),i.setSession(e),e},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(e){this.$orientation!=e&&(this.$orientation=e,this.resize())},this.resize=function(){var e=this.$container.clientWidth,n=this.$container.clientHeight,i;if(this.$orientation==this.BESIDE)for(var s=e/this.$splits,l=0;l<this.$splits;l++)i=this.$editors[l],i.container.style.width=s+"px",i.container.style.top="0px",i.container.style.left=l*s+"px",i.container.style.height=n+"px",i.resize();else for(var c=n/this.$splits,l=0;l<this.$splits;l++)i=this.$editors[l],i.container.style.width=e+"px",i.container.style.top=l*c+"px",i.container.style.left="0px",i.container.style.height=c+"px",i.resize()}}).call(t.prototype),$.Split=t}),ace.define("ace/ext/split",["require","exports","module","ace/split"],function(w,$,T){T.exports=w("../split")}),function(){ace.require(["ace/ext/split"],function(w){O&&(O.exports=w)})}()})(fn);var Di=fn.exports,Bi="Expected a function",gn="__lodash_hash_undefined__",pn=1/0,Wi="[object Function]",Pi="[object GeneratorFunction]",Hi="[object Symbol]",Ni=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zi=/^\w*$/,Ui=/^\./,Vi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Gi=/[\\^$.*+?()[\]{}|]/g,Ki=/\\(\\)?/g,ji=/^\[object .+?Constructor\]$/,Yi=typeof be=="object"&&be&&be.Object===Object&&be,Xi=typeof self=="object"&&self&&self.Object===Object&&self,Dt=Yi||Xi||Function("return this")();function Qi(O,R){return O==null?void 0:O[R]}function Ji(O){var R=!1;if(O!=null&&typeof O.toString!="function")try{R=!!(O+"")}catch{}return R}var Zi=Array.prototype,qi=Function.prototype,mn=Object.prototype,kt=Dt["__core-js_shared__"],sn=function(){var O=/[^.]+$/.exec(kt&&kt.keys&&kt.keys.IE_PROTO||"");return O?"Symbol(src)_1."+O:""}(),vn=qi.toString,Bt=mn.hasOwnProperty,wn=mn.toString,er=RegExp("^"+vn.call(Bt).replace(Gi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),on=Dt.Symbol,tr=Zi.splice,nr=bn(Dt,"Map"),st=bn(Object,"create"),an=on?on.prototype:void 0,ln=an?an.toString:void 0;function je(O){var R=-1,w=O?O.length:0;for(this.clear();++R<w;){var $=O[R];this.set($[0],$[1])}}function ir(){this.__data__=st?st(null):{}}function rr(O){return this.has(O)&&delete this.__data__[O]}function sr(O){var R=this.__data__;if(st){var w=R[O];return w===gn?void 0:w}return Bt.call(R,O)?R[O]:void 0}function or(O){var R=this.__data__;return st?R[O]!==void 0:Bt.call(R,O)}function ar(O,R){var w=this.__data__;return w[O]=st&&R===void 0?gn:R,this}je.prototype.clear=ir;je.prototype.delete=rr;je.prototype.get=sr;je.prototype.has=or;je.prototype.set=ar;function Ze(O){var R=-1,w=O?O.length:0;for(this.clear();++R<w;){var $=O[R];this.set($[0],$[1])}}function lr(){this.__data__=[]}function hr(O){var R=this.__data__,w=wt(R,O);if(w<0)return!1;var $=R.length-1;return w==$?R.pop():tr.call(R,w,1),!0}function cr(O){var R=this.__data__,w=wt(R,O);return w<0?void 0:R[w][1]}function ur(O){return wt(this.__data__,O)>-1}function dr(O,R){var w=this.__data__,$=wt(w,O);return $<0?w.push([O,R]):w[$][1]=R,this}Ze.prototype.clear=lr;Ze.prototype.delete=hr;Ze.prototype.get=cr;Ze.prototype.has=ur;Ze.prototype.set=dr;function Ye(O){var R=-1,w=O?O.length:0;for(this.clear();++R<w;){var $=O[R];this.set($[0],$[1])}}function fr(){this.__data__={hash:new je,map:new(nr||Ze),string:new je}}function gr(O){return bt(this,O).delete(O)}function pr(O){return bt(this,O).get(O)}function mr(O){return bt(this,O).has(O)}function vr(O,R){return bt(this,O).set(O,R),this}Ye.prototype.clear=fr;Ye.prototype.delete=gr;Ye.prototype.get=pr;Ye.prototype.has=mr;Ye.prototype.set=vr;function wt(O,R){for(var w=O.length;w--;)if(Lr(O[w][0],R))return w;return-1}function wr(O,R){R=Sr(R,O)?[R]:$r(R);for(var w=0,$=R.length;O!=null&&w<$;)O=O[xr(R[w++])];return w&&w==$?O:void 0}function br(O){if(!$n(O)||Ar(O))return!1;var R=Er(O)||Ji(O)?er:ji;return R.test(kr(O))}function yr(O){if(typeof O=="string")return O;if(Pt(O))return ln?ln.call(O):"";var R=O+"";return R=="0"&&1/O==-pn?"-0":R}function $r(O){return yn(O)?O:_r(O)}function bt(O,R){var w=O.__data__;return Cr(R)?w[typeof R=="string"?"string":"hash"]:w.map}function bn(O,R){var w=Qi(O,R);return br(w)?w:void 0}function Sr(O,R){if(yn(O))return!1;var w=typeof O;return w=="number"||w=="symbol"||w=="boolean"||O==null||Pt(O)?!0:zi.test(O)||!Ni.test(O)||R!=null&&O in Object(R)}function Cr(O){var R=typeof O;return R=="string"||R=="number"||R=="symbol"||R=="boolean"?O!=="__proto__":O===null}function Ar(O){return!!sn&&sn in O}var _r=Wt(function(O){O=Rr(O);var R=[];return Ui.test(O)&&R.push(""),O.replace(Vi,function(w,$,T,f){R.push(T?f.replace(Ki,"$1"):$||w)}),R});function xr(O){if(typeof O=="string"||Pt(O))return O;var R=O+"";return R=="0"&&1/O==-pn?"-0":R}function kr(O){if(O!=null){try{return vn.call(O)}catch{}try{return O+""}catch{}}return""}function Wt(O,R){if(typeof O!="function"||R&&typeof R!="function")throw new TypeError(Bi);var w=function(){var $=arguments,T=R?R.apply(this,$):$[0],f=w.cache;if(f.has(T))return f.get(T);var m=O.apply(this,$);return w.cache=f.set(T,m),m};return w.cache=new(Wt.Cache||Ye),w}Wt.Cache=Ye;function Lr(O,R){return O===R||O!==O&&R!==R}var yn=Array.isArray;function Er(O){var R=$n(O)?wn.call(O):"";return R==Wi||R==Pi}function $n(O){var R=typeof O;return!!O&&(R=="object"||R=="function")}function Tr(O){return!!O&&typeof O=="object"}function Pt(O){return typeof O=="symbol"||Tr(O)&&wn.call(O)==Hi}function Rr(O){return O==null?"":yr(O)}function Mr(O,R,w){var $=O==null?void 0:wr(O,R);return $===void 0?w:$}var Or=Mr,Fr=be&&be.__extends||function(){var O=function(R,w){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,T){$.__proto__=T}||function($,T){for(var f in T)Object.prototype.hasOwnProperty.call(T,f)&&($[f]=T[f])},O(R,w)};return function(R,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");O(R,w);function $(){this.constructor=R}R.prototype=w===null?Object.create(w):($.prototype=w.prototype,new $)}}(),Rt=be&&be.__assign||function(){return Rt=Object.assign||function(O){for(var R,w=1,$=arguments.length;w<$;w++){R=arguments[w];for(var T in R)Object.prototype.hasOwnProperty.call(R,T)&&(O[T]=R[T])}return O},Rt.apply(this,arguments)};Object.defineProperty(vt,"__esModule",{value:!0});var Ke=Re,Lt=(0,Ke.getAceInstance)(),Ir=pt,Dr=Di,te=Mt,hn=Me,Et=dn,Ie=Or,Br=function(O){Fr(R,O);function R(w){var $=O.call(this,w)||this;return Ke.editorEvents.forEach(function(T){$[T]=$[T].bind($)}),$.debounce=Ke.debounce,$}return R.prototype.isInShadow=function(w){for(var $=w&&w.parentNode;$;){if($.toString()==="[object ShadowRoot]")return!0;$=$.parentNode}return!1},R.prototype.componentDidMount=function(){var w=this,$=this.props,T=$.className,f=$.onBeforeLoad,m=$.mode,h=$.focus,o=$.theme,a=$.fontSize,t=$.value,e=$.defaultValue,n=$.cursorStart,i=$.showGutter,s=$.wrapEnabled,l=$.showPrintMargin,c=$.scrollMargin,b=c===void 0?[0,0,0,0]:c,y=$.keyboardHandler,x=$.onLoad,S=$.commands,u=$.annotations,g=$.markers,_=$.splits;this.editor=Lt.edit(this.refEditor),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.setTheme("ace/theme/".concat(o)),f&&f(Lt);var p=Object.keys(this.props.editorProps),C=new Dr.Split(this.editor.container,"ace/theme/".concat(o),_);this.editor.env.split=C,this.splitEditor=C.getEditor(0),this.split=C,this.editor.setShowPrintMargin(!1),this.editor.renderer.setShowGutter(!1);var r=this.splitEditor.$options;this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),C.forEach(function(v,A){for(var k=0;k<p.length;k++)v[p[k]]=w.props.editorProps[p[k]];var L=Ie(e,A),E=Ie(t,A,"");v.session.setUndoManager(new Lt.UndoManager),v.setTheme("ace/theme/".concat(o)),v.renderer.setScrollMargin(b[0],b[1],b[2],b[3]),v.getSession().setMode("ace/mode/".concat(m)),v.setFontSize(a),v.renderer.setShowGutter(i),v.getSession().setUseWrapMode(s),v.setShowPrintMargin(l),v.on("focus",w.onFocus),v.on("blur",w.onBlur),v.on("input",w.onInput),v.on("copy",w.onCopy),v.on("paste",w.onPaste),v.on("change",w.onChange),v.getSession().selection.on("changeSelection",w.onSelectionChange),v.getSession().selection.on("changeCursor",w.onCursorChange),v.session.on("changeScrollTop",w.onScroll),v.setValue(L===void 0?E:L,n);var F=Ie(u,A,[]),I=Ie(g,A,[]);v.getSession().setAnnotations(F),I&&I.length>0&&w.handleMarkers(I,v);for(var k=0;k<Ke.editorOptions.length;k++){var D=Ke.editorOptions[k];r.hasOwnProperty(D)?v.setOption(D,w.props[D]):w.props[D]&&console.warn("ReaceAce: editor option ".concat(D," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))}w.handleOptions(w.props,v),Array.isArray(S)&&S.forEach(function(W){typeof W.exec=="string"?v.commands.bindKey(W.bindKey,W.exec):v.commands.addCommand(W)}),y&&v.setKeyboardHandler("ace/keyboard/"+y)}),T&&(this.refEditor.className+=" "+T),h&&this.splitEditor.focus();var d=this.editor.env.split;d.setOrientation(this.props.orientation==="below"?d.BELOW:d.BESIDE),d.resize(!0),x&&x(d)},R.prototype.componentDidUpdate=function(w){var $=this,T=w,f=this.props,m=this.editor.env.split;if(f.splits!==T.splits&&m.setSplits(f.splits),f.orientation!==T.orientation&&m.setOrientation(f.orientation==="below"?m.BELOW:m.BESIDE),m.forEach(function(t,e){f.mode!==T.mode&&t.getSession().setMode("ace/mode/"+f.mode),f.keyboardHandler!==T.keyboardHandler&&(f.keyboardHandler?t.setKeyboardHandler("ace/keyboard/"+f.keyboardHandler):t.setKeyboardHandler(null)),f.fontSize!==T.fontSize&&t.setFontSize(f.fontSize),f.wrapEnabled!==T.wrapEnabled&&t.getSession().setUseWrapMode(f.wrapEnabled),f.showPrintMargin!==T.showPrintMargin&&t.setShowPrintMargin(f.showPrintMargin),f.showGutter!==T.showGutter&&t.renderer.setShowGutter(f.showGutter);for(var n=0;n<Ke.editorOptions.length;n++){var i=Ke.editorOptions[n];f[i]!==T[i]&&t.setOption(i,f[i])}Et(f.setOptions,T.setOptions)||$.handleOptions(f,t);var s=Ie(f.value,e,"");if(t.getValue()!==s){$.silent=!0;var l=t.session.selection.toJSON();t.setValue(s,f.cursorStart),t.session.selection.fromJSON(l),$.silent=!1}var c=Ie(f.annotations,e,[]),b=Ie(T.annotations,e,[]);Et(c,b)||t.getSession().setAnnotations(c);var y=Ie(f.markers,e,[]),x=Ie(T.markers,e,[]);!Et(y,x)&&Array.isArray(y)&&$.handleMarkers(y,t)}),f.className!==T.className){var h=this.refEditor.className,o=h.trim().split(" "),a=T.className.trim().split(" ");a.forEach(function(t){var e=o.indexOf(t);o.splice(e,1)}),this.refEditor.className=" "+f.className+" "+o.join(" ")}f.theme!==T.theme&&m.setTheme("ace/theme/"+f.theme),f.focus&&!T.focus&&this.splitEditor.focus(),(f.height!==this.props.height||f.width!==this.props.width)&&this.editor.resize()},R.prototype.componentWillUnmount=function(){this.editor.destroy(),this.editor=null},R.prototype.onChange=function(w){if(this.props.onChange&&!this.silent){var $=[];this.editor.env.split.forEach(function(T){$.push(T.getValue())}),this.props.onChange($,w)}},R.prototype.onSelectionChange=function(w){if(this.props.onSelectionChange){var $=[];this.editor.env.split.forEach(function(T){$.push(T.getSelection())}),this.props.onSelectionChange($,w)}},R.prototype.onCursorChange=function(w){if(this.props.onCursorChange){var $=[];this.editor.env.split.forEach(function(T){$.push(T.getSelection())}),this.props.onCursorChange($,w)}},R.prototype.onFocus=function(w){this.props.onFocus&&this.props.onFocus(w)},R.prototype.onInput=function(w){this.props.onInput&&this.props.onInput(w)},R.prototype.onBlur=function(w){this.props.onBlur&&this.props.onBlur(w)},R.prototype.onCopy=function(w){this.props.onCopy&&this.props.onCopy(w)},R.prototype.onPaste=function(w){this.props.onPaste&&this.props.onPaste(w)},R.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},R.prototype.handleOptions=function(w,$){for(var T=Object.keys(w.setOptions),f=0;f<T.length;f++)$.setOption(T[f],w.setOptions[T[f]])},R.prototype.handleMarkers=function(w,$){var T=$.getSession().getMarkers(!0);for(var f in T)T.hasOwnProperty(f)&&$.getSession().removeMarker(T[f].id);T=$.getSession().getMarkers(!1);for(var f in T)T.hasOwnProperty(f)&&$.getSession().removeMarker(T[f].id);w.forEach(function(m){var h=m.startRow,o=m.startCol,a=m.endRow,t=m.endCol,e=m.className,n=m.type,i=m.inFront,s=i===void 0?!1:i,l=new Ir.Range(h,o,a,t);$.getSession().addMarker(l,e,n,s)})},R.prototype.updateRef=function(w){this.refEditor=w},R.prototype.render=function(){var w=this.props,$=w.name,T=w.width,f=w.height,m=w.style,h=Rt({width:T,height:f},m);return hn.createElement("div",{ref:this.updateRef,id:$,style:h})},R.propTypes={className:te.string,debounceChangePeriod:te.number,defaultValue:te.arrayOf(te.string),focus:te.bool,fontSize:te.oneOfType([te.number,te.string]),height:te.string,mode:te.string,name:te.string,onBlur:te.func,onChange:te.func,onCopy:te.func,onFocus:te.func,onInput:te.func,onLoad:te.func,onPaste:te.func,onScroll:te.func,orientation:te.string,showGutter:te.bool,splits:te.number,theme:te.string,value:te.arrayOf(te.string),width:te.string,onSelectionChange:te.func,onCursorChange:te.func,onBeforeLoad:te.func,minLines:te.number,maxLines:te.number,readOnly:te.bool,highlightActiveLine:te.bool,tabSize:te.number,showPrintMargin:te.bool,cursorStart:te.number,editorProps:te.object,setOptions:te.object,style:te.object,scrollMargin:te.array,annotations:te.array,markers:te.array,keyboardHandler:te.string,wrapEnabled:te.bool,enableBasicAutocompletion:te.oneOfType([te.bool,te.array]),enableLiveAutocompletion:te.oneOfType([te.bool,te.array]),commands:te.array},R.defaultProps={name:"ace-editor",focus:!1,orientation:"beside",splits:2,mode:"",theme:"",height:"500px",width:"500px",value:[],fontSize:12,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1},R}(hn.Component);vt.default=Br;var Sn={exports:{}};(function(O){var R=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},w=-1,$=1,T=0;R.Diff=function(f,m){return[f,m]},R.prototype.diff_main=function(f,m,h,o){typeof o>"u"&&(this.Diff_Timeout<=0?o=Number.MAX_VALUE:o=new Date().getTime()+this.Diff_Timeout*1e3);var a=o;if(f==null||m==null)throw new Error("Null input. (diff_main)");if(f==m)return f?[new R.Diff(T,f)]:[];typeof h>"u"&&(h=!0);var t=h,e=this.diff_commonPrefix(f,m),n=f.substring(0,e);f=f.substring(e),m=m.substring(e),e=this.diff_commonSuffix(f,m);var i=f.substring(f.length-e);f=f.substring(0,f.length-e),m=m.substring(0,m.length-e);var s=this.diff_compute_(f,m,t,a);return n&&s.unshift(new R.Diff(T,n)),i&&s.push(new R.Diff(T,i)),this.diff_cleanupMerge(s),s},R.prototype.diff_compute_=function(f,m,h,o){var a;if(!f)return[new R.Diff($,m)];if(!m)return[new R.Diff(w,f)];var t=f.length>m.length?f:m,e=f.length>m.length?m:f,n=t.indexOf(e);if(n!=-1)return a=[new R.Diff($,t.substring(0,n)),new R.Diff(T,e),new R.Diff($,t.substring(n+e.length))],f.length>m.length&&(a[0][0]=a[2][0]=w),a;if(e.length==1)return[new R.Diff(w,f),new R.Diff($,m)];var i=this.diff_halfMatch_(f,m);if(i){var s=i[0],l=i[1],c=i[2],b=i[3],y=i[4],x=this.diff_main(s,c,h,o),S=this.diff_main(l,b,h,o);return x.concat([new R.Diff(T,y)],S)}return h&&f.length>100&&m.length>100?this.diff_lineMode_(f,m,o):this.diff_bisect_(f,m,o)},R.prototype.diff_lineMode_=function(f,m,h){var o=this.diff_linesToChars_(f,m);f=o.chars1,m=o.chars2;var a=o.lineArray,t=this.diff_main(f,m,!1,h);this.diff_charsToLines_(t,a),this.diff_cleanupSemantic(t),t.push(new R.Diff(T,""));for(var e=0,n=0,i=0,s="",l="";e<t.length;){switch(t[e][0]){case $:i++,l+=t[e][1];break;case w:n++,s+=t[e][1];break;case T:if(n>=1&&i>=1){t.splice(e-n-i,n+i),e=e-n-i;for(var c=this.diff_main(s,l,!1,h),b=c.length-1;b>=0;b--)t.splice(e,0,c[b]);e=e+c.length}i=0,n=0,s="",l="";break}e++}return t.pop(),t},R.prototype.diff_bisect_=function(f,m,h){for(var o=f.length,a=m.length,t=Math.ceil((o+a)/2),e=t,n=2*t,i=new Array(n),s=new Array(n),l=0;l<n;l++)i[l]=-1,s[l]=-1;i[e+1]=0,s[e+1]=0;for(var c=o-a,b=c%2!=0,y=0,x=0,S=0,u=0,g=0;g<t&&!(new Date().getTime()>h);g++){for(var _=-g+y;_<=g-x;_+=2){var p=e+_,C;_==-g||_!=g&&i[p-1]<i[p+1]?C=i[p+1]:C=i[p-1]+1;for(var r=C-_;C<o&&r<a&&f.charAt(C)==m.charAt(r);)C++,r++;if(i[p]=C,C>o)x+=2;else if(r>a)y+=2;else if(b){var d=e+c-_;if(d>=0&&d<n&&s[d]!=-1){var v=o-s[d];if(C>=v)return this.diff_bisectSplit_(f,m,C,r,h)}}}for(var A=-g+S;A<=g-u;A+=2){var d=e+A,v;A==-g||A!=g&&s[d-1]<s[d+1]?v=s[d+1]:v=s[d-1]+1;for(var k=v-A;v<o&&k<a&&f.charAt(o-v-1)==m.charAt(a-k-1);)v++,k++;if(s[d]=v,v>o)u+=2;else if(k>a)S+=2;else if(!b){var p=e+c-A;if(p>=0&&p<n&&i[p]!=-1){var C=i[p],r=e+C-p;if(v=o-v,C>=v)return this.diff_bisectSplit_(f,m,C,r,h)}}}}return[new R.Diff(w,f),new R.Diff($,m)]},R.prototype.diff_bisectSplit_=function(f,m,h,o,a){var t=f.substring(0,h),e=m.substring(0,o),n=f.substring(h),i=m.substring(o),s=this.diff_main(t,e,!1,a),l=this.diff_main(n,i,!1,a);return s.concat(l)},R.prototype.diff_linesToChars_=function(f,m){var h=[],o={};h[0]="";function a(i){for(var s="",l=0,c=-1,b=h.length;c<i.length-1;){c=i.indexOf(`
891
+ `,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(w,$,T){w("./loader_build")($);var f=w("./lib/dom"),m=w("./lib/event"),h=w("./range").Range,o=w("./editor").Editor,a=w("./edit_session").EditSession,t=w("./undomanager").UndoManager,e=w("./virtual_renderer").VirtualRenderer;w("./worker/worker_client"),w("./keyboard/hash_handler"),w("./placeholder"),w("./multi_select"),w("./mode/folding/fold_mode"),w("./theme/textmate"),w("./ext/error_marker"),$.config=w("./config"),$.edit=function(n,i){if(typeof n=="string"){var s=n;if(n=document.getElementById(s),!n)throw new Error("ace.edit can't find div #"+s)}if(n&&n.env&&n.env.editor instanceof o)return n.env.editor;var l="";if(n&&/input|textarea/i.test(n.tagName)){var c=n;l=c.value,n=f.createElement("pre"),c.parentNode.replaceChild(n,c)}else n&&(l=n.textContent,n.innerHTML="");var b=$.createEditSession(l),y=new o(new e(n),b,i),x={document:b,editor:y,onResize:y.resize.bind(y,null)};return c&&(x.textarea=c),m.addListener(window,"resize",x.onResize),y.on("destroy",function(){m.removeListener(window,"resize",x.onResize),x.editor.container.env=null}),y.container.env=y.env=x,y},$.createEditSession=function(n,i){var s=new a(n,i);return s.setUndoManager(new t),s},$.Range=h,$.Editor=o,$.EditSession=a,$.UndoManager=t,$.VirtualRenderer=e,$.version=$.config.version}),function(){ace.require(["ace/ace"],function(w){w&&(w.config.init(!0),w.define=ace.define),window.ace||(window.ace=w);for(var $ in w)w.hasOwnProperty($)&&(window.ace[$]=w[$]);window.ace.default=window.ace,O&&(O.exports=window.ace)})}()})(un);var pt=un.exports,mt={exports:{}};mt.exports;(function(O,R){var w=200,$="__lodash_hash_undefined__",T=1,f=2,m=9007199254740991,h="[object Arguments]",o="[object Array]",a="[object AsyncFunction]",t="[object Boolean]",e="[object Date]",n="[object Error]",i="[object Function]",s="[object GeneratorFunction]",l="[object Map]",c="[object Number]",b="[object Null]",y="[object Object]",x="[object Promise]",S="[object Proxy]",u="[object RegExp]",g="[object Set]",_="[object String]",p="[object Symbol]",C="[object Undefined]",r="[object WeakMap]",d="[object ArrayBuffer]",v="[object DataView]",A="[object Float32Array]",k="[object Float64Array]",L="[object Int8Array]",E="[object Int16Array]",F="[object Int32Array]",I="[object Uint8Array]",D="[object Uint8ClampedArray]",W="[object Uint16Array]",N="[object Uint32Array]",U=/[\\^$.*+?()[\]{}|]/g,B=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,z={};z[A]=z[k]=z[L]=z[E]=z[F]=z[I]=z[D]=z[W]=z[N]=!0,z[h]=z[o]=z[d]=z[t]=z[v]=z[e]=z[n]=z[i]=z[l]=z[c]=z[y]=z[u]=z[g]=z[_]=z[r]=!1;var j=typeof be=="object"&&be&&be.Object===Object&&be,Y=typeof self=="object"&&self&&self.Object===Object&&self,V=j||Y||Function("return this")(),J=R&&!R.nodeType&&R,X=J&&!0&&O&&!O.nodeType&&O,q=X&&X.exports===J,oe=q&&j.process,ve=function(){try{return oe&&oe.binding&&oe.binding("util")}catch{}}(),ge=ve&&ve.isTypedArray;function le(M,P){for(var G=-1,Q=M==null?0:M.length,fe=0,ie=[];++G<Q;){var we=M[G];P(we,G,M)&&(ie[fe++]=we)}return ie}function Ae(M,P){for(var G=-1,Q=P.length,fe=M.length;++G<Q;)M[fe+G]=P[G];return M}function De(M,P){for(var G=-1,Q=M==null?0:M.length;++G<Q;)if(P(M[G],G,M))return!0;return!1}function Ee(M,P){for(var G=-1,Q=Array(M);++G<M;)Q[G]=P(G);return Q}function qe(M){return function(P){return M(P)}}function yt(M,P){return M.has(P)}function K(M,P){return M==null?void 0:M[P]}function Z(M){var P=-1,G=Array(M.size);return M.forEach(function(Q,fe){G[++P]=[fe,Q]}),G}function ne(M,P){return function(G){return M(P(G))}}function se(M){var P=-1,G=Array(M.size);return M.forEach(function(Q){G[++P]=Q}),G}var he=Array.prototype,pe=Function.prototype,ue=Object.prototype,de=V["__core-js_shared__"],ce=pe.toString,re=ue.hasOwnProperty,_e=function(){var M=/[^.]+$/.exec(de&&de.keys&&de.keys.IE_PROTO||"");return M?"Symbol(src)_1."+M:""}(),He=ue.toString,ot=RegExp("^"+ce.call(re).replace(U,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ht=q?V.Buffer:void 0,at=V.Symbol,Nt=V.Uint8Array,zt=ue.propertyIsEnumerable,Cn=he.splice,Ne=at?at.toStringTag:void 0,Ut=Object.getOwnPropertySymbols,An=Ht?Ht.isBuffer:void 0,_n=ne(Object.keys,Object),$t=Xe(V,"DataView"),et=Xe(V,"Map"),St=Xe(V,"Promise"),Ct=Xe(V,"Set"),At=Xe(V,"WeakMap"),tt=Xe(Object,"create"),xn=Ve($t),kn=Ve(et),Ln=Ve(St),En=Ve(Ct),Tn=Ve(At),Vt=at?at.prototype:void 0,_t=Vt?Vt.valueOf:void 0;function ze(M){var P=-1,G=M==null?0:M.length;for(this.clear();++P<G;){var Q=M[P];this.set(Q[0],Q[1])}}function Rn(){this.__data__=tt?tt(null):{},this.size=0}function Mn(M){var P=this.has(M)&&delete this.__data__[M];return this.size-=P?1:0,P}function On(M){var P=this.__data__;if(tt){var G=P[M];return G===$?void 0:G}return re.call(P,M)?P[M]:void 0}function Fn(M){var P=this.__data__;return tt?P[M]!==void 0:re.call(P,M)}function In(M,P){var G=this.__data__;return this.size+=this.has(M)?0:1,G[M]=tt&&P===void 0?$:P,this}ze.prototype.clear=Rn,ze.prototype.delete=Mn,ze.prototype.get=On,ze.prototype.has=Fn,ze.prototype.set=In;function Oe(M){var P=-1,G=M==null?0:M.length;for(this.clear();++P<G;){var Q=M[P];this.set(Q[0],Q[1])}}function Dn(){this.__data__=[],this.size=0}function Bn(M){var P=this.__data__,G=ht(P,M);if(G<0)return!1;var Q=P.length-1;return G==Q?P.pop():Cn.call(P,G,1),--this.size,!0}function Wn(M){var P=this.__data__,G=ht(P,M);return G<0?void 0:P[G][1]}function Pn(M){return ht(this.__data__,M)>-1}function Hn(M,P){var G=this.__data__,Q=ht(G,M);return Q<0?(++this.size,G.push([M,P])):G[Q][1]=P,this}Oe.prototype.clear=Dn,Oe.prototype.delete=Bn,Oe.prototype.get=Wn,Oe.prototype.has=Pn,Oe.prototype.set=Hn;function Ue(M){var P=-1,G=M==null?0:M.length;for(this.clear();++P<G;){var Q=M[P];this.set(Q[0],Q[1])}}function Nn(){this.size=0,this.__data__={hash:new ze,map:new(et||Oe),string:new ze}}function zn(M){var P=ct(this,M).delete(M);return this.size-=P?1:0,P}function Un(M){return ct(this,M).get(M)}function Vn(M){return ct(this,M).has(M)}function Gn(M,P){var G=ct(this,M),Q=G.size;return G.set(M,P),this.size+=G.size==Q?0:1,this}Ue.prototype.clear=Nn,Ue.prototype.delete=zn,Ue.prototype.get=Un,Ue.prototype.has=Vn,Ue.prototype.set=Gn;function lt(M){var P=-1,G=M==null?0:M.length;for(this.__data__=new Ue;++P<G;)this.add(M[P])}function Kn(M){return this.__data__.set(M,$),this}function jn(M){return this.__data__.has(M)}lt.prototype.add=lt.prototype.push=Kn,lt.prototype.has=jn;function Be(M){var P=this.__data__=new Oe(M);this.size=P.size}function Yn(){this.__data__=new Oe,this.size=0}function Xn(M){var P=this.__data__,G=P.delete(M);return this.size=P.size,G}function Qn(M){return this.__data__.get(M)}function Jn(M){return this.__data__.has(M)}function Zn(M,P){var G=this.__data__;if(G instanceof Oe){var Q=G.__data__;if(!et||Q.length<w-1)return Q.push([M,P]),this.size=++G.size,this;G=this.__data__=new Ue(Q)}return G.set(M,P),this.size=G.size,this}Be.prototype.clear=Yn,Be.prototype.delete=Xn,Be.prototype.get=Qn,Be.prototype.has=Jn,Be.prototype.set=Zn;function qn(M,P){var G=ut(M),Q=!G&&gi(M),fe=!G&&!Q&&xt(M),ie=!G&&!Q&&!fe&&qt(M),we=G||Q||fe||ie,$e=we?Ee(M.length,String):[],Se=$e.length;for(var me in M)(P||re.call(M,me))&&!(we&&(me=="length"||fe&&(me=="offset"||me=="parent")||ie&&(me=="buffer"||me=="byteLength"||me=="byteOffset")||hi(me,Se)))&&$e.push(me);return $e}function ht(M,P){for(var G=M.length;G--;)if(Xt(M[G][0],P))return G;return-1}function ei(M,P,G){var Q=P(M);return ut(M)?Q:Ae(Q,G(M))}function nt(M){return M==null?M===void 0?C:b:Ne&&Ne in Object(M)?ai(M):fi(M)}function Gt(M){return it(M)&&nt(M)==h}function Kt(M,P,G,Q,fe){return M===P?!0:M==null||P==null||!it(M)&&!it(P)?M!==M&&P!==P:ti(M,P,G,Q,Kt,fe)}function ti(M,P,G,Q,fe,ie){var we=ut(M),$e=ut(P),Se=we?o:We(M),me=$e?o:We(P);Se=Se==h?y:Se,me=me==h?y:me;var xe=Se==y,Te=me==y,Ce=Se==me;if(Ce&&xt(M)){if(!xt(P))return!1;we=!0,xe=!1}if(Ce&&!xe)return ie||(ie=new Be),we||qt(M)?jt(M,P,G,Q,fe,ie):si(M,P,Se,G,Q,fe,ie);if(!(G&T)){var ke=xe&&re.call(M,"__wrapped__"),Le=Te&&re.call(P,"__wrapped__");if(ke||Le){var Pe=ke?M.value():M,Fe=Le?P.value():P;return ie||(ie=new Be),fe(Pe,Fe,G,Q,ie)}}return Ce?(ie||(ie=new Be),oi(M,P,G,Q,fe,ie)):!1}function ni(M){if(!Zt(M)||ui(M))return!1;var P=Qt(M)?ot:B;return P.test(Ve(M))}function ii(M){return it(M)&&Jt(M.length)&&!!z[nt(M)]}function ri(M){if(!di(M))return _n(M);var P=[];for(var G in Object(M))re.call(M,G)&&G!="constructor"&&P.push(G);return P}function jt(M,P,G,Q,fe,ie){var we=G&T,$e=M.length,Se=P.length;if($e!=Se&&!(we&&Se>$e))return!1;var me=ie.get(M);if(me&&ie.get(P))return me==P;var xe=-1,Te=!0,Ce=G&f?new lt:void 0;for(ie.set(M,P),ie.set(P,M);++xe<$e;){var ke=M[xe],Le=P[xe];if(Q)var Pe=we?Q(Le,ke,xe,P,M,ie):Q(ke,Le,xe,M,P,ie);if(Pe!==void 0){if(Pe)continue;Te=!1;break}if(Ce){if(!De(P,function(Fe,Ge){if(!yt(Ce,Ge)&&(ke===Fe||fe(ke,Fe,G,Q,ie)))return Ce.push(Ge)})){Te=!1;break}}else if(!(ke===Le||fe(ke,Le,G,Q,ie))){Te=!1;break}}return ie.delete(M),ie.delete(P),Te}function si(M,P,G,Q,fe,ie,we){switch(G){case v:if(M.byteLength!=P.byteLength||M.byteOffset!=P.byteOffset)return!1;M=M.buffer,P=P.buffer;case d:return!(M.byteLength!=P.byteLength||!ie(new Nt(M),new Nt(P)));case t:case e:case c:return Xt(+M,+P);case n:return M.name==P.name&&M.message==P.message;case u:case _:return M==P+"";case l:var $e=Z;case g:var Se=Q&T;if($e||($e=se),M.size!=P.size&&!Se)return!1;var me=we.get(M);if(me)return me==P;Q|=f,we.set(M,P);var xe=jt($e(M),$e(P),Q,fe,ie,we);return we.delete(M),xe;case p:if(_t)return _t.call(M)==_t.call(P)}return!1}function oi(M,P,G,Q,fe,ie){var we=G&T,$e=Yt(M),Se=$e.length,me=Yt(P),xe=me.length;if(Se!=xe&&!we)return!1;for(var Te=Se;Te--;){var Ce=$e[Te];if(!(we?Ce in P:re.call(P,Ce)))return!1}var ke=ie.get(M);if(ke&&ie.get(P))return ke==P;var Le=!0;ie.set(M,P),ie.set(P,M);for(var Pe=we;++Te<Se;){Ce=$e[Te];var Fe=M[Ce],Ge=P[Ce];if(Q)var en=we?Q(Ge,Fe,Ce,P,M,ie):Q(Fe,Ge,Ce,M,P,ie);if(!(en===void 0?Fe===Ge||fe(Fe,Ge,G,Q,ie):en)){Le=!1;break}Pe||(Pe=Ce=="constructor")}if(Le&&!Pe){var dt=M.constructor,ft=P.constructor;dt!=ft&&"constructor"in M&&"constructor"in P&&!(typeof dt=="function"&&dt instanceof dt&&typeof ft=="function"&&ft instanceof ft)&&(Le=!1)}return ie.delete(M),ie.delete(P),Le}function Yt(M){return ei(M,vi,li)}function ct(M,P){var G=M.__data__;return ci(P)?G[typeof P=="string"?"string":"hash"]:G.map}function Xe(M,P){var G=K(M,P);return ni(G)?G:void 0}function ai(M){var P=re.call(M,Ne),G=M[Ne];try{M[Ne]=void 0;var Q=!0}catch{}var fe=He.call(M);return Q&&(P?M[Ne]=G:delete M[Ne]),fe}var li=Ut?function(M){return M==null?[]:(M=Object(M),le(Ut(M),function(P){return zt.call(M,P)}))}:wi,We=nt;($t&&We(new $t(new ArrayBuffer(1)))!=v||et&&We(new et)!=l||St&&We(St.resolve())!=x||Ct&&We(new Ct)!=g||At&&We(new At)!=r)&&(We=function(M){var P=nt(M),G=P==y?M.constructor:void 0,Q=G?Ve(G):"";if(Q)switch(Q){case xn:return v;case kn:return l;case Ln:return x;case En:return g;case Tn:return r}return P});function hi(M,P){return P=P??m,!!P&&(typeof M=="number"||H.test(M))&&M>-1&&M%1==0&&M<P}function ci(M){var P=typeof M;return P=="string"||P=="number"||P=="symbol"||P=="boolean"?M!=="__proto__":M===null}function ui(M){return!!_e&&_e in M}function di(M){var P=M&&M.constructor,G=typeof P=="function"&&P.prototype||ue;return M===G}function fi(M){return He.call(M)}function Ve(M){if(M!=null){try{return ce.call(M)}catch{}try{return M+""}catch{}}return""}function Xt(M,P){return M===P||M!==M&&P!==P}var gi=Gt(function(){return arguments}())?Gt:function(M){return it(M)&&re.call(M,"callee")&&!zt.call(M,"callee")},ut=Array.isArray;function pi(M){return M!=null&&Jt(M.length)&&!Qt(M)}var xt=An||bi;function mi(M,P){return Kt(M,P)}function Qt(M){if(!Zt(M))return!1;var P=nt(M);return P==i||P==s||P==a||P==S}function Jt(M){return typeof M=="number"&&M>-1&&M%1==0&&M<=m}function Zt(M){var P=typeof M;return M!=null&&(P=="object"||P=="function")}function it(M){return M!=null&&typeof M=="object"}var qt=ge?qe(ge):ii;function vi(M){return pi(M)?qn(M):ri(M)}function wi(){return[]}function bi(){return!1}O.exports=mi})(mt,mt.exports);var dn=mt.exports,Re={};Object.defineProperty(Re,"__esModule",{value:!0});Re.getAceInstance=Re.debounce=Re.editorEvents=Re.editorOptions=void 0;var Li=["minLines","maxLines","readOnly","highlightActiveLine","tabSize","enableBasicAutocompletion","enableLiveAutocompletion","enableSnippets"];Re.editorOptions=Li;var Ei=["onChange","onFocus","onInput","onBlur","onCopy","onPaste","onSelectionChange","onCursorChange","onScroll","handleOptions","updateRef"];Re.editorEvents=Ei;var Ti=function(){var O;return typeof window>"u"?(be.window={},O=pt,delete be.window):window.ace?(O=window.ace,O.acequire=window.ace.require||window.ace.acequire):O=pt,O};Re.getAceInstance=Ti;var Ri=function(O,R){var w=null;return function(){var $=this,T=arguments;clearTimeout(w),w=setTimeout(function(){O.apply($,T)},R)}};Re.debounce=Ri;var Mi=be&&be.__extends||function(){var O=function(R,w){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,T){$.__proto__=T}||function($,T){for(var f in T)Object.prototype.hasOwnProperty.call(T,f)&&($[f]=T[f])},O(R,w)};return function(R,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");O(R,w);function $(){this.constructor=R}R.prototype=w===null?Object.create(w):($.prototype=w.prototype,new $)}}(),Tt=be&&be.__assign||function(){return Tt=Object.assign||function(O){for(var R,w=1,$=arguments.length;w<$;w++){R=arguments[w];for(var T in R)Object.prototype.hasOwnProperty.call(R,T)&&(O[T]=R[T])}return O},Tt.apply(this,arguments)};Object.defineProperty(Ft,"__esModule",{value:!0});var Oi=pt,ee=Mt,nn=Me,gt=dn,Qe=Re,rn=(0,Qe.getAceInstance)(),Fi=function(O){Mi(R,O);function R(w){var $=O.call(this,w)||this;return Qe.editorEvents.forEach(function(T){$[T]=$[T].bind($)}),$.debounce=Qe.debounce,$}return R.prototype.isInShadow=function(w){for(var $=w&&w.parentNode;$;){if($.toString()==="[object ShadowRoot]")return!0;$=$.parentNode}return!1},R.prototype.componentDidMount=function(){var w=this,$=this.props,T=$.className,f=$.onBeforeLoad,m=$.onValidate,h=$.mode,o=$.focus,a=$.theme,t=$.fontSize,e=$.value,n=$.defaultValue,i=$.showGutter,s=$.wrapEnabled,l=$.showPrintMargin,c=$.scrollMargin,b=c===void 0?[0,0,0,0]:c,y=$.keyboardHandler,x=$.onLoad,S=$.commands,u=$.annotations,g=$.markers,_=$.placeholder;this.editor=rn.edit(this.refEditor),f&&f(rn);for(var p=Object.keys(this.props.editorProps),C=0;C<p.length;C++)this.editor[p[C]]=this.props.editorProps[p[C]];this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),this.editor.renderer.setScrollMargin(b[0],b[1],b[2],b[3]),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.getSession().setMode(typeof h=="string"?"ace/mode/".concat(h):h),a&&a!==""&&this.editor.setTheme("ace/theme/".concat(a)),this.editor.setFontSize(typeof t=="number"?"".concat(t,"px"):t),this.editor.getSession().setValue(n||e||""),this.props.navigateToFileEnd&&this.editor.navigateFileEnd(),this.editor.renderer.setShowGutter(i),this.editor.getSession().setUseWrapMode(s),this.editor.setShowPrintMargin(l),this.editor.on("focus",this.onFocus),this.editor.on("blur",this.onBlur),this.editor.on("copy",this.onCopy),this.editor.on("paste",this.onPaste),this.editor.on("change",this.onChange),this.editor.on("input",this.onInput),_&&this.updatePlaceholder(),this.editor.getSession().selection.on("changeSelection",this.onSelectionChange),this.editor.getSession().selection.on("changeCursor",this.onCursorChange),m&&this.editor.getSession().on("changeAnnotation",function(){var d=w.editor.getSession().getAnnotations();w.props.onValidate(d)}),this.editor.session.on("changeScrollTop",this.onScroll),this.editor.getSession().setAnnotations(u||[]),g&&g.length>0&&this.handleMarkers(g);var r=this.editor.$options;Qe.editorOptions.forEach(function(d){r.hasOwnProperty(d)?w.editor.setOption(d,w.props[d]):w.props[d]&&console.warn("ReactAce: editor option ".concat(d," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))}),this.handleOptions(this.props),Array.isArray(S)&&S.forEach(function(d){typeof d.exec=="string"?w.editor.commands.bindKey(d.bindKey,d.exec):w.editor.commands.addCommand(d)}),y&&this.editor.setKeyboardHandler("ace/keyboard/"+y),T&&(this.refEditor.className+=" "+T),x&&x(this.editor),this.editor.resize(),o&&this.editor.focus()},R.prototype.componentDidUpdate=function(w){for(var $=w,T=this.props,f=0;f<Qe.editorOptions.length;f++){var m=Qe.editorOptions[f];T[m]!==$[m]&&this.editor.setOption(m,T[m])}if(T.className!==$.className){var h=this.refEditor.className,o=h.trim().split(" "),a=$.className.trim().split(" ");a.forEach(function(n){var i=o.indexOf(n);o.splice(i,1)}),this.refEditor.className=" "+T.className+" "+o.join(" ")}var t=this.editor&&T.value!=null&&this.editor.getValue()!==T.value;if(t){this.silent=!0;var e=this.editor.session.selection.toJSON();this.editor.setValue(T.value,T.cursorStart),this.editor.session.selection.fromJSON(e),this.silent=!1}T.placeholder!==$.placeholder&&this.updatePlaceholder(),T.mode!==$.mode&&this.editor.getSession().setMode(typeof T.mode=="string"?"ace/mode/".concat(T.mode):T.mode),T.theme!==$.theme&&this.editor.setTheme("ace/theme/"+T.theme),T.keyboardHandler!==$.keyboardHandler&&(T.keyboardHandler?this.editor.setKeyboardHandler("ace/keyboard/"+T.keyboardHandler):this.editor.setKeyboardHandler(null)),T.fontSize!==$.fontSize&&this.editor.setFontSize(typeof T.fontSize=="number"?"".concat(T.fontSize,"px"):T.fontSize),T.wrapEnabled!==$.wrapEnabled&&this.editor.getSession().setUseWrapMode(T.wrapEnabled),T.showPrintMargin!==$.showPrintMargin&&this.editor.setShowPrintMargin(T.showPrintMargin),T.showGutter!==$.showGutter&&this.editor.renderer.setShowGutter(T.showGutter),gt(T.setOptions,$.setOptions)||this.handleOptions(T),(t||!gt(T.annotations,$.annotations))&&this.editor.getSession().setAnnotations(T.annotations||[]),!gt(T.markers,$.markers)&&Array.isArray(T.markers)&&this.handleMarkers(T.markers),gt(T.scrollMargin,$.scrollMargin)||this.handleScrollMargins(T.scrollMargin),(w.height!==this.props.height||w.width!==this.props.width)&&this.editor.resize(),this.props.focus&&!w.focus&&this.editor.focus()},R.prototype.handleScrollMargins=function(w){w===void 0&&(w=[0,0,0,0]),this.editor.renderer.setScrollMargin(w[0],w[1],w[2],w[3])},R.prototype.componentWillUnmount=function(){this.editor&&(this.editor.destroy(),this.editor=null)},R.prototype.onChange=function(w){if(this.props.onChange&&!this.silent){var $=this.editor.getValue();this.props.onChange($,w)}},R.prototype.onSelectionChange=function(w){if(this.props.onSelectionChange){var $=this.editor.getSelection();this.props.onSelectionChange($,w)}},R.prototype.onCursorChange=function(w){if(this.props.onCursorChange){var $=this.editor.getSelection();this.props.onCursorChange($,w)}},R.prototype.onInput=function(w){this.props.onInput&&this.props.onInput(w),this.props.placeholder&&this.updatePlaceholder()},R.prototype.onFocus=function(w){this.props.onFocus&&this.props.onFocus(w,this.editor)},R.prototype.onBlur=function(w){this.props.onBlur&&this.props.onBlur(w,this.editor)},R.prototype.onCopy=function(w){var $=w.text;this.props.onCopy&&this.props.onCopy($)},R.prototype.onPaste=function(w){var $=w.text;this.props.onPaste&&this.props.onPaste($)},R.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},R.prototype.handleOptions=function(w){for(var $=Object.keys(w.setOptions),T=0;T<$.length;T++)this.editor.setOption($[T],w.setOptions[$[T]])},R.prototype.handleMarkers=function(w){var $=this,T=this.editor.getSession().getMarkers(!0);for(var f in T)T.hasOwnProperty(f)&&this.editor.getSession().removeMarker(T[f].id);T=this.editor.getSession().getMarkers(!1);for(var f in T)T.hasOwnProperty(f)&&T[f].clazz!=="ace_active-line"&&T[f].clazz!=="ace_selected-word"&&this.editor.getSession().removeMarker(T[f].id);w.forEach(function(m){var h=m.startRow,o=m.startCol,a=m.endRow,t=m.endCol,e=m.className,n=m.type,i=m.inFront,s=i===void 0?!1:i,l=new Oi.Range(h,o,a,t);$.editor.getSession().addMarker(l,e,n,s)})},R.prototype.updatePlaceholder=function(){var w=this.editor,$=this.props.placeholder,T=!w.session.getValue().length,f=w.renderer.placeholderNode;!T&&f?(w.renderer.scroller.removeChild(w.renderer.placeholderNode),w.renderer.placeholderNode=null):T&&!f?(f=w.renderer.placeholderNode=document.createElement("div"),f.textContent=$||"",f.className="ace_comment ace_placeholder",f.style.padding="0 9px",f.style.position="absolute",f.style.zIndex="3",w.renderer.scroller.appendChild(f)):T&&f&&(f.textContent=$)},R.prototype.updateRef=function(w){this.refEditor=w},R.prototype.render=function(){var w=this.props,$=w.name,T=w.width,f=w.height,m=w.style,h=Tt({width:T,height:f},m);return nn.createElement("div",{ref:this.updateRef,id:$,style:h})},R.propTypes={mode:ee.oneOfType([ee.string,ee.object]),focus:ee.bool,theme:ee.string,name:ee.string,className:ee.string,height:ee.string,width:ee.string,fontSize:ee.oneOfType([ee.number,ee.string]),showGutter:ee.bool,onChange:ee.func,onCopy:ee.func,onPaste:ee.func,onFocus:ee.func,onInput:ee.func,onBlur:ee.func,onScroll:ee.func,value:ee.string,defaultValue:ee.string,onLoad:ee.func,onSelectionChange:ee.func,onCursorChange:ee.func,onBeforeLoad:ee.func,onValidate:ee.func,minLines:ee.number,maxLines:ee.number,readOnly:ee.bool,highlightActiveLine:ee.bool,tabSize:ee.number,showPrintMargin:ee.bool,cursorStart:ee.number,debounceChangePeriod:ee.number,editorProps:ee.object,setOptions:ee.object,style:ee.object,scrollMargin:ee.array,annotations:ee.array,markers:ee.array,keyboardHandler:ee.string,wrapEnabled:ee.bool,enableSnippets:ee.bool,enableBasicAutocompletion:ee.oneOfType([ee.bool,ee.array]),enableLiveAutocompletion:ee.oneOfType([ee.bool,ee.array]),navigateToFileEnd:ee.bool,commands:ee.array,placeholder:ee.string},R.defaultProps={name:"ace-editor",focus:!1,mode:"",theme:"",height:"500px",width:"500px",fontSize:12,enableSnippets:!1,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,placeholder:null,navigateToFileEnd:!0},R}(nn.Component);Ft.default=Fi;var It={},vt={},fn={exports:{}};(function(O,R){ace.define("ace/split",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/editor","ace/virtual_renderer","ace/edit_session"],function(w,$,T){var f=w("./lib/oop");w("./lib/lang");var m=w("./lib/event_emitter").EventEmitter,h=w("./editor").Editor,o=w("./virtual_renderer").VirtualRenderer,a=w("./edit_session").EditSession,t=function(e,n,i){this.BELOW=1,this.BESIDE=0,this.$container=e,this.$theme=n,this.$splits=0,this.$editorCSS="",this.$editors=[],this.$orientation=this.BESIDE,this.setSplits(i||1),this.$cEditor=this.$editors[0],this.on("focus",(function(s){this.$cEditor=s}).bind(this))};(function(){f.implement(this,m),this.$createEditor=function(){var e=document.createElement("div");e.className=this.$editorCSS,e.style.cssText="position: absolute; top:0px; bottom:0px",this.$container.appendChild(e);var n=new h(new o(e,this.$theme));return n.on("focus",(function(){this._emit("focus",n)}).bind(this)),this.$editors.push(n),n.setFontSize(this.$fontSize),n},this.setSplits=function(e){var n;if(e<1)throw"The number of splits have to be > 0!";if(e!=this.$splits){if(e>this.$splits){for(;this.$splits<this.$editors.length&&this.$splits<e;)n=this.$editors[this.$splits],this.$container.appendChild(n.container),n.setFontSize(this.$fontSize),this.$splits++;for(;this.$splits<e;)this.$createEditor(),this.$splits++}else for(;this.$splits>e;)n=this.$editors[this.$splits-1],this.$container.removeChild(n.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(e){return this.$editors[e]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(e){this.$editors.forEach(function(n){n.setTheme(e)})},this.setKeyboardHandler=function(e){this.$editors.forEach(function(n){n.setKeyboardHandler(e)})},this.forEach=function(e,n){this.$editors.forEach(e,n)},this.$fontSize="",this.setFontSize=function(e){this.$fontSize=e,this.forEach(function(n){n.setFontSize(e)})},this.$cloneSession=function(e){var n=new a(e.getDocument(),e.getMode()),i=e.getUndoManager();return n.setUndoManager(i),n.setTabSize(e.getTabSize()),n.setUseSoftTabs(e.getUseSoftTabs()),n.setOverwrite(e.getOverwrite()),n.setBreakpoints(e.getBreakpoints()),n.setUseWrapMode(e.getUseWrapMode()),n.setUseWorker(e.getUseWorker()),n.setWrapLimitRange(e.$wrapLimitRange.min,e.$wrapLimitRange.max),n.$foldData=e.$cloneFoldData(),n},this.setSession=function(e,n){var i;n==null?i=this.$cEditor:i=this.$editors[n];var s=this.$editors.some(function(l){return l.session===e});return s&&(e=this.$cloneSession(e)),i.setSession(e),e},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(e){this.$orientation!=e&&(this.$orientation=e,this.resize())},this.resize=function(){var e=this.$container.clientWidth,n=this.$container.clientHeight,i;if(this.$orientation==this.BESIDE)for(var s=e/this.$splits,l=0;l<this.$splits;l++)i=this.$editors[l],i.container.style.width=s+"px",i.container.style.top="0px",i.container.style.left=l*s+"px",i.container.style.height=n+"px",i.resize();else for(var c=n/this.$splits,l=0;l<this.$splits;l++)i=this.$editors[l],i.container.style.width=e+"px",i.container.style.top=l*c+"px",i.container.style.left="0px",i.container.style.height=c+"px",i.resize()}}).call(t.prototype),$.Split=t}),ace.define("ace/ext/split",["require","exports","module","ace/split"],function(w,$,T){T.exports=w("../split")}),function(){ace.require(["ace/ext/split"],function(w){O&&(O.exports=w)})}()})(fn);var Ii=fn.exports,Di="Expected a function",gn="__lodash_hash_undefined__",pn=1/0,Bi="[object Function]",Wi="[object GeneratorFunction]",Pi="[object Symbol]",Hi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ni=/^\w*$/,zi=/^\./,Ui=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Vi=/[\\^$.*+?()[\]{}|]/g,Gi=/\\(\\)?/g,Ki=/^\[object .+?Constructor\]$/,ji=typeof be=="object"&&be&&be.Object===Object&&be,Yi=typeof self=="object"&&self&&self.Object===Object&&self,Dt=ji||Yi||Function("return this")();function Xi(O,R){return O==null?void 0:O[R]}function Qi(O){var R=!1;if(O!=null&&typeof O.toString!="function")try{R=!!(O+"")}catch{}return R}var Ji=Array.prototype,Zi=Function.prototype,mn=Object.prototype,kt=Dt["__core-js_shared__"],sn=function(){var O=/[^.]+$/.exec(kt&&kt.keys&&kt.keys.IE_PROTO||"");return O?"Symbol(src)_1."+O:""}(),vn=Zi.toString,Bt=mn.hasOwnProperty,wn=mn.toString,qi=RegExp("^"+vn.call(Bt).replace(Vi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),on=Dt.Symbol,er=Ji.splice,tr=bn(Dt,"Map"),st=bn(Object,"create"),an=on?on.prototype:void 0,ln=an?an.toString:void 0;function je(O){var R=-1,w=O?O.length:0;for(this.clear();++R<w;){var $=O[R];this.set($[0],$[1])}}function nr(){this.__data__=st?st(null):{}}function ir(O){return this.has(O)&&delete this.__data__[O]}function rr(O){var R=this.__data__;if(st){var w=R[O];return w===gn?void 0:w}return Bt.call(R,O)?R[O]:void 0}function sr(O){var R=this.__data__;return st?R[O]!==void 0:Bt.call(R,O)}function or(O,R){var w=this.__data__;return w[O]=st&&R===void 0?gn:R,this}je.prototype.clear=nr;je.prototype.delete=ir;je.prototype.get=rr;je.prototype.has=sr;je.prototype.set=or;function Ze(O){var R=-1,w=O?O.length:0;for(this.clear();++R<w;){var $=O[R];this.set($[0],$[1])}}function ar(){this.__data__=[]}function lr(O){var R=this.__data__,w=wt(R,O);if(w<0)return!1;var $=R.length-1;return w==$?R.pop():er.call(R,w,1),!0}function hr(O){var R=this.__data__,w=wt(R,O);return w<0?void 0:R[w][1]}function cr(O){return wt(this.__data__,O)>-1}function ur(O,R){var w=this.__data__,$=wt(w,O);return $<0?w.push([O,R]):w[$][1]=R,this}Ze.prototype.clear=ar;Ze.prototype.delete=lr;Ze.prototype.get=hr;Ze.prototype.has=cr;Ze.prototype.set=ur;function Ye(O){var R=-1,w=O?O.length:0;for(this.clear();++R<w;){var $=O[R];this.set($[0],$[1])}}function dr(){this.__data__={hash:new je,map:new(tr||Ze),string:new je}}function fr(O){return bt(this,O).delete(O)}function gr(O){return bt(this,O).get(O)}function pr(O){return bt(this,O).has(O)}function mr(O,R){return bt(this,O).set(O,R),this}Ye.prototype.clear=dr;Ye.prototype.delete=fr;Ye.prototype.get=gr;Ye.prototype.has=pr;Ye.prototype.set=mr;function wt(O,R){for(var w=O.length;w--;)if(kr(O[w][0],R))return w;return-1}function vr(O,R){R=$r(R,O)?[R]:yr(R);for(var w=0,$=R.length;O!=null&&w<$;)O=O[_r(R[w++])];return w&&w==$?O:void 0}function wr(O){if(!$n(O)||Cr(O))return!1;var R=Lr(O)||Qi(O)?qi:Ki;return R.test(xr(O))}function br(O){if(typeof O=="string")return O;if(Pt(O))return ln?ln.call(O):"";var R=O+"";return R=="0"&&1/O==-pn?"-0":R}function yr(O){return yn(O)?O:Ar(O)}function bt(O,R){var w=O.__data__;return Sr(R)?w[typeof R=="string"?"string":"hash"]:w.map}function bn(O,R){var w=Xi(O,R);return wr(w)?w:void 0}function $r(O,R){if(yn(O))return!1;var w=typeof O;return w=="number"||w=="symbol"||w=="boolean"||O==null||Pt(O)?!0:Ni.test(O)||!Hi.test(O)||R!=null&&O in Object(R)}function Sr(O){var R=typeof O;return R=="string"||R=="number"||R=="symbol"||R=="boolean"?O!=="__proto__":O===null}function Cr(O){return!!sn&&sn in O}var Ar=Wt(function(O){O=Tr(O);var R=[];return zi.test(O)&&R.push(""),O.replace(Ui,function(w,$,T,f){R.push(T?f.replace(Gi,"$1"):$||w)}),R});function _r(O){if(typeof O=="string"||Pt(O))return O;var R=O+"";return R=="0"&&1/O==-pn?"-0":R}function xr(O){if(O!=null){try{return vn.call(O)}catch{}try{return O+""}catch{}}return""}function Wt(O,R){if(typeof O!="function"||R&&typeof R!="function")throw new TypeError(Di);var w=function(){var $=arguments,T=R?R.apply(this,$):$[0],f=w.cache;if(f.has(T))return f.get(T);var m=O.apply(this,$);return w.cache=f.set(T,m),m};return w.cache=new(Wt.Cache||Ye),w}Wt.Cache=Ye;function kr(O,R){return O===R||O!==O&&R!==R}var yn=Array.isArray;function Lr(O){var R=$n(O)?wn.call(O):"";return R==Bi||R==Wi}function $n(O){var R=typeof O;return!!O&&(R=="object"||R=="function")}function Er(O){return!!O&&typeof O=="object"}function Pt(O){return typeof O=="symbol"||Er(O)&&wn.call(O)==Pi}function Tr(O){return O==null?"":br(O)}function Rr(O,R,w){var $=O==null?void 0:vr(O,R);return $===void 0?w:$}var Mr=Rr,Or=be&&be.__extends||function(){var O=function(R,w){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,T){$.__proto__=T}||function($,T){for(var f in T)Object.prototype.hasOwnProperty.call(T,f)&&($[f]=T[f])},O(R,w)};return function(R,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");O(R,w);function $(){this.constructor=R}R.prototype=w===null?Object.create(w):($.prototype=w.prototype,new $)}}(),Rt=be&&be.__assign||function(){return Rt=Object.assign||function(O){for(var R,w=1,$=arguments.length;w<$;w++){R=arguments[w];for(var T in R)Object.prototype.hasOwnProperty.call(R,T)&&(O[T]=R[T])}return O},Rt.apply(this,arguments)};Object.defineProperty(vt,"__esModule",{value:!0});var Ke=Re,Lt=(0,Ke.getAceInstance)(),Fr=pt,Ir=Ii,te=Mt,hn=Me,Et=dn,Ie=Mr,Dr=function(O){Or(R,O);function R(w){var $=O.call(this,w)||this;return Ke.editorEvents.forEach(function(T){$[T]=$[T].bind($)}),$.debounce=Ke.debounce,$}return R.prototype.isInShadow=function(w){for(var $=w&&w.parentNode;$;){if($.toString()==="[object ShadowRoot]")return!0;$=$.parentNode}return!1},R.prototype.componentDidMount=function(){var w=this,$=this.props,T=$.className,f=$.onBeforeLoad,m=$.mode,h=$.focus,o=$.theme,a=$.fontSize,t=$.value,e=$.defaultValue,n=$.cursorStart,i=$.showGutter,s=$.wrapEnabled,l=$.showPrintMargin,c=$.scrollMargin,b=c===void 0?[0,0,0,0]:c,y=$.keyboardHandler,x=$.onLoad,S=$.commands,u=$.annotations,g=$.markers,_=$.splits;this.editor=Lt.edit(this.refEditor),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.setTheme("ace/theme/".concat(o)),f&&f(Lt);var p=Object.keys(this.props.editorProps),C=new Ir.Split(this.editor.container,"ace/theme/".concat(o),_);this.editor.env.split=C,this.splitEditor=C.getEditor(0),this.split=C,this.editor.setShowPrintMargin(!1),this.editor.renderer.setShowGutter(!1);var r=this.splitEditor.$options;this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),C.forEach(function(v,A){for(var k=0;k<p.length;k++)v[p[k]]=w.props.editorProps[p[k]];var L=Ie(e,A),E=Ie(t,A,"");v.session.setUndoManager(new Lt.UndoManager),v.setTheme("ace/theme/".concat(o)),v.renderer.setScrollMargin(b[0],b[1],b[2],b[3]),v.getSession().setMode("ace/mode/".concat(m)),v.setFontSize(a),v.renderer.setShowGutter(i),v.getSession().setUseWrapMode(s),v.setShowPrintMargin(l),v.on("focus",w.onFocus),v.on("blur",w.onBlur),v.on("input",w.onInput),v.on("copy",w.onCopy),v.on("paste",w.onPaste),v.on("change",w.onChange),v.getSession().selection.on("changeSelection",w.onSelectionChange),v.getSession().selection.on("changeCursor",w.onCursorChange),v.session.on("changeScrollTop",w.onScroll),v.setValue(L===void 0?E:L,n);var F=Ie(u,A,[]),I=Ie(g,A,[]);v.getSession().setAnnotations(F),I&&I.length>0&&w.handleMarkers(I,v);for(var k=0;k<Ke.editorOptions.length;k++){var D=Ke.editorOptions[k];r.hasOwnProperty(D)?v.setOption(D,w.props[D]):w.props[D]&&console.warn("ReaceAce: editor option ".concat(D," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))}w.handleOptions(w.props,v),Array.isArray(S)&&S.forEach(function(W){typeof W.exec=="string"?v.commands.bindKey(W.bindKey,W.exec):v.commands.addCommand(W)}),y&&v.setKeyboardHandler("ace/keyboard/"+y)}),T&&(this.refEditor.className+=" "+T),h&&this.splitEditor.focus();var d=this.editor.env.split;d.setOrientation(this.props.orientation==="below"?d.BELOW:d.BESIDE),d.resize(!0),x&&x(d)},R.prototype.componentDidUpdate=function(w){var $=this,T=w,f=this.props,m=this.editor.env.split;if(f.splits!==T.splits&&m.setSplits(f.splits),f.orientation!==T.orientation&&m.setOrientation(f.orientation==="below"?m.BELOW:m.BESIDE),m.forEach(function(t,e){f.mode!==T.mode&&t.getSession().setMode("ace/mode/"+f.mode),f.keyboardHandler!==T.keyboardHandler&&(f.keyboardHandler?t.setKeyboardHandler("ace/keyboard/"+f.keyboardHandler):t.setKeyboardHandler(null)),f.fontSize!==T.fontSize&&t.setFontSize(f.fontSize),f.wrapEnabled!==T.wrapEnabled&&t.getSession().setUseWrapMode(f.wrapEnabled),f.showPrintMargin!==T.showPrintMargin&&t.setShowPrintMargin(f.showPrintMargin),f.showGutter!==T.showGutter&&t.renderer.setShowGutter(f.showGutter);for(var n=0;n<Ke.editorOptions.length;n++){var i=Ke.editorOptions[n];f[i]!==T[i]&&t.setOption(i,f[i])}Et(f.setOptions,T.setOptions)||$.handleOptions(f,t);var s=Ie(f.value,e,"");if(t.getValue()!==s){$.silent=!0;var l=t.session.selection.toJSON();t.setValue(s,f.cursorStart),t.session.selection.fromJSON(l),$.silent=!1}var c=Ie(f.annotations,e,[]),b=Ie(T.annotations,e,[]);Et(c,b)||t.getSession().setAnnotations(c);var y=Ie(f.markers,e,[]),x=Ie(T.markers,e,[]);!Et(y,x)&&Array.isArray(y)&&$.handleMarkers(y,t)}),f.className!==T.className){var h=this.refEditor.className,o=h.trim().split(" "),a=T.className.trim().split(" ");a.forEach(function(t){var e=o.indexOf(t);o.splice(e,1)}),this.refEditor.className=" "+f.className+" "+o.join(" ")}f.theme!==T.theme&&m.setTheme("ace/theme/"+f.theme),f.focus&&!T.focus&&this.splitEditor.focus(),(f.height!==this.props.height||f.width!==this.props.width)&&this.editor.resize()},R.prototype.componentWillUnmount=function(){this.editor.destroy(),this.editor=null},R.prototype.onChange=function(w){if(this.props.onChange&&!this.silent){var $=[];this.editor.env.split.forEach(function(T){$.push(T.getValue())}),this.props.onChange($,w)}},R.prototype.onSelectionChange=function(w){if(this.props.onSelectionChange){var $=[];this.editor.env.split.forEach(function(T){$.push(T.getSelection())}),this.props.onSelectionChange($,w)}},R.prototype.onCursorChange=function(w){if(this.props.onCursorChange){var $=[];this.editor.env.split.forEach(function(T){$.push(T.getSelection())}),this.props.onCursorChange($,w)}},R.prototype.onFocus=function(w){this.props.onFocus&&this.props.onFocus(w)},R.prototype.onInput=function(w){this.props.onInput&&this.props.onInput(w)},R.prototype.onBlur=function(w){this.props.onBlur&&this.props.onBlur(w)},R.prototype.onCopy=function(w){this.props.onCopy&&this.props.onCopy(w)},R.prototype.onPaste=function(w){this.props.onPaste&&this.props.onPaste(w)},R.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},R.prototype.handleOptions=function(w,$){for(var T=Object.keys(w.setOptions),f=0;f<T.length;f++)$.setOption(T[f],w.setOptions[T[f]])},R.prototype.handleMarkers=function(w,$){var T=$.getSession().getMarkers(!0);for(var f in T)T.hasOwnProperty(f)&&$.getSession().removeMarker(T[f].id);T=$.getSession().getMarkers(!1);for(var f in T)T.hasOwnProperty(f)&&$.getSession().removeMarker(T[f].id);w.forEach(function(m){var h=m.startRow,o=m.startCol,a=m.endRow,t=m.endCol,e=m.className,n=m.type,i=m.inFront,s=i===void 0?!1:i,l=new Fr.Range(h,o,a,t);$.getSession().addMarker(l,e,n,s)})},R.prototype.updateRef=function(w){this.refEditor=w},R.prototype.render=function(){var w=this.props,$=w.name,T=w.width,f=w.height,m=w.style,h=Rt({width:T,height:f},m);return hn.createElement("div",{ref:this.updateRef,id:$,style:h})},R.propTypes={className:te.string,debounceChangePeriod:te.number,defaultValue:te.arrayOf(te.string),focus:te.bool,fontSize:te.oneOfType([te.number,te.string]),height:te.string,mode:te.string,name:te.string,onBlur:te.func,onChange:te.func,onCopy:te.func,onFocus:te.func,onInput:te.func,onLoad:te.func,onPaste:te.func,onScroll:te.func,orientation:te.string,showGutter:te.bool,splits:te.number,theme:te.string,value:te.arrayOf(te.string),width:te.string,onSelectionChange:te.func,onCursorChange:te.func,onBeforeLoad:te.func,minLines:te.number,maxLines:te.number,readOnly:te.bool,highlightActiveLine:te.bool,tabSize:te.number,showPrintMargin:te.bool,cursorStart:te.number,editorProps:te.object,setOptions:te.object,style:te.object,scrollMargin:te.array,annotations:te.array,markers:te.array,keyboardHandler:te.string,wrapEnabled:te.bool,enableBasicAutocompletion:te.oneOfType([te.bool,te.array]),enableLiveAutocompletion:te.oneOfType([te.bool,te.array]),commands:te.array},R.defaultProps={name:"ace-editor",focus:!1,orientation:"beside",splits:2,mode:"",theme:"",height:"500px",width:"500px",value:[],fontSize:12,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1},R}(hn.Component);vt.default=Dr;var Sn={exports:{}};(function(O){var R=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},w=-1,$=1,T=0;R.Diff=function(f,m){return[f,m]},R.prototype.diff_main=function(f,m,h,o){typeof o>"u"&&(this.Diff_Timeout<=0?o=Number.MAX_VALUE:o=new Date().getTime()+this.Diff_Timeout*1e3);var a=o;if(f==null||m==null)throw new Error("Null input. (diff_main)");if(f==m)return f?[new R.Diff(T,f)]:[];typeof h>"u"&&(h=!0);var t=h,e=this.diff_commonPrefix(f,m),n=f.substring(0,e);f=f.substring(e),m=m.substring(e),e=this.diff_commonSuffix(f,m);var i=f.substring(f.length-e);f=f.substring(0,f.length-e),m=m.substring(0,m.length-e);var s=this.diff_compute_(f,m,t,a);return n&&s.unshift(new R.Diff(T,n)),i&&s.push(new R.Diff(T,i)),this.diff_cleanupMerge(s),s},R.prototype.diff_compute_=function(f,m,h,o){var a;if(!f)return[new R.Diff($,m)];if(!m)return[new R.Diff(w,f)];var t=f.length>m.length?f:m,e=f.length>m.length?m:f,n=t.indexOf(e);if(n!=-1)return a=[new R.Diff($,t.substring(0,n)),new R.Diff(T,e),new R.Diff($,t.substring(n+e.length))],f.length>m.length&&(a[0][0]=a[2][0]=w),a;if(e.length==1)return[new R.Diff(w,f),new R.Diff($,m)];var i=this.diff_halfMatch_(f,m);if(i){var s=i[0],l=i[1],c=i[2],b=i[3],y=i[4],x=this.diff_main(s,c,h,o),S=this.diff_main(l,b,h,o);return x.concat([new R.Diff(T,y)],S)}return h&&f.length>100&&m.length>100?this.diff_lineMode_(f,m,o):this.diff_bisect_(f,m,o)},R.prototype.diff_lineMode_=function(f,m,h){var o=this.diff_linesToChars_(f,m);f=o.chars1,m=o.chars2;var a=o.lineArray,t=this.diff_main(f,m,!1,h);this.diff_charsToLines_(t,a),this.diff_cleanupSemantic(t),t.push(new R.Diff(T,""));for(var e=0,n=0,i=0,s="",l="";e<t.length;){switch(t[e][0]){case $:i++,l+=t[e][1];break;case w:n++,s+=t[e][1];break;case T:if(n>=1&&i>=1){t.splice(e-n-i,n+i),e=e-n-i;for(var c=this.diff_main(s,l,!1,h),b=c.length-1;b>=0;b--)t.splice(e,0,c[b]);e=e+c.length}i=0,n=0,s="",l="";break}e++}return t.pop(),t},R.prototype.diff_bisect_=function(f,m,h){for(var o=f.length,a=m.length,t=Math.ceil((o+a)/2),e=t,n=2*t,i=new Array(n),s=new Array(n),l=0;l<n;l++)i[l]=-1,s[l]=-1;i[e+1]=0,s[e+1]=0;for(var c=o-a,b=c%2!=0,y=0,x=0,S=0,u=0,g=0;g<t&&!(new Date().getTime()>h);g++){for(var _=-g+y;_<=g-x;_+=2){var p=e+_,C;_==-g||_!=g&&i[p-1]<i[p+1]?C=i[p+1]:C=i[p-1]+1;for(var r=C-_;C<o&&r<a&&f.charAt(C)==m.charAt(r);)C++,r++;if(i[p]=C,C>o)x+=2;else if(r>a)y+=2;else if(b){var d=e+c-_;if(d>=0&&d<n&&s[d]!=-1){var v=o-s[d];if(C>=v)return this.diff_bisectSplit_(f,m,C,r,h)}}}for(var A=-g+S;A<=g-u;A+=2){var d=e+A,v;A==-g||A!=g&&s[d-1]<s[d+1]?v=s[d+1]:v=s[d-1]+1;for(var k=v-A;v<o&&k<a&&f.charAt(o-v-1)==m.charAt(a-k-1);)v++,k++;if(s[d]=v,v>o)u+=2;else if(k>a)S+=2;else if(!b){var p=e+c-A;if(p>=0&&p<n&&i[p]!=-1){var C=i[p],r=e+C-p;if(v=o-v,C>=v)return this.diff_bisectSplit_(f,m,C,r,h)}}}}return[new R.Diff(w,f),new R.Diff($,m)]},R.prototype.diff_bisectSplit_=function(f,m,h,o,a){var t=f.substring(0,h),e=m.substring(0,o),n=f.substring(h),i=m.substring(o),s=this.diff_main(t,e,!1,a),l=this.diff_main(n,i,!1,a);return s.concat(l)},R.prototype.diff_linesToChars_=function(f,m){var h=[],o={};h[0]="";function a(i){for(var s="",l=0,c=-1,b=h.length;c<i.length-1;){c=i.indexOf(`
892
892
  `,l),c==-1&&(c=i.length-1);var y=i.substring(l,c+1);(o.hasOwnProperty?o.hasOwnProperty(y):o[y]!==void 0)?s+=String.fromCharCode(o[y]):(b==t&&(y=i.substring(l),c=i.length),s+=String.fromCharCode(b),o[y]=b,h[b++]=y),l=c+1}return s}var t=4e4,e=a(f);t=65535;var n=a(m);return{chars1:e,chars2:n,lineArray:h}},R.prototype.diff_charsToLines_=function(f,m){for(var h=0;h<f.length;h++){for(var o=f[h][1],a=[],t=0;t<o.length;t++)a[t]=m[o.charCodeAt(t)];f[h][1]=a.join("")}},R.prototype.diff_commonPrefix=function(f,m){if(!f||!m||f.charAt(0)!=m.charAt(0))return 0;for(var h=0,o=Math.min(f.length,m.length),a=o,t=0;h<a;)f.substring(t,a)==m.substring(t,a)?(h=a,t=h):o=a,a=Math.floor((o-h)/2+h);return a},R.prototype.diff_commonSuffix=function(f,m){if(!f||!m||f.charAt(f.length-1)!=m.charAt(m.length-1))return 0;for(var h=0,o=Math.min(f.length,m.length),a=o,t=0;h<a;)f.substring(f.length-a,f.length-t)==m.substring(m.length-a,m.length-t)?(h=a,t=h):o=a,a=Math.floor((o-h)/2+h);return a},R.prototype.diff_commonOverlap_=function(f,m){var h=f.length,o=m.length;if(h==0||o==0)return 0;h>o?f=f.substring(h-o):h<o&&(m=m.substring(0,h));var a=Math.min(h,o);if(f==m)return a;for(var t=0,e=1;;){var n=f.substring(a-e),i=m.indexOf(n);if(i==-1)return t;e+=i,(i==0||f.substring(a-e)==m.substring(0,e))&&(t=e,e++)}},R.prototype.diff_halfMatch_=function(f,m){if(this.Diff_Timeout<=0)return null;var h=f.length>m.length?f:m,o=f.length>m.length?m:f;if(h.length<4||o.length*2<h.length)return null;var a=this;function t(x,S,u){for(var g=x.substring(u,u+Math.floor(x.length/4)),_=-1,p="",C,r,d,v;(_=S.indexOf(g,_+1))!=-1;){var A=a.diff_commonPrefix(x.substring(u),S.substring(_)),k=a.diff_commonSuffix(x.substring(0,u),S.substring(0,_));p.length<k+A&&(p=S.substring(_-k,_)+S.substring(_,_+A),C=x.substring(0,u-k),r=x.substring(u+A),d=S.substring(0,_-k),v=S.substring(_+A))}return p.length*2>=x.length?[C,r,d,v,p]:null}var e=t(h,o,Math.ceil(h.length/4)),n=t(h,o,Math.ceil(h.length/2)),i;if(!e&&!n)return null;n?e?i=e[4].length>n[4].length?e:n:i=n:i=e;var s,l,c,b;f.length>m.length?(s=i[0],l=i[1],c=i[2],b=i[3]):(c=i[0],b=i[1],s=i[2],l=i[3]);var y=i[4];return[s,l,c,b,y]},R.prototype.diff_cleanupSemantic=function(f){for(var m=!1,h=[],o=0,a=null,t=0,e=0,n=0,i=0,s=0;t<f.length;)f[t][0]==T?(h[o++]=t,e=i,n=s,i=0,s=0,a=f[t][1]):(f[t][0]==$?i+=f[t][1].length:s+=f[t][1].length,a&&a.length<=Math.max(e,n)&&a.length<=Math.max(i,s)&&(f.splice(h[o-1],0,new R.Diff(w,a)),f[h[o-1]+1][0]=$,o--,o--,t=o>0?h[o-1]:-1,e=0,n=0,i=0,s=0,a=null,m=!0)),t++;for(m&&this.diff_cleanupMerge(f),this.diff_cleanupSemanticLossless(f),t=1;t<f.length;){if(f[t-1][0]==w&&f[t][0]==$){var l=f[t-1][1],c=f[t][1],b=this.diff_commonOverlap_(l,c),y=this.diff_commonOverlap_(c,l);b>=y?(b>=l.length/2||b>=c.length/2)&&(f.splice(t,0,new R.Diff(T,c.substring(0,b))),f[t-1][1]=l.substring(0,l.length-b),f[t+1][1]=c.substring(b),t++):(y>=l.length/2||y>=c.length/2)&&(f.splice(t,0,new R.Diff(T,l.substring(0,y))),f[t-1][0]=$,f[t-1][1]=c.substring(0,c.length-y),f[t+1][0]=w,f[t+1][1]=l.substring(y),t++),t++}t++}},R.prototype.diff_cleanupSemanticLossless=function(f){function m(y,x){if(!y||!x)return 6;var S=y.charAt(y.length-1),u=x.charAt(0),g=S.match(R.nonAlphaNumericRegex_),_=u.match(R.nonAlphaNumericRegex_),p=g&&S.match(R.whitespaceRegex_),C=_&&u.match(R.whitespaceRegex_),r=p&&S.match(R.linebreakRegex_),d=C&&u.match(R.linebreakRegex_),v=r&&y.match(R.blanklineEndRegex_),A=d&&x.match(R.blanklineStartRegex_);return v||A?5:r||d?4:g&&!p&&C?3:p||C?2:g||_?1:0}for(var h=1;h<f.length-1;){if(f[h-1][0]==T&&f[h+1][0]==T){var o=f[h-1][1],a=f[h][1],t=f[h+1][1],e=this.diff_commonSuffix(o,a);if(e){var n=a.substring(a.length-e);o=o.substring(0,o.length-e),a=n+a.substring(0,a.length-e),t=n+t}for(var i=o,s=a,l=t,c=m(o,a)+m(a,t);a.charAt(0)===t.charAt(0);){o+=a.charAt(0),a=a.substring(1)+t.charAt(0),t=t.substring(1);var b=m(o,a)+m(a,t);b>=c&&(c=b,i=o,s=a,l=t)}f[h-1][1]!=i&&(i?f[h-1][1]=i:(f.splice(h-1,1),h--),f[h][1]=s,l?f[h+1][1]=l:(f.splice(h+1,1),h--))}h++}},R.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,R.whitespaceRegex_=/\s/,R.linebreakRegex_=/[\r\n]/,R.blanklineEndRegex_=/\n\r?\n$/,R.blanklineStartRegex_=/^\r?\n\r?\n/,R.prototype.diff_cleanupEfficiency=function(f){for(var m=!1,h=[],o=0,a=null,t=0,e=!1,n=!1,i=!1,s=!1;t<f.length;)f[t][0]==T?(f[t][1].length<this.Diff_EditCost&&(i||s)?(h[o++]=t,e=i,n=s,a=f[t][1]):(o=0,a=null),i=s=!1):(f[t][0]==w?s=!0:i=!0,a&&(e&&n&&i&&s||a.length<this.Diff_EditCost/2&&e+n+i+s==3)&&(f.splice(h[o-1],0,new R.Diff(w,a)),f[h[o-1]+1][0]=$,o--,a=null,e&&n?(i=s=!0,o=0):(o--,t=o>0?h[o-1]:-1,i=s=!1),m=!0)),t++;m&&this.diff_cleanupMerge(f)},R.prototype.diff_cleanupMerge=function(f){f.push(new R.Diff(T,""));for(var m=0,h=0,o=0,a="",t="",e;m<f.length;)switch(f[m][0]){case $:o++,t+=f[m][1],m++;break;case w:h++,a+=f[m][1],m++;break;case T:h+o>1?(h!==0&&o!==0&&(e=this.diff_commonPrefix(t,a),e!==0&&(m-h-o>0&&f[m-h-o-1][0]==T?f[m-h-o-1][1]+=t.substring(0,e):(f.splice(0,0,new R.Diff(T,t.substring(0,e))),m++),t=t.substring(e),a=a.substring(e)),e=this.diff_commonSuffix(t,a),e!==0&&(f[m][1]=t.substring(t.length-e)+f[m][1],t=t.substring(0,t.length-e),a=a.substring(0,a.length-e))),m-=h+o,f.splice(m,h+o),a.length&&(f.splice(m,0,new R.Diff(w,a)),m++),t.length&&(f.splice(m,0,new R.Diff($,t)),m++),m++):m!==0&&f[m-1][0]==T?(f[m-1][1]+=f[m][1],f.splice(m,1)):m++,o=0,h=0,a="",t="";break}f[f.length-1][1]===""&&f.pop();var n=!1;for(m=1;m<f.length-1;)f[m-1][0]==T&&f[m+1][0]==T&&(f[m][1].substring(f[m][1].length-f[m-1][1].length)==f[m-1][1]?(f[m][1]=f[m-1][1]+f[m][1].substring(0,f[m][1].length-f[m-1][1].length),f[m+1][1]=f[m-1][1]+f[m+1][1],f.splice(m-1,1),n=!0):f[m][1].substring(0,f[m+1][1].length)==f[m+1][1]&&(f[m-1][1]+=f[m+1][1],f[m][1]=f[m][1].substring(f[m+1][1].length)+f[m+1][1],f.splice(m+1,1),n=!0)),m++;n&&this.diff_cleanupMerge(f)},R.prototype.diff_xIndex=function(f,m){var h=0,o=0,a=0,t=0,e;for(e=0;e<f.length&&(f[e][0]!==$&&(h+=f[e][1].length),f[e][0]!==w&&(o+=f[e][1].length),!(h>m));e++)a=h,t=o;return f.length!=e&&f[e][0]===w?t:t+(m-a)},R.prototype.diff_prettyHtml=function(f){for(var m=[],h=/&/g,o=/</g,a=/>/g,t=/\n/g,e=0;e<f.length;e++){var n=f[e][0],i=f[e][1],s=i.replace(h,"&amp;").replace(o,"&lt;").replace(a,"&gt;").replace(t,"&para;<br>");switch(n){case $:m[e]='<ins style="background:#e6ffe6;">'+s+"</ins>";break;case w:m[e]='<del style="background:#ffe6e6;">'+s+"</del>";break;case T:m[e]="<span>"+s+"</span>";break}}return m.join("")},R.prototype.diff_text1=function(f){for(var m=[],h=0;h<f.length;h++)f[h][0]!==$&&(m[h]=f[h][1]);return m.join("")},R.prototype.diff_text2=function(f){for(var m=[],h=0;h<f.length;h++)f[h][0]!==w&&(m[h]=f[h][1]);return m.join("")},R.prototype.diff_levenshtein=function(f){for(var m=0,h=0,o=0,a=0;a<f.length;a++){var t=f[a][0],e=f[a][1];switch(t){case $:h+=e.length;break;case w:o+=e.length;break;case T:m+=Math.max(h,o),h=0,o=0;break}}return m+=Math.max(h,o),m},R.prototype.diff_toDelta=function(f){for(var m=[],h=0;h<f.length;h++)switch(f[h][0]){case $:m[h]="+"+encodeURI(f[h][1]);break;case w:m[h]="-"+f[h][1].length;break;case T:m[h]="="+f[h][1].length;break}return m.join(" ").replace(/%20/g," ")},R.prototype.diff_fromDelta=function(f,m){for(var h=[],o=0,a=0,t=m.split(/\t/g),e=0;e<t.length;e++){var n=t[e].substring(1);switch(t[e].charAt(0)){case"+":try{h[o++]=new R.Diff($,decodeURI(n))}catch{throw new Error("Illegal escape in diff_fromDelta: "+n)}break;case"-":case"=":var i=parseInt(n,10);if(isNaN(i)||i<0)throw new Error("Invalid number in diff_fromDelta: "+n);var s=f.substring(a,a+=i);t[e].charAt(0)=="="?h[o++]=new R.Diff(T,s):h[o++]=new R.Diff(w,s);break;default:if(t[e])throw new Error("Invalid diff operation in diff_fromDelta: "+t[e])}}if(a!=f.length)throw new Error("Delta length ("+a+") does not equal source text length ("+f.length+").");return h},R.prototype.match_main=function(f,m,h){if(f==null||m==null||h==null)throw new Error("Null input. (match_main)");return h=Math.max(0,Math.min(h,f.length)),f==m?0:f.length?f.substring(h,h+m.length)==m?h:this.match_bitap_(f,m,h):-1},R.prototype.match_bitap_=function(f,m,h){if(m.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var o=this.match_alphabet_(m),a=this;function t(C,r){var d=C/m.length,v=Math.abs(h-r);return a.Match_Distance?d+v/a.Match_Distance:v?1:d}var e=this.Match_Threshold,n=f.indexOf(m,h);n!=-1&&(e=Math.min(t(0,n),e),n=f.lastIndexOf(m,h+m.length),n!=-1&&(e=Math.min(t(0,n),e)));var i=1<<m.length-1;n=-1;for(var s,l,c=m.length+f.length,b,y=0;y<m.length;y++){for(s=0,l=c;s<l;)t(y,h+l)<=e?s=l:c=l,l=Math.floor((c-s)/2+s);c=l;var x=Math.max(1,h-l+1),S=Math.min(h+l,f.length)+m.length,u=Array(S+2);u[S+1]=(1<<y)-1;for(var g=S;g>=x;g--){var _=o[f.charAt(g-1)];if(y===0?u[g]=(u[g+1]<<1|1)&_:u[g]=(u[g+1]<<1|1)&_|((b[g+1]|b[g])<<1|1)|b[g+1],u[g]&i){var p=t(y,g-1);if(p<=e)if(e=p,n=g-1,n>h)x=Math.max(1,2*h-n);else break}}if(t(y+1,h)>e)break;b=u}return n},R.prototype.match_alphabet_=function(f){for(var m={},h=0;h<f.length;h++)m[f.charAt(h)]=0;for(var h=0;h<f.length;h++)m[f.charAt(h)]|=1<<f.length-h-1;return m},R.prototype.patch_addContext_=function(f,m){if(m.length!=0){if(f.start2===null)throw Error("patch not initialized");for(var h=m.substring(f.start2,f.start2+f.length1),o=0;m.indexOf(h)!=m.lastIndexOf(h)&&h.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)o+=this.Patch_Margin,h=m.substring(f.start2-o,f.start2+f.length1+o);o+=this.Patch_Margin;var a=m.substring(f.start2-o,f.start2);a&&f.diffs.unshift(new R.Diff(T,a));var t=m.substring(f.start2+f.length1,f.start2+f.length1+o);t&&f.diffs.push(new R.Diff(T,t)),f.start1-=a.length,f.start2-=a.length,f.length1+=a.length+t.length,f.length2+=a.length+t.length}},R.prototype.patch_make=function(f,m,h){var o,a;if(typeof f=="string"&&typeof m=="string"&&typeof h>"u")o=f,a=this.diff_main(o,m,!0),a.length>2&&(this.diff_cleanupSemantic(a),this.diff_cleanupEfficiency(a));else if(f&&typeof f=="object"&&typeof m>"u"&&typeof h>"u")a=f,o=this.diff_text1(a);else if(typeof f=="string"&&m&&typeof m=="object"&&typeof h>"u")o=f,a=m;else if(typeof f=="string"&&typeof m=="string"&&h&&typeof h=="object")o=f,a=h;else throw new Error("Unknown call format to patch_make.");if(a.length===0)return[];for(var t=[],e=new R.patch_obj,n=0,i=0,s=0,l=o,c=o,b=0;b<a.length;b++){var y=a[b][0],x=a[b][1];switch(!n&&y!==T&&(e.start1=i,e.start2=s),y){case $:e.diffs[n++]=a[b],e.length2+=x.length,c=c.substring(0,s)+x+c.substring(s);break;case w:e.length1+=x.length,e.diffs[n++]=a[b],c=c.substring(0,s)+c.substring(s+x.length);break;case T:x.length<=2*this.Patch_Margin&&n&&a.length!=b+1?(e.diffs[n++]=a[b],e.length1+=x.length,e.length2+=x.length):x.length>=2*this.Patch_Margin&&n&&(this.patch_addContext_(e,l),t.push(e),e=new R.patch_obj,n=0,l=c,i=s);break}y!==$&&(i+=x.length),y!==w&&(s+=x.length)}return n&&(this.patch_addContext_(e,l),t.push(e)),t},R.prototype.patch_deepCopy=function(f){for(var m=[],h=0;h<f.length;h++){var o=f[h],a=new R.patch_obj;a.diffs=[];for(var t=0;t<o.diffs.length;t++)a.diffs[t]=new R.Diff(o.diffs[t][0],o.diffs[t][1]);a.start1=o.start1,a.start2=o.start2,a.length1=o.length1,a.length2=o.length2,m[h]=a}return m},R.prototype.patch_apply=function(f,m){if(f.length==0)return[m,[]];f=this.patch_deepCopy(f);var h=this.patch_addPadding(f);m=h+m+h,this.patch_splitMax(f);for(var o=0,a=[],t=0;t<f.length;t++){var e=f[t].start2+o,n=this.diff_text1(f[t].diffs),i,s=-1;if(n.length>this.Match_MaxBits?(i=this.match_main(m,n.substring(0,this.Match_MaxBits),e),i!=-1&&(s=this.match_main(m,n.substring(n.length-this.Match_MaxBits),e+n.length-this.Match_MaxBits),(s==-1||i>=s)&&(i=-1))):i=this.match_main(m,n,e),i==-1)a[t]=!1,o-=f[t].length2-f[t].length1;else{a[t]=!0,o=i-e;var l;if(s==-1?l=m.substring(i,i+n.length):l=m.substring(i,s+this.Match_MaxBits),n==l)m=m.substring(0,i)+this.diff_text2(f[t].diffs)+m.substring(i+n.length);else{var c=this.diff_main(n,l,!1);if(n.length>this.Match_MaxBits&&this.diff_levenshtein(c)/n.length>this.Patch_DeleteThreshold)a[t]=!1;else{this.diff_cleanupSemanticLossless(c);for(var b=0,y,x=0;x<f[t].diffs.length;x++){var S=f[t].diffs[x];S[0]!==T&&(y=this.diff_xIndex(c,b)),S[0]===$?m=m.substring(0,i+y)+S[1]+m.substring(i+y):S[0]===w&&(m=m.substring(0,i+y)+m.substring(i+this.diff_xIndex(c,b+S[1].length))),S[0]!==w&&(b+=S[1].length)}}}}}return m=m.substring(h.length,m.length-h.length),[m,a]},R.prototype.patch_addPadding=function(f){for(var m=this.Patch_Margin,h="",o=1;o<=m;o++)h+=String.fromCharCode(o);for(var o=0;o<f.length;o++)f[o].start1+=m,f[o].start2+=m;var a=f[0],t=a.diffs;if(t.length==0||t[0][0]!=T)t.unshift(new R.Diff(T,h)),a.start1-=m,a.start2-=m,a.length1+=m,a.length2+=m;else if(m>t[0][1].length){var e=m-t[0][1].length;t[0][1]=h.substring(t[0][1].length)+t[0][1],a.start1-=e,a.start2-=e,a.length1+=e,a.length2+=e}if(a=f[f.length-1],t=a.diffs,t.length==0||t[t.length-1][0]!=T)t.push(new R.Diff(T,h)),a.length1+=m,a.length2+=m;else if(m>t[t.length-1][1].length){var e=m-t[t.length-1][1].length;t[t.length-1][1]+=h.substring(0,e),a.length1+=e,a.length2+=e}return h},R.prototype.patch_splitMax=function(f){for(var m=this.Match_MaxBits,h=0;h<f.length;h++)if(!(f[h].length1<=m)){var o=f[h];f.splice(h--,1);for(var a=o.start1,t=o.start2,e="";o.diffs.length!==0;){var n=new R.patch_obj,i=!0;for(n.start1=a-e.length,n.start2=t-e.length,e!==""&&(n.length1=n.length2=e.length,n.diffs.push(new R.Diff(T,e)));o.diffs.length!==0&&n.length1<m-this.Patch_Margin;){var s=o.diffs[0][0],l=o.diffs[0][1];s===$?(n.length2+=l.length,t+=l.length,n.diffs.push(o.diffs.shift()),i=!1):s===w&&n.diffs.length==1&&n.diffs[0][0]==T&&l.length>2*m?(n.length1+=l.length,a+=l.length,i=!1,n.diffs.push(new R.Diff(s,l)),o.diffs.shift()):(l=l.substring(0,m-n.length1-this.Patch_Margin),n.length1+=l.length,a+=l.length,s===T?(n.length2+=l.length,t+=l.length):i=!1,n.diffs.push(new R.Diff(s,l)),l==o.diffs[0][1]?o.diffs.shift():o.diffs[0][1]=o.diffs[0][1].substring(l.length))}e=this.diff_text2(n.diffs),e=e.substring(e.length-this.Patch_Margin);var c=this.diff_text1(o.diffs).substring(0,this.Patch_Margin);c!==""&&(n.length1+=c.length,n.length2+=c.length,n.diffs.length!==0&&n.diffs[n.diffs.length-1][0]===T?n.diffs[n.diffs.length-1][1]+=c:n.diffs.push(new R.Diff(T,c))),i||f.splice(++h,0,n)}}},R.prototype.patch_toText=function(f){for(var m=[],h=0;h<f.length;h++)m[h]=f[h];return m.join("")},R.prototype.patch_fromText=function(f){var m=[];if(!f)return m;for(var h=f.split(`
893
893
  `),o=0,a=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;o<h.length;){var t=h[o].match(a);if(!t)throw new Error("Invalid patch string: "+h[o]);var e=new R.patch_obj;for(m.push(e),e.start1=parseInt(t[1],10),t[2]===""?(e.start1--,e.length1=1):t[2]=="0"?e.length1=0:(e.start1--,e.length1=parseInt(t[2],10)),e.start2=parseInt(t[3],10),t[4]===""?(e.start2--,e.length2=1):t[4]=="0"?e.length2=0:(e.start2--,e.length2=parseInt(t[4],10)),o++;o<h.length;){var n=h[o].charAt(0);try{var i=decodeURI(h[o].substring(1))}catch{throw new Error("Illegal escape in patch_fromText: "+i)}if(n=="-")e.diffs.push(new R.Diff(w,i));else if(n=="+")e.diffs.push(new R.Diff($,i));else if(n==" ")e.diffs.push(new R.Diff(T,i));else{if(n=="@")break;if(n!=="")throw new Error('Invalid patch mode "'+n+'" in: '+i)}o++}}return m},R.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},R.patch_obj.prototype.toString=function(){var f,m;this.length1===0?f=this.start1+",0":this.length1==1?f=this.start1+1:f=this.start1+1+","+this.length1,this.length2===0?m=this.start2+",0":this.length2==1?m=this.start2+1:m=this.start2+1+","+this.length2;for(var h=["@@ -"+f+" +"+m+` @@
894
894
  `],o,a=0;a<this.diffs.length;a++){switch(this.diffs[a][0]){case $:o="+";break;case w:o="-";break;case T:o=" ";break}h[a+1]=o+encodeURI(this.diffs[a][1])+`
895
- `}return h.join("").replace(/%20/g," ")},O.exports=R,O.exports.diff_match_patch=R,O.exports.DIFF_DELETE=w,O.exports.DIFF_INSERT=$,O.exports.DIFF_EQUAL=T})(Sn);var Wr=Sn.exports,Pr=be&&be.__extends||function(){var O=function(R,w){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,T){$.__proto__=T}||function($,T){for(var f in T)Object.prototype.hasOwnProperty.call(T,f)&&($[f]=T[f])},O(R,w)};return function(R,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");O(R,w);function $(){this.constructor=R}R.prototype=w===null?Object.create(w):($.prototype=w.prototype,new $)}}();Object.defineProperty(It,"__esModule",{value:!0});var ae=Mt,cn=Me,Hr=vt,Nr=Wr,zr=function(O){Pr(R,O);function R(w){var $=O.call(this,w)||this;return $.state={value:$.props.value},$.onChange=$.onChange.bind($),$.diff=$.diff.bind($),$}return R.prototype.componentDidUpdate=function(){var w=this.props.value;w!==this.state.value&&this.setState({value:w})},R.prototype.onChange=function(w){this.setState({value:w}),this.props.onChange&&this.props.onChange(w)},R.prototype.diff=function(){var w=new Nr,$=this.state.value[0],T=this.state.value[1];if($.length===0&&T.length===0)return[];var f=w.diff_main($,T);w.diff_cleanupSemantic(f);var m=this.generateDiffedLines(f),h=this.setCodeMarkers(m);return h},R.prototype.generateDiffedLines=function(w){var $={DIFF_EQUAL:0,DIFF_DELETE:-1,DIFF_INSERT:1},T={left:[],right:[]},f={left:1,right:1};return w.forEach(function(m){var h=m[0],o=m[1],a=o.split(`
895
+ `}return h.join("").replace(/%20/g," ")},O.exports=R,O.exports.diff_match_patch=R,O.exports.DIFF_DELETE=w,O.exports.DIFF_INSERT=$,O.exports.DIFF_EQUAL=T})(Sn);var Br=Sn.exports,Wr=be&&be.__extends||function(){var O=function(R,w){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,T){$.__proto__=T}||function($,T){for(var f in T)Object.prototype.hasOwnProperty.call(T,f)&&($[f]=T[f])},O(R,w)};return function(R,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");O(R,w);function $(){this.constructor=R}R.prototype=w===null?Object.create(w):($.prototype=w.prototype,new $)}}();Object.defineProperty(It,"__esModule",{value:!0});var ae=Mt,cn=Me,Pr=vt,Hr=Br,Nr=function(O){Wr(R,O);function R(w){var $=O.call(this,w)||this;return $.state={value:$.props.value},$.onChange=$.onChange.bind($),$.diff=$.diff.bind($),$}return R.prototype.componentDidUpdate=function(){var w=this.props.value;w!==this.state.value&&this.setState({value:w})},R.prototype.onChange=function(w){this.setState({value:w}),this.props.onChange&&this.props.onChange(w)},R.prototype.diff=function(){var w=new Hr,$=this.state.value[0],T=this.state.value[1];if($.length===0&&T.length===0)return[];var f=w.diff_main($,T);w.diff_cleanupSemantic(f);var m=this.generateDiffedLines(f),h=this.setCodeMarkers(m);return h},R.prototype.generateDiffedLines=function(w){var $={DIFF_EQUAL:0,DIFF_DELETE:-1,DIFF_INSERT:1},T={left:[],right:[]},f={left:1,right:1};return w.forEach(function(m){var h=m[0],o=m[1],a=o.split(`
896
896
  `).length-1;if(o.length!==0){var t=o[0],e=o[o.length-1],n=0;switch(h){case $.DIFF_EQUAL:f.left+=a,f.right+=a;break;case $.DIFF_DELETE:t===`
897
897
  `&&(f.left++,a--),n=a,n===0&&T.right.push({startLine:f.right,endLine:f.right}),e===`
898
898
  `&&(n-=1),T.left.push({startLine:f.left,endLine:f.left+n}),f.left+=a;break;case $.DIFF_INSERT:t===`
899
899
  `&&(f.right++,a--),n=a,n===0&&T.left.push({startLine:f.left,endLine:f.left}),e===`
900
- `&&(n-=1),T.right.push({startLine:f.right,endLine:f.right+n}),f.right+=a;break;default:throw new Error("Diff type was not defined.")}}}),T},R.prototype.setCodeMarkers=function(w){w===void 0&&(w={left:[],right:[]});for(var $=[],T={left:[],right:[]},f=0;f<w.left.length;f++){var m={startRow:w.left[f].startLine-1,endRow:w.left[f].endLine,type:"text",className:"codeMarker"};T.left.push(m)}for(var f=0;f<w.right.length;f++){var m={startRow:w.right[f].startLine-1,endRow:w.right[f].endLine,type:"text",className:"codeMarker"};T.right.push(m)}return $[0]=T.left,$[1]=T.right,$},R.prototype.render=function(){var w=this.diff();return cn.createElement(Hr.default,{name:this.props.name,className:this.props.className,focus:this.props.focus,orientation:this.props.orientation,splits:this.props.splits,mode:this.props.mode,theme:this.props.theme,height:this.props.height,width:this.props.width,fontSize:this.props.fontSize,showGutter:this.props.showGutter,onChange:this.onChange,onPaste:this.props.onPaste,onLoad:this.props.onLoad,onScroll:this.props.onScroll,minLines:this.props.minLines,maxLines:this.props.maxLines,readOnly:this.props.readOnly,highlightActiveLine:this.props.highlightActiveLine,showPrintMargin:this.props.showPrintMargin,tabSize:this.props.tabSize,cursorStart:this.props.cursorStart,editorProps:this.props.editorProps,style:this.props.style,scrollMargin:this.props.scrollMargin,setOptions:this.props.setOptions,wrapEnabled:this.props.wrapEnabled,enableBasicAutocompletion:this.props.enableBasicAutocompletion,enableLiveAutocompletion:this.props.enableLiveAutocompletion,value:this.state.value,markers:w})},R.propTypes={cursorStart:ae.number,editorProps:ae.object,enableBasicAutocompletion:ae.bool,enableLiveAutocompletion:ae.bool,focus:ae.bool,fontSize:ae.number,height:ae.string,highlightActiveLine:ae.bool,maxLines:ae.number,minLines:ae.number,mode:ae.string,name:ae.string,className:ae.string,onLoad:ae.func,onPaste:ae.func,onScroll:ae.func,onChange:ae.func,orientation:ae.string,readOnly:ae.bool,scrollMargin:ae.array,setOptions:ae.object,showGutter:ae.bool,showPrintMargin:ae.bool,splits:ae.number,style:ae.object,tabSize:ae.number,theme:ae.string,value:ae.array,width:ae.string,wrapEnabled:ae.bool},R.defaultProps={cursorStart:1,editorProps:{},enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,focus:!1,fontSize:12,height:"500px",highlightActiveLine:!0,maxLines:null,minLines:null,mode:"",name:"ace-editor",onLoad:null,onScroll:null,onPaste:null,onChange:null,orientation:"beside",readOnly:!1,scrollMargin:[0,0,0,0],setOptions:{},showGutter:!0,showPrintMargin:!0,splits:2,style:{},tabSize:4,theme:"github",value:["",""],width:"500px",wrapEnabled:!0},R}(cn.Component);It.default=zr;Object.defineProperty(Je,"__esModule",{value:!0});Je.diff=Je.split=void 0;var Ur=Ft,Vr=It;Je.diff=Vr.default;var Gr=vt;Je.split=Gr.default;var Kr=Je.default=Ur.default,jr={exports:{}};(function(O,R){ace.define("ace/mode/yaml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(w,$,T){var f=w("../lib/oop"),m=w("./text_highlight_rules").TextHighlightRules,h=function(){this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"list.markup",regex:/^(?:-{3}|\.{3})\s*(?=#|$)/},{token:"list.markup",regex:/^\s*[\-?](?:$|\s)/},{token:"constant",regex:"!![\\w//]+"},{token:"constant.language",regex:"[&\\*][a-zA-Z0-9-_]+"},{token:["meta.tag","keyword"],regex:/^(\s*\w[^\s:]*?)(:(?=\s|$))/},{token:["meta.tag","keyword"],regex:/(\w[^\s:]*?)(\s*:(?=\s|$))/},{token:"keyword.operator",regex:"<<\\w*:\\w*"},{token:"keyword.operator",regex:"-\\s*(?=[{])"},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"string",regex:/[|>][-+\d]*(?:$|\s+(?:$|#))/,onMatch:function(o,a,t,e){e=e.replace(/ #.*/,"");var n=/^ *((:\s*)?-(\s*[^|>])?)?/.exec(e)[0].replace(/\S\s*$/,"").length,i=parseInt(/\d+[\s+-]*$/.exec(e));return i?(n+=i-1,this.next="mlString"):this.next="mlStringPre",t.length?(t[0]=this.next,t[1]=n):(t.push(this.next),t.push(n)),this.token},next:"mlString"},{token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"constant.numeric",regex:/(\b|[+\-\.])[\d_]+(?:(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)(?=[^\d-\w]|$)$/},{token:"constant.numeric",regex:/[+\-]?\.inf\b|NaN\b|0x[\dA-Fa-f_]+|0b[10_]+/},{token:"constant.language.boolean",regex:"\\b(?:true|false|TRUE|FALSE|True|False|yes|no)\\b"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:/[^\s,:\[\]\{\}]+/}],mlStringPre:[{token:"indent",regex:/^ *$/},{token:"indent",regex:/^ */,onMatch:function(o,a,t){var e=t[1];return e>=o.length?(this.next="start",t.shift(),t.shift()):(t[1]=o.length-1,this.next=t[0]="mlString"),this.token},next:"mlString"},{defaultToken:"string"}],mlString:[{token:"indent",regex:/^ *$/},{token:"indent",regex:/^ */,onMatch:function(o,a,t){var e=t[1];return e>=o.length?(this.next="start",t.splice(0)):this.next="mlString",this.token},next:"mlString"},{token:"string",regex:".+"}]},this.normalizeRules()};f.inherits(h,m),$.YamlHighlightRules=h}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(w,$,T){var f=w("../range").Range,m=function(){};(function(){this.checkOutdent=function(h,o){return/^\s+$/.test(h)?/^\s*\}/.test(o):!1},this.autoOutdent=function(h,o){var a=h.getLine(o),t=a.match(/^(\s*\})/);if(!t)return 0;var e=t[1].length,n=h.findMatchingBracket({row:o,column:e});if(!n||n.row==o)return 0;var i=this.$getIndent(h.getLine(n.row));h.replace(new f(o,0,o,e-1),i)},this.$getIndent=function(h){return h.match(/^\s*/)[0]}}).call(m.prototype),$.MatchingBraceOutdent=m}),ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(w,$,T){var f=w("../../lib/oop"),m=w("./fold_mode").FoldMode,h=w("../../range").Range,o=$.FoldMode=function(){};f.inherits(o,m),(function(){this.getFoldWidgetRange=function(a,t,e){var n=this.indentationBlock(a,e);if(n)return n;var i=/\S/,s=a.getLine(e),l=s.search(i);if(!(l==-1||s[l]!="#")){for(var c=s.length,b=a.getLength(),y=e,x=e;++e<b;){s=a.getLine(e);var S=s.search(i);if(S!=-1){if(s[S]!="#")break;x=e}}if(x>y){var u=a.getLine(x).length;return new h(y,c,x,u)}}},this.getFoldWidget=function(a,t,e){var n=a.getLine(e),i=n.search(/\S/),s=a.getLine(e+1),l=a.getLine(e-1),c=l.search(/\S/),b=s.search(/\S/);if(i==-1)return a.foldWidgets[e-1]=c!=-1&&c<b?"start":"","";if(c==-1){if(i==b&&n[i]=="#"&&s[i]=="#")return a.foldWidgets[e-1]="",a.foldWidgets[e+1]="","start"}else if(c==i&&n[i]=="#"&&l[i]=="#"&&a.getLine(e-2).search(/\S/)==-1)return a.foldWidgets[e-1]="start",a.foldWidgets[e+1]="","";return c!=-1&&c<i?a.foldWidgets[e-1]="start":a.foldWidgets[e-1]="",i<b?"start":""}}).call(o.prototype)}),ace.define("ace/mode/yaml",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/yaml_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/coffee","ace/worker/worker_client"],function(w,$,T){var f=w("../lib/oop"),m=w("./text").Mode,h=w("./yaml_highlight_rules").YamlHighlightRules,o=w("./matching_brace_outdent").MatchingBraceOutdent,a=w("./folding/coffee").FoldMode,t=w("../worker/worker_client").WorkerClient,e=function(){this.HighlightRules=h,this.$outdent=new o,this.foldingRules=new a,this.$behaviour=this.$defaultBehaviour};f.inherits(e,m),(function(){this.lineCommentStart=["#"],this.getNextLineIndent=function(n,i,s){var l=this.$getIndent(i);if(n=="start"){var c=i.match(/^.*[\{\(\[]\s*$/);c&&(l+=s)}return l},this.checkOutdent=function(n,i,s){return this.$outdent.checkOutdent(i,s)},this.autoOutdent=function(n,i,s){this.$outdent.autoOutdent(i,s)},this.createWorker=function(n){var i=new t(["ace"],"ace/mode/yaml_worker","YamlWorker");return i.attachToDocument(n.getDocument()),i.on("annotate",function(s){n.setAnnotations(s.data)}),i.on("terminate",function(){n.clearAnnotations()}),i},this.$id="ace/mode/yaml"}).call(e.prototype),$.Mode=e}),function(){ace.require(["ace/mode/yaml"],function(w){O&&(O.exports=w)})}()})(jr);var Yr={exports:{}};(function(O,R){ace.define("ace/mode/python_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(w,$,T){var f=w("../lib/oop"),m=w("./text_highlight_rules").TextHighlightRules,h=function(){var o="and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield|async|await|nonlocal",a="True|False|None|NotImplemented|Ellipsis|__debug__",t="abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|binfile|bin|iter|property|tuple|bool|filter|len|range|type|bytearray|float|list|raw_input|unichr|callable|format|locals|reduce|unicode|chr|frozenset|long|reload|vars|classmethod|getattr|map|repr|xrange|cmp|globals|max|reversed|zip|compile|hasattr|memoryview|round|__import__|complex|hash|min|apply|delattr|help|next|setattr|set|buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern|ascii|breakpoint|bytes",e=this.createKeywordMapper({"invalid.deprecated":"debugger","support.function":t,"variable.language":"self|cls","constant.language":a,keyword:o},"identifier"),n="[uU]?",i="[rR]",s="[fF]",l="(?:[rR][fF]|[fF][rR])",c="(?:(?:[1-9]\\d*)|(?:0))",b="(?:0[oO]?[0-7]+)",y="(?:0[xX][\\dA-Fa-f]+)",x="(?:0[bB][01]+)",S="(?:"+c+"|"+b+"|"+y+"|"+x+")",u="(?:[eE][+-]?\\d+)",g="(?:\\.\\d+)",_="(?:\\d+)",p="(?:(?:"+_+"?"+g+")|(?:"+_+"\\.))",C="(?:(?:"+p+"|"+_+")"+u+")",r="(?:"+C+"|"+p+")",d=`\\\\(x[0-9A-Fa-f]{2}|[0-7]{3}|[\\\\abfnrtv'"]|U[0-9A-Fa-f]{8}|u[0-9A-Fa-f]{4})`;this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:n+'"{3}',next:"qqstring3"},{token:"string",regex:n+'"(?=.)',next:"qqstring"},{token:"string",regex:n+"'{3}",next:"qstring3"},{token:"string",regex:n+"'(?=.)",next:"qstring"},{token:"string",regex:i+'"{3}',next:"rawqqstring3"},{token:"string",regex:i+'"(?=.)',next:"rawqqstring"},{token:"string",regex:i+"'{3}",next:"rawqstring3"},{token:"string",regex:i+"'(?=.)",next:"rawqstring"},{token:"string",regex:s+'"{3}',next:"fqqstring3"},{token:"string",regex:s+'"(?=.)',next:"fqqstring"},{token:"string",regex:s+"'{3}",next:"fqstring3"},{token:"string",regex:s+"'(?=.)",next:"fqstring"},{token:"string",regex:l+'"{3}',next:"rfqqstring3"},{token:"string",regex:l+'"(?=.)',next:"rfqqstring"},{token:"string",regex:l+"'{3}",next:"rfqstring3"},{token:"string",regex:l+"'(?=.)",next:"rfqstring"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|%|@|<<|>>|&|\\||\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"punctuation",regex:",|:|;|\\->|\\+=|\\-=|\\*=|\\/=|\\/\\/=|%=|@=|&=|\\|=|^=|>>=|<<=|\\*\\*="},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]\\)\\}]"},{token:["keyword","text","entity.name.function"],regex:"(def|class)(\\s+)([\\u00BF-\\u1FFF\\u2C00-\\uD7FF\\w]+)"},{token:"text",regex:"\\s+"},{include:"constants"}],qqstring3:[{token:"constant.language.escape",regex:d},{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],qstring3:[{token:"constant.language.escape",regex:d},{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],qqstring:[{token:"constant.language.escape",regex:d},{token:"string",regex:"\\\\$",next:"qqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:d},{token:"string",regex:"\\\\$",next:"qstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}],rawqqstring3:[{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],rawqstring3:[{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],rawqqstring:[{token:"string",regex:"\\\\$",next:"rawqqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],rawqstring:[{token:"string",regex:"\\\\$",next:"rawqstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}],fqqstring3:[{token:"constant.language.escape",regex:d},{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring3:[{token:"constant.language.escape",regex:d},{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqqstring:[{token:"constant.language.escape",regex:d},{token:"string",regex:"\\\\$",next:"fqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring:[{token:"constant.language.escape",regex:d},{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring3:[{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring3:[{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring:[{token:"string",regex:"\\\\$",next:"rfqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring:[{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstringParRules:[{token:"paren.lparen",regex:"[\\[\\(]"},{token:"paren.rparen",regex:"[\\]\\)]"},{token:"string",regex:"\\s+"},{token:"string",regex:"'[^']*'"},{token:"string",regex:'"[^"]*"'},{token:"function.support",regex:"(!s|!r|!a)"},{include:"constants"},{token:"paren.rparen",regex:"}",next:"pop"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"}],constants:[{token:"constant.numeric",regex:"(?:"+r+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:r},{token:"constant.numeric",regex:S+"[lL]\\b"},{token:"constant.numeric",regex:S+"\\b"},{token:["punctuation","function.support"],regex:"(\\.)([a-zA-Z_]+)\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"}]},this.normalizeRules()};f.inherits(h,m),$.PythonHighlightRules=h}),ace.define("ace/mode/folding/pythonic",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(w,$,T){var f=w("../../lib/oop"),m=w("./fold_mode").FoldMode,h=$.FoldMode=function(o){this.foldingStartMarker=new RegExp("([\\[{])(?:\\s*)$|("+o+")(?:\\s*)(?:#.*)?$")};f.inherits(h,m),(function(){this.getFoldWidgetRange=function(o,a,t){var e=o.getLine(t),n=e.match(this.foldingStartMarker);if(n)return n[1]?this.openingBracketBlock(o,n[1],t,n.index):n[2]?this.indentationBlock(o,t,n.index+n[2].length):this.indentationBlock(o,t)}}).call(h.prototype)}),ace.define("ace/mode/python",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/python_highlight_rules","ace/mode/folding/pythonic","ace/range"],function(w,$,T){var f=w("../lib/oop"),m=w("./text").Mode,h=w("./python_highlight_rules").PythonHighlightRules,o=w("./folding/pythonic").FoldMode,a=w("../range").Range,t=function(){this.HighlightRules=h,this.foldingRules=new o("\\:"),this.$behaviour=this.$defaultBehaviour};f.inherits(t,m),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(n,i,s){var l=this.$getIndent(i),c=this.getTokenizer().getLineTokens(i,n),b=c.tokens;if(b.length&&b[b.length-1].type=="comment")return l;if(n=="start"){var y=i.match(/^.*[\{\(\[:]\s*$/);y&&(l+=s)}return l};var e={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(n,i,s){if(s!==`\r
900
+ `&&(n-=1),T.right.push({startLine:f.right,endLine:f.right+n}),f.right+=a;break;default:throw new Error("Diff type was not defined.")}}}),T},R.prototype.setCodeMarkers=function(w){w===void 0&&(w={left:[],right:[]});for(var $=[],T={left:[],right:[]},f=0;f<w.left.length;f++){var m={startRow:w.left[f].startLine-1,endRow:w.left[f].endLine,type:"text",className:"codeMarker"};T.left.push(m)}for(var f=0;f<w.right.length;f++){var m={startRow:w.right[f].startLine-1,endRow:w.right[f].endLine,type:"text",className:"codeMarker"};T.right.push(m)}return $[0]=T.left,$[1]=T.right,$},R.prototype.render=function(){var w=this.diff();return cn.createElement(Pr.default,{name:this.props.name,className:this.props.className,focus:this.props.focus,orientation:this.props.orientation,splits:this.props.splits,mode:this.props.mode,theme:this.props.theme,height:this.props.height,width:this.props.width,fontSize:this.props.fontSize,showGutter:this.props.showGutter,onChange:this.onChange,onPaste:this.props.onPaste,onLoad:this.props.onLoad,onScroll:this.props.onScroll,minLines:this.props.minLines,maxLines:this.props.maxLines,readOnly:this.props.readOnly,highlightActiveLine:this.props.highlightActiveLine,showPrintMargin:this.props.showPrintMargin,tabSize:this.props.tabSize,cursorStart:this.props.cursorStart,editorProps:this.props.editorProps,style:this.props.style,scrollMargin:this.props.scrollMargin,setOptions:this.props.setOptions,wrapEnabled:this.props.wrapEnabled,enableBasicAutocompletion:this.props.enableBasicAutocompletion,enableLiveAutocompletion:this.props.enableLiveAutocompletion,value:this.state.value,markers:w})},R.propTypes={cursorStart:ae.number,editorProps:ae.object,enableBasicAutocompletion:ae.bool,enableLiveAutocompletion:ae.bool,focus:ae.bool,fontSize:ae.number,height:ae.string,highlightActiveLine:ae.bool,maxLines:ae.number,minLines:ae.number,mode:ae.string,name:ae.string,className:ae.string,onLoad:ae.func,onPaste:ae.func,onScroll:ae.func,onChange:ae.func,orientation:ae.string,readOnly:ae.bool,scrollMargin:ae.array,setOptions:ae.object,showGutter:ae.bool,showPrintMargin:ae.bool,splits:ae.number,style:ae.object,tabSize:ae.number,theme:ae.string,value:ae.array,width:ae.string,wrapEnabled:ae.bool},R.defaultProps={cursorStart:1,editorProps:{},enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,focus:!1,fontSize:12,height:"500px",highlightActiveLine:!0,maxLines:null,minLines:null,mode:"",name:"ace-editor",onLoad:null,onScroll:null,onPaste:null,onChange:null,orientation:"beside",readOnly:!1,scrollMargin:[0,0,0,0],setOptions:{},showGutter:!0,showPrintMargin:!0,splits:2,style:{},tabSize:4,theme:"github",value:["",""],width:"500px",wrapEnabled:!0},R}(cn.Component);It.default=Nr;Object.defineProperty(Je,"__esModule",{value:!0});Je.diff=Je.split=void 0;var zr=Ft,Ur=It;Je.diff=Ur.default;var Vr=vt;Je.split=Vr.default;var Gr=Je.default=zr.default,Kr={exports:{}};(function(O,R){ace.define("ace/mode/yaml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(w,$,T){var f=w("../lib/oop"),m=w("./text_highlight_rules").TextHighlightRules,h=function(){this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"list.markup",regex:/^(?:-{3}|\.{3})\s*(?=#|$)/},{token:"list.markup",regex:/^\s*[\-?](?:$|\s)/},{token:"constant",regex:"!![\\w//]+"},{token:"constant.language",regex:"[&\\*][a-zA-Z0-9-_]+"},{token:["meta.tag","keyword"],regex:/^(\s*\w[^\s:]*?)(:(?=\s|$))/},{token:["meta.tag","keyword"],regex:/(\w[^\s:]*?)(\s*:(?=\s|$))/},{token:"keyword.operator",regex:"<<\\w*:\\w*"},{token:"keyword.operator",regex:"-\\s*(?=[{])"},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"string",regex:/[|>][-+\d]*(?:$|\s+(?:$|#))/,onMatch:function(o,a,t,e){e=e.replace(/ #.*/,"");var n=/^ *((:\s*)?-(\s*[^|>])?)?/.exec(e)[0].replace(/\S\s*$/,"").length,i=parseInt(/\d+[\s+-]*$/.exec(e));return i?(n+=i-1,this.next="mlString"):this.next="mlStringPre",t.length?(t[0]=this.next,t[1]=n):(t.push(this.next),t.push(n)),this.token},next:"mlString"},{token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"constant.numeric",regex:/(\b|[+\-\.])[\d_]+(?:(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)(?=[^\d-\w]|$)$/},{token:"constant.numeric",regex:/[+\-]?\.inf\b|NaN\b|0x[\dA-Fa-f_]+|0b[10_]+/},{token:"constant.language.boolean",regex:"\\b(?:true|false|TRUE|FALSE|True|False|yes|no)\\b"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:/[^\s,:\[\]\{\}]+/}],mlStringPre:[{token:"indent",regex:/^ *$/},{token:"indent",regex:/^ */,onMatch:function(o,a,t){var e=t[1];return e>=o.length?(this.next="start",t.shift(),t.shift()):(t[1]=o.length-1,this.next=t[0]="mlString"),this.token},next:"mlString"},{defaultToken:"string"}],mlString:[{token:"indent",regex:/^ *$/},{token:"indent",regex:/^ */,onMatch:function(o,a,t){var e=t[1];return e>=o.length?(this.next="start",t.splice(0)):this.next="mlString",this.token},next:"mlString"},{token:"string",regex:".+"}]},this.normalizeRules()};f.inherits(h,m),$.YamlHighlightRules=h}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(w,$,T){var f=w("../range").Range,m=function(){};(function(){this.checkOutdent=function(h,o){return/^\s+$/.test(h)?/^\s*\}/.test(o):!1},this.autoOutdent=function(h,o){var a=h.getLine(o),t=a.match(/^(\s*\})/);if(!t)return 0;var e=t[1].length,n=h.findMatchingBracket({row:o,column:e});if(!n||n.row==o)return 0;var i=this.$getIndent(h.getLine(n.row));h.replace(new f(o,0,o,e-1),i)},this.$getIndent=function(h){return h.match(/^\s*/)[0]}}).call(m.prototype),$.MatchingBraceOutdent=m}),ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(w,$,T){var f=w("../../lib/oop"),m=w("./fold_mode").FoldMode,h=w("../../range").Range,o=$.FoldMode=function(){};f.inherits(o,m),(function(){this.getFoldWidgetRange=function(a,t,e){var n=this.indentationBlock(a,e);if(n)return n;var i=/\S/,s=a.getLine(e),l=s.search(i);if(!(l==-1||s[l]!="#")){for(var c=s.length,b=a.getLength(),y=e,x=e;++e<b;){s=a.getLine(e);var S=s.search(i);if(S!=-1){if(s[S]!="#")break;x=e}}if(x>y){var u=a.getLine(x).length;return new h(y,c,x,u)}}},this.getFoldWidget=function(a,t,e){var n=a.getLine(e),i=n.search(/\S/),s=a.getLine(e+1),l=a.getLine(e-1),c=l.search(/\S/),b=s.search(/\S/);if(i==-1)return a.foldWidgets[e-1]=c!=-1&&c<b?"start":"","";if(c==-1){if(i==b&&n[i]=="#"&&s[i]=="#")return a.foldWidgets[e-1]="",a.foldWidgets[e+1]="","start"}else if(c==i&&n[i]=="#"&&l[i]=="#"&&a.getLine(e-2).search(/\S/)==-1)return a.foldWidgets[e-1]="start",a.foldWidgets[e+1]="","";return c!=-1&&c<i?a.foldWidgets[e-1]="start":a.foldWidgets[e-1]="",i<b?"start":""}}).call(o.prototype)}),ace.define("ace/mode/yaml",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/yaml_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/coffee","ace/worker/worker_client"],function(w,$,T){var f=w("../lib/oop"),m=w("./text").Mode,h=w("./yaml_highlight_rules").YamlHighlightRules,o=w("./matching_brace_outdent").MatchingBraceOutdent,a=w("./folding/coffee").FoldMode,t=w("../worker/worker_client").WorkerClient,e=function(){this.HighlightRules=h,this.$outdent=new o,this.foldingRules=new a,this.$behaviour=this.$defaultBehaviour};f.inherits(e,m),(function(){this.lineCommentStart=["#"],this.getNextLineIndent=function(n,i,s){var l=this.$getIndent(i);if(n=="start"){var c=i.match(/^.*[\{\(\[]\s*$/);c&&(l+=s)}return l},this.checkOutdent=function(n,i,s){return this.$outdent.checkOutdent(i,s)},this.autoOutdent=function(n,i,s){this.$outdent.autoOutdent(i,s)},this.createWorker=function(n){var i=new t(["ace"],"ace/mode/yaml_worker","YamlWorker");return i.attachToDocument(n.getDocument()),i.on("annotate",function(s){n.setAnnotations(s.data)}),i.on("terminate",function(){n.clearAnnotations()}),i},this.$id="ace/mode/yaml"}).call(e.prototype),$.Mode=e}),function(){ace.require(["ace/mode/yaml"],function(w){O&&(O.exports=w)})}()})(Kr);var jr={exports:{}};(function(O,R){ace.define("ace/mode/python_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(w,$,T){var f=w("../lib/oop"),m=w("./text_highlight_rules").TextHighlightRules,h=function(){var o="and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield|async|await|nonlocal",a="True|False|None|NotImplemented|Ellipsis|__debug__",t="abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|binfile|bin|iter|property|tuple|bool|filter|len|range|type|bytearray|float|list|raw_input|unichr|callable|format|locals|reduce|unicode|chr|frozenset|long|reload|vars|classmethod|getattr|map|repr|xrange|cmp|globals|max|reversed|zip|compile|hasattr|memoryview|round|__import__|complex|hash|min|apply|delattr|help|next|setattr|set|buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern|ascii|breakpoint|bytes",e=this.createKeywordMapper({"invalid.deprecated":"debugger","support.function":t,"variable.language":"self|cls","constant.language":a,keyword:o},"identifier"),n="[uU]?",i="[rR]",s="[fF]",l="(?:[rR][fF]|[fF][rR])",c="(?:(?:[1-9]\\d*)|(?:0))",b="(?:0[oO]?[0-7]+)",y="(?:0[xX][\\dA-Fa-f]+)",x="(?:0[bB][01]+)",S="(?:"+c+"|"+b+"|"+y+"|"+x+")",u="(?:[eE][+-]?\\d+)",g="(?:\\.\\d+)",_="(?:\\d+)",p="(?:(?:"+_+"?"+g+")|(?:"+_+"\\.))",C="(?:(?:"+p+"|"+_+")"+u+")",r="(?:"+C+"|"+p+")",d=`\\\\(x[0-9A-Fa-f]{2}|[0-7]{3}|[\\\\abfnrtv'"]|U[0-9A-Fa-f]{8}|u[0-9A-Fa-f]{4})`;this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:n+'"{3}',next:"qqstring3"},{token:"string",regex:n+'"(?=.)',next:"qqstring"},{token:"string",regex:n+"'{3}",next:"qstring3"},{token:"string",regex:n+"'(?=.)",next:"qstring"},{token:"string",regex:i+'"{3}',next:"rawqqstring3"},{token:"string",regex:i+'"(?=.)',next:"rawqqstring"},{token:"string",regex:i+"'{3}",next:"rawqstring3"},{token:"string",regex:i+"'(?=.)",next:"rawqstring"},{token:"string",regex:s+'"{3}',next:"fqqstring3"},{token:"string",regex:s+'"(?=.)',next:"fqqstring"},{token:"string",regex:s+"'{3}",next:"fqstring3"},{token:"string",regex:s+"'(?=.)",next:"fqstring"},{token:"string",regex:l+'"{3}',next:"rfqqstring3"},{token:"string",regex:l+'"(?=.)',next:"rfqqstring"},{token:"string",regex:l+"'{3}",next:"rfqstring3"},{token:"string",regex:l+"'(?=.)",next:"rfqstring"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|%|@|<<|>>|&|\\||\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"punctuation",regex:",|:|;|\\->|\\+=|\\-=|\\*=|\\/=|\\/\\/=|%=|@=|&=|\\|=|^=|>>=|<<=|\\*\\*="},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]\\)\\}]"},{token:["keyword","text","entity.name.function"],regex:"(def|class)(\\s+)([\\u00BF-\\u1FFF\\u2C00-\\uD7FF\\w]+)"},{token:"text",regex:"\\s+"},{include:"constants"}],qqstring3:[{token:"constant.language.escape",regex:d},{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],qstring3:[{token:"constant.language.escape",regex:d},{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],qqstring:[{token:"constant.language.escape",regex:d},{token:"string",regex:"\\\\$",next:"qqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:d},{token:"string",regex:"\\\\$",next:"qstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}],rawqqstring3:[{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],rawqstring3:[{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],rawqqstring:[{token:"string",regex:"\\\\$",next:"rawqqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],rawqstring:[{token:"string",regex:"\\\\$",next:"rawqstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}],fqqstring3:[{token:"constant.language.escape",regex:d},{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring3:[{token:"constant.language.escape",regex:d},{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqqstring:[{token:"constant.language.escape",regex:d},{token:"string",regex:"\\\\$",next:"fqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring:[{token:"constant.language.escape",regex:d},{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring3:[{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring3:[{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring:[{token:"string",regex:"\\\\$",next:"rfqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring:[{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstringParRules:[{token:"paren.lparen",regex:"[\\[\\(]"},{token:"paren.rparen",regex:"[\\]\\)]"},{token:"string",regex:"\\s+"},{token:"string",regex:"'[^']*'"},{token:"string",regex:'"[^"]*"'},{token:"function.support",regex:"(!s|!r|!a)"},{include:"constants"},{token:"paren.rparen",regex:"}",next:"pop"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"}],constants:[{token:"constant.numeric",regex:"(?:"+r+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:r},{token:"constant.numeric",regex:S+"[lL]\\b"},{token:"constant.numeric",regex:S+"\\b"},{token:["punctuation","function.support"],regex:"(\\.)([a-zA-Z_]+)\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"}]},this.normalizeRules()};f.inherits(h,m),$.PythonHighlightRules=h}),ace.define("ace/mode/folding/pythonic",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(w,$,T){var f=w("../../lib/oop"),m=w("./fold_mode").FoldMode,h=$.FoldMode=function(o){this.foldingStartMarker=new RegExp("([\\[{])(?:\\s*)$|("+o+")(?:\\s*)(?:#.*)?$")};f.inherits(h,m),(function(){this.getFoldWidgetRange=function(o,a,t){var e=o.getLine(t),n=e.match(this.foldingStartMarker);if(n)return n[1]?this.openingBracketBlock(o,n[1],t,n.index):n[2]?this.indentationBlock(o,t,n.index+n[2].length):this.indentationBlock(o,t)}}).call(h.prototype)}),ace.define("ace/mode/python",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/python_highlight_rules","ace/mode/folding/pythonic","ace/range"],function(w,$,T){var f=w("../lib/oop"),m=w("./text").Mode,h=w("./python_highlight_rules").PythonHighlightRules,o=w("./folding/pythonic").FoldMode,a=w("../range").Range,t=function(){this.HighlightRules=h,this.foldingRules=new o("\\:"),this.$behaviour=this.$defaultBehaviour};f.inherits(t,m),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(n,i,s){var l=this.$getIndent(i),c=this.getTokenizer().getLineTokens(i,n),b=c.tokens;if(b.length&&b[b.length-1].type=="comment")return l;if(n=="start"){var y=i.match(/^.*[\{\(\[:]\s*$/);y&&(l+=s)}return l};var e={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(n,i,s){if(s!==`\r
901
901
  `&&s!=="\r"&&s!==`
902
- `)return!1;var l=this.getTokenizer().getLineTokens(i.trim(),n).tokens;if(!l)return!1;do var c=l.pop();while(c&&(c.type=="comment"||c.type=="text"&&c.value.match(/^\s+$/)));return c?c.type=="keyword"&&e[c.value]:!1},this.autoOutdent=function(n,i,s){s+=1;var l=this.$getIndent(i.getLine(s)),c=i.getTabString();l.slice(-c.length)==c&&i.remove(new a(s,l.length-c.length,s,l.length))},this.$id="ace/mode/python",this.snippetFileId="ace/snippets/python"}).call(t.prototype),$.Mode=t}),function(){ace.require(["ace/mode/python"],function(w){O&&(O.exports=w)})}()})(Yr);var Xr={exports:{}};(function(O,R){ace.define("ace/theme/monokai.css",["require","exports","module"],function(w,$,T){T.exports=`.ace-monokai .ace_gutter {
902
+ `)return!1;var l=this.getTokenizer().getLineTokens(i.trim(),n).tokens;if(!l)return!1;do var c=l.pop();while(c&&(c.type=="comment"||c.type=="text"&&c.value.match(/^\s+$/)));return c?c.type=="keyword"&&e[c.value]:!1},this.autoOutdent=function(n,i,s){s+=1;var l=this.$getIndent(i.getLine(s)),c=i.getTabString();l.slice(-c.length)==c&&i.remove(new a(s,l.length-c.length,s,l.length))},this.$id="ace/mode/python",this.snippetFileId="ace/snippets/python"}).call(t.prototype),$.Mode=t}),function(){ace.require(["ace/mode/python"],function(w){O&&(O.exports=w)})}()})(jr);var Yr={exports:{}};(function(O,R){ace.define("ace/theme/monokai.css",["require","exports","module"],function(w,$,T){T.exports=`.ace-monokai .ace_gutter {
903
903
  background: #2F3129;
904
904
  color: #8F908A
905
905
  }
@@ -1024,7 +1024,7 @@ import{bN as be,dC as Mt,r as Me,l as rt,j as ye,E as $i,A as Si,dD as Ci,dE as
1024
1024
  .ace-monokai .ace_indent-guide-active {
1025
1025
  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
1026
1026
  }
1027
- `}),ace.define("ace/theme/monokai",["require","exports","module","ace/theme/monokai.css","ace/lib/dom"],function(w,$,T){$.isDark=!0,$.cssClass="ace-monokai",$.cssText=w("./monokai.css");var f=w("../lib/dom");f.importCssString($.cssText,$.cssClass,!1)}),function(){ace.require(["ace/theme/monokai"],function(w){O&&(O.exports=w)})}()})(Xr);var Qr={exports:{}};(function(O,R){ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(w,$,T){function f(u){var g=new Date().toLocaleString("en-us",u);return g.length==1?"0"+g:g}var m=w("./lib/dom"),h=w("./lib/oop"),o=w("./lib/event_emitter").EventEmitter,a=w("./lib/lang"),t=w("./range").Range,e=w("./range_list").RangeList,n=w("./keyboard/hash_handler").HashHandler,i=w("./tokenizer").Tokenizer,s=w("./clipboard"),l={CURRENT_WORD:function(u){return u.session.getTextRange(u.session.getWordRange())},SELECTION:function(u,g,_){var p=u.session.getTextRange();return _?p.replace(/\n\r?([ \t]*\S)/g,`
1027
+ `}),ace.define("ace/theme/monokai",["require","exports","module","ace/theme/monokai.css","ace/lib/dom"],function(w,$,T){$.isDark=!0,$.cssClass="ace-monokai",$.cssText=w("./monokai.css");var f=w("../lib/dom");f.importCssString($.cssText,$.cssClass,!1)}),function(){ace.require(["ace/theme/monokai"],function(w){O&&(O.exports=w)})}()})(Yr);var Xr={exports:{}};(function(O,R){ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(w,$,T){function f(u){var g=new Date().toLocaleString("en-us",u);return g.length==1?"0"+g:g}var m=w("./lib/dom"),h=w("./lib/oop"),o=w("./lib/event_emitter").EventEmitter,a=w("./lib/lang"),t=w("./range").Range,e=w("./range_list").RangeList,n=w("./keyboard/hash_handler").HashHandler,i=w("./tokenizer").Tokenizer,s=w("./clipboard"),l={CURRENT_WORD:function(u){return u.session.getTextRange(u.session.getWordRange())},SELECTION:function(u,g,_){var p=u.session.getTextRange();return _?p.replace(/\n\r?([ \t]*\S)/g,`
1028
1028
  `+_+"$1"):p},CURRENT_LINE:function(u){return u.session.getLine(u.getCursorPosition().row)},PREV_LINE:function(u){return u.session.getLine(u.getCursorPosition().row-1)},LINE_INDEX:function(u){return u.getCursorPosition().row},LINE_NUMBER:function(u){return u.getCursorPosition().row+1},SOFT_TABS:function(u){return u.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(u){return u.session.getTabSize()},CLIPBOARD:function(u){return s.getText&&s.getText()},FILENAME:function(u){return/[^/\\]*$/.exec(this.FILEPATH(u))[0]},FILENAME_BASE:function(u){return/[^/\\]*$/.exec(this.FILEPATH(u))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(u){return this.FILEPATH(u).replace(/[^/\\]*$/,"")},FILEPATH:function(u){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(u){var g=u.session.$mode||{};return g.blockComment&&g.blockComment.start||""},BLOCK_COMMENT_END:function(u){var g=u.session.$mode||{};return g.blockComment&&g.blockComment.end||""},LINE_COMMENT:function(u){var g=u.session.$mode||{};return g.lineCommentStart||""},CURRENT_YEAR:f.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:f.bind(null,{year:"2-digit"}),CURRENT_MONTH:f.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:f.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:f.bind(null,{month:"short"}),CURRENT_DATE:f.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:f.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:f.bind(null,{weekday:"short"}),CURRENT_HOUR:f.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:f.bind(null,{minute:"2-digit"}),CURRENT_SECOND:f.bind(null,{second:"2-digit"})};l.SELECTED_TEXT=l.SELECTION;var c=function(){this.snippetMap={},this.snippetNameMap={}};(function(){h.implement(this,o),this.getTokenizer=function(){return c.$tokenizer||this.createTokenizer()},this.createTokenizer=function(){function u(p){return p=p.substr(1),/^\d+$/.test(p)?[{tabstopId:parseInt(p,10)}]:[{text:p}]}function g(p){return"(?:[^\\\\"+p+"]|\\\\.)"}var _={regex:"/("+g("/")+"+)/",onMatch:function(p,C,r){var d=r[0];return d.fmtString=!0,d.guard=p.slice(1,-1),d.flag="",""},next:"formatString"};return c.$tokenizer=new i({start:[{regex:/\\./,onMatch:function(p,C,r){var d=p[1];return(d=="}"&&r.length||"`$\\".indexOf(d)!=-1)&&(p=d),[p]}},{regex:/}/,onMatch:function(p,C,r){return[r.length?r.shift():p]}},{regex:/\$(?:\d+|\w+)/,onMatch:u},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(p,C,r){var d=u(p.substr(1));return r.unshift(d[0]),d},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+g("\\|")+"*\\|",onMatch:function(p,C,r){var d=p.slice(1,-1).replace(/\\[,|\\]|,/g,function(v){return v.length==2?v[1]:"\0"}).split("\0").map(function(v){return{value:v}});return r[0].choices=d,[d[0]]},next:"start"},_,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(p,C,r){return r.length&&r[0].expectElse?(r[0].expectElse=!1,r[0].ifEnd={elseEnd:r[0]},[r[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(p,C,r){var d=p[1];return d=="}"&&r.length||"`$\\".indexOf(d)!=-1?p=d:d=="n"?p=`
1029
1029
  `:d=="t"?p=" ":"ulULE".indexOf(d)!=-1&&(p={changeCase:d,local:d>"a"}),[p]}},{regex:"/\\w*}",onMatch:function(p,C,r){var d=r.shift();return d&&(d.flag=p.slice(1,-1)),this.next=d&&d.tabstopId?"start":"",[d||p]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(p,C,r){return[{text:p.slice(1)}]}},{regex:/\${\w+/,onMatch:function(p,C,r){var d={text:p.slice(2)};return r.unshift(d),[d]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(p,C,r){var d=r.shift();return this.next=d&&d.tabstopId?"start":"",[d||p]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(p,C,r){var d=r[0];return d.formatFunction=p.slice(2,-1),[r.shift()]},next:"formatString"},_,{regex:/:[\?\-+]?/,onMatch:function(p,C,r){p[1]=="+"&&(r[0].ifEnd=r[0]),p[1]=="?"&&(r[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),c.$tokenizer},this.tokenizeTmSnippet=function(u,g){return this.getTokenizer().getLineTokens(u,g).tokens.map(function(_){return _.value||_})},this.getVariableValue=function(u,g,_){if(/^\d+$/.test(g))return(this.variables.__||{})[g]||"";if(/^[A-Z]\d+$/.test(g))return(this.variables[g[0]+"__"]||{})[g.substr(1)]||"";if(g=g.replace(/^TM_/,""),!this.variables.hasOwnProperty(g))return"";var p=this.variables[g];return typeof p=="function"&&(p=this.variables[g](u,g,_)),p??""},this.variables=l,this.tmStrFormat=function(u,g,_){if(!g.fmt)return u;var p=g.flag||"",C=g.guard;C=new RegExp(C,p.replace(/[^gim]/g,""));var r=typeof g.fmt=="string"?this.tokenizeTmSnippet(g.fmt,"formatString"):g.fmt,d=this,v=u.replace(C,function(){var A=d.variables.__;d.variables.__=[].slice.call(arguments);for(var k=d.resolveVariables(r,_),L="E",E=0;E<k.length;E++){var F=k[E];if(typeof F=="object")if(k[E]="",F.changeCase&&F.local){var I=k[E+1];I&&typeof I=="string"&&(F.changeCase=="u"?k[E]=I[0].toUpperCase():k[E]=I[0].toLowerCase(),k[E+1]=I.substr(1))}else F.changeCase&&(L=F.changeCase);else L=="U"?k[E]=F.toUpperCase():L=="L"&&(k[E]=F.toLowerCase())}return d.variables.__=A,k.join("")});return v},this.tmFormatFunction=function(u,g,_){return g.formatFunction=="upcase"?u.toUpperCase():g.formatFunction=="downcase"?u.toLowerCase():u},this.resolveVariables=function(u,g){function _(L){var E=u.indexOf(L,d+1);E!=-1&&(d=E)}for(var p=[],C="",r=!0,d=0;d<u.length;d++){var v=u[d];if(typeof v=="string"){p.push(v),v==`
1030
1030
  `?(r=!0,C=""):r&&(C=/^\t*/.exec(v)[0],r=/\S/.test(v));continue}if(v){if(r=!1,v.fmtString){var A=u.indexOf(v,d+1);A==-1&&(A=u.length),v.fmt=u.slice(d+1,A),d=A}if(v.text){var k=this.getVariableValue(g,v.text,C)+"";v.fmtString&&(k=this.tmStrFormat(k,v,g)),v.formatFunction&&(k=this.tmFormatFunction(k,v,g)),k&&!v.ifEnd?(p.push(k),_(v)):!k&&v.ifEnd&&_(v.ifEnd)}else v.elseEnd?_(v.elseEnd):(v.tabstopId!=null||v.changeCase!=null)&&p.push(v)}}return p},this.insertSnippetForSelection=function(u,g){function _(V){for(var J=[],X=0;X<V.length;X++){var q=V[X];if(typeof q=="object"){if(k[q.tabstopId])continue;var oe=V.lastIndexOf(q,X-1);q=J[oe]||{tabstopId:q.tabstopId}}J[X]=q}return J}var p=u.getCursorPosition(),C=u.session.getLine(p.row),r=u.session.getTabString(),d=C.match(/^\s*/)[0];p.column<d.length&&(d=d.slice(0,p.column)),g=g.replace(/\r/g,"");var v=this.tokenizeTmSnippet(g);v=this.resolveVariables(v,u),v=v.map(function(V){return V==`
@@ -1086,7 +1086,7 @@ import{bN as be,dC as Mt,r as Me,l as rt,j as ye,E as $i,A as Si,dD as Ci,dE as
1086
1086
  line-height: 1.4;
1087
1087
  background: #25282c;
1088
1088
  color: #c1c1c1;
1089
- }`,"autocompletion.css",!1),$.AcePopup=i,$.$singleLineEditor=n,$.getAriaId=e}),ace.define("ace/autocomplete/util",["require","exports","module"],function(w,$,T){$.parForEach=function(m,h,o){var a=0,t=m.length;t===0&&o();for(var e=0;e<t;e++)h(m[e],function(n,i){a++,a===t&&o(n,i)})};var f=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;$.retrievePrecedingIdentifier=function(m,h,o){o=o||f;for(var a=[],t=h-1;t>=0&&o.test(m[t]);t--)a.push(m[t]);return a.reverse().join("")},$.retrieveFollowingIdentifier=function(m,h,o){o=o||f;for(var a=[],t=h;t<m.length&&o.test(m[t]);t++)a.push(m[t]);return a},$.getCompletionPrefix=function(m){var h=m.getCursorPosition(),o=m.session.getLine(h.row),a;return m.completers.forEach((function(t){t.identifierRegexps&&t.identifierRegexps.forEach((function(e){!a&&e&&(a=this.retrievePrecedingIdentifier(o,h.column,e))}).bind(this))}).bind(this)),a||this.retrievePrecedingIdentifier(o,h.column)}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config"],function(w,$,T){var f=w("./keyboard/hash_handler").HashHandler,m=w("./autocomplete/popup").AcePopup,h=w("./autocomplete/popup").getAriaId,o=w("./autocomplete/util"),a=w("./lib/lang"),t=w("./lib/dom"),e=w("./snippets").snippetManager,n=w("./config"),i=function(){this.autoInsert=!1,this.autoSelect=!0,this.exactMatch=!1,this.gatherCompletionsId=0,this.keyboardHandler=new f,this.keyboardHandler.bindKeys(this.commands),this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.changeTimer=a.delayedCall((function(){this.updateCompletions(!0)}).bind(this)),this.tooltipTimer=a.delayedCall(this.updateDocTooltip.bind(this),50)};(function(){this.$init=function(){return this.popup=new m(document.body||document.documentElement),this.popup.on("click",(function(l){this.insertMatch(),l.stop()}).bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.tooltipTimer.bind(null,null)),this.popup.on("select",this.tooltipTimer.bind(null,null)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup},this.getPopup=function(){return this.popup||this.$init()},this.openPopup=function(l,c,b){this.popup||this.$init(),this.popup.autoSelect=this.autoSelect,this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:h(this.popup.getRow())}),l.keyBinding.addKeyboardHandler(this.keyboardHandler);var y=l.renderer;if(this.popup.setRow(this.autoSelect?0:-1),b)b&&!c&&this.detach();else{this.popup.setTheme(l.getTheme()),this.popup.setFontSize(l.getFontSize());var x=y.layerConfig.lineHeight,S=y.$cursorLayer.getPixelPosition(this.base,!0);S.left-=this.popup.getTextLeftOffset();var u=l.container.getBoundingClientRect();S.top+=u.top-y.layerConfig.offset,S.left+=u.left-l.renderer.scrollLeft,S.left+=y.gutterWidth,this.popup.show(S,x)}this.changeTimer.cancel()},this.detach=function(){this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener),this.changeTimer.cancel(),this.hideDocTooltip(),this.gatherCompletionsId+=1,this.popup&&this.popup.isOpen&&this.popup.hide(),this.base&&this.base.detach(),this.activated=!1,this.completions=this.base=null},this.changeListener=function(l){var c=this.editor.selection.lead;(c.row!=this.base.row||c.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},this.blurListener=function(l){var c=document.activeElement,b=this.editor.textInput.getElement(),y=l.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(l.relatedTarget),x=this.popup&&this.popup.container;c!=b&&c.parentNode!=x&&!y&&c!=this.tooltipNode&&l.relatedTarget!=b&&this.detach()},this.mousedownListener=function(l){this.detach()},this.mousewheelListener=function(l){this.detach()},this.goTo=function(l){this.popup.goTo(l)},this.insertMatch=function(l,c){if(l||(l=this.popup.getData(this.popup.getRow())),!l)return!1;var b=this.completions;if(this.editor.startOperation({command:{name:"insertMatch"}}),l.completer&&l.completer.insertMatch)l.completer.insertMatch(this.editor,l);else{if(!b)return!1;if(b.filterText)for(var y=this.editor.selection.getAllRanges(),x=0,S;S=y[x];x++)S.start.column-=b.filterText.length,this.editor.session.remove(S);l.snippet?e.insertSnippet(this.editor,l.snippet):this.editor.execCommand("insertstring",l.value||l)}this.completions==b&&this.detach(),this.editor.endOperation()},this.commands={Up:function(l){l.completer.goTo("up")},Down:function(l){l.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(l){l.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(l){l.completer.goTo("end")},Esc:function(l){l.completer.detach()},Return:function(l){return l.completer.insertMatch()},"Shift-Return":function(l){l.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(l){var c=l.completer.insertMatch();if(c||l.tabstopManager)return c;l.completer.goTo("down")},PageUp:function(l){l.completer.popup.gotoPageUp()},PageDown:function(l){l.completer.popup.gotoPageDown()}},this.gatherCompletions=function(l,c){var b=l.getSession(),y=l.getCursorPosition(),x=o.getCompletionPrefix(l);this.base=b.doc.createAnchor(y.row,y.column-x.length),this.base.$insertRight=!0;var S=[],u=l.completers.length;return l.completers.forEach(function(g,_){g.getCompletions(l,b,y,x,function(p,C){!p&&C&&(S=S.concat(C)),c(null,{prefix:o.getCompletionPrefix(l),matches:S,finished:--u===0})})}),!0},this.showPopup=function(l,c){this.editor&&this.detach(),this.activated=!0,this.editor=l,l.completer!=this&&(l.completer&&l.completer.detach(),l.completer=this),l.on("changeSelection",this.changeListener),l.on("blur",this.blurListener),l.on("mousedown",this.mousedownListener),l.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,c)},this.updateCompletions=function(l,c){if(l&&this.base&&this.completions){var b=this.editor.getCursorPosition(),y=this.editor.session.getTextRange({start:this.base,end:b});if(y==this.completions.filterText)return;if(this.completions.setFilter(y),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==y&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,y,l);return}if(c&&c.matches){var b=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(b.row,b.column),this.base.$insertRight=!0,this.completions=new s(c.matches),this.openPopup(this.editor,"",l)}var x=this.gatherCompletionsId,S=(function(C){if(C.finished)return this.detach()}).bind(this),u=(function(C){var r=C.prefix,d=C.matches;this.completions=new s(d),this.exactMatch&&(this.completions.exactMatch=!0),this.completions.setFilter(r);var v=this.completions.filtered;if(!v.length||v.length==1&&v[0].value==r&&!v[0].snippet)return S(C);if(this.autoInsert&&v.length==1&&C.finished)return this.insertMatch(v[0]);this.openPopup(this.editor,r,l)}).bind(this),g=!0,_=null;if(this.gatherCompletions(this.editor,(function(C,r){var d=r.prefix,v=r&&r.matches;if(!v||!v.length)return S(r);if(!(d.indexOf(r.prefix)!==0||x!=this.gatherCompletionsId)){if(g){_=r;return}u(r)}}).bind(this)),g=!1,_){var p=_;_=null,u(p)}},this.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},this.updateDocTooltip=function(){var l=this.popup,c=l.data,b=c&&(c[l.getHoveredRow()]||c[l.getRow()]),y=null;if(!b||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();if(this.editor.completers.some(function(x){return x.getDocTooltip&&(y=x.getDocTooltip(b)),y}),!y&&typeof b!="string"&&(y=b),typeof y=="string"&&(y={docText:y}),!y||!y.docHTML&&!y.docText)return this.hideDocTooltip();this.showDocTooltip(y)},this.showDocTooltip=function(l){this.tooltipNode||(this.tooltipNode=t.createElement("div"),this.tooltipNode.className="ace_tooltip ace_doc-tooltip",this.tooltipNode.style.margin=0,this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this));var c=this.tooltipNode;l.docHTML?c.innerHTML=l.docHTML:l.docText&&(c.textContent=l.docText),c.parentNode||document.body.appendChild(c);var b=this.popup,y=b.container.getBoundingClientRect();c.style.top=b.container.style.top,c.style.bottom=b.container.style.bottom,c.style.display="block",window.innerWidth-y.right<320?y.left<320?b.isTopdown?(c.style.top=y.bottom+"px",c.style.left=y.left+"px",c.style.right="",c.style.bottom=""):(c.style.top=b.container.offsetTop-c.offsetHeight+"px",c.style.left=y.left+"px",c.style.right="",c.style.bottom=""):(c.style.right=window.innerWidth-y.left+"px",c.style.left=""):(c.style.left=y.right+1+"px",c.style.right="")},this.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var l=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==l&&this.editor.focus(),this.tooltipNode=null,l.parentNode&&l.parentNode.removeChild(l)}},this.onTooltipClick=function(l){for(var c=l.target;c&&c!=this.tooltipNode;){if(c.nodeName=="A"&&c.href){c.rel="noreferrer",c.target="_blank";break}c=c.parentNode}},this.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var l=this.popup.container;l&&l.parentNode&&l.parentNode.removeChild(l)}this.editor&&this.editor.completer==this&&this.editor.completer==null,this.popup=null}}).call(i.prototype),i.for=function(l){return l.completer||(n.get("sharedPopups")?(i.$shared||(i.$sharedInstance=new i),l.completer=i.$sharedInstance):(l.completer=new i,l.once("destroy",function(c,b){b.completer.destroy()}))),l.completer},i.startCommand={name:"startAutocomplete",exec:function(l,c){var b=i.for(l);b.autoInsert=!1,b.autoSelect=!0,b.showPopup(l,c),b.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var s=function(l,c){this.all=l,this.filtered=l,this.filterText=c||"",this.exactMatch=!1};(function(){this.setFilter=function(l){if(l.length>this.filterText&&l.lastIndexOf(this.filterText,0)===0)var c=this.filtered;else var c=this.all;this.filterText=l,c=this.filterCompletions(c,this.filterText),c=c.sort(function(y,x){return x.exactMatch-y.exactMatch||x.$score-y.$score||(y.caption||y.value).localeCompare(x.caption||x.value)});var b=null;c=c.filter(function(y){var x=y.snippet||y.caption||y.value;return x===b?!1:(b=x,!0)}),this.filtered=c},this.filterCompletions=function(l,c){var b=[],y=c.toUpperCase(),x=c.toLowerCase();e:for(var S=0,u;u=l[S];S++){var g=u.caption||u.value||u.snippet;if(g){var _=-1,p=0,C=0,r,d;if(this.exactMatch){if(c!==g.substr(0,c.length))continue e}else{var v=g.toLowerCase().indexOf(x);if(v>-1)C=v;else for(var A=0;A<c.length;A++){var k=g.indexOf(x[A],_+1),L=g.indexOf(y[A],_+1);if(r=k>=0&&(L<0||k<L)?k:L,r<0)continue e;d=r-_-1,d>0&&(_===-1&&(C+=10),C+=d,p|=1<<A),_=r}}u.matchMask=p,u.exactMatch=C?0:1,u.$score=(u.score||0)-C,b.push(u)}}return b}}).call(s.prototype),$.Autocomplete=i,$.FilteredList=s}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(w,$,T){function f(a,t){var e=a.getTextRange(h.fromPoints({row:0,column:0},t));return e.split(o).length-1}function m(a,t){var e=f(a,t),n=a.getValue().split(o),i=Object.create(null),s=n[e];return n.forEach(function(l,c){if(!(!l||l===s)){var b=Math.abs(e-c),y=n.length-b;i[l]?i[l]=Math.max(y,i[l]):i[l]=y}}),i}var h=w("../range").Range,o=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;$.getCompletions=function(a,t,e,n,i){var s=m(t,e),l=Object.keys(s);i(null,l.map(function(c){return{caption:c,value:c,score:s[c],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],function(w,$,T){var f=w("../snippets").snippetManager,m=w("../autocomplete").Autocomplete,h=w("../config"),o=w("../lib/lang"),a=w("../autocomplete/util"),t=w("../autocomplete/text_completer"),e={getCompletions:function(u,g,_,p,C){if(g.$mode.completer)return g.$mode.completer.getCompletions(u,g,_,p,C);var r=u.session.getState(_.row),d=g.$mode.getCompletions(r,g,_,p);C(null,d)}},n=function(u){var g={};return u.replace(/\${(\d+)(:(.*?))?}/g,function(_,p,C,r){return g[p]=r||""}).replace(/\$(\d+?)/g,function(_,p){return g[p]})},i={getCompletions:function(u,g,_,p,C){var r=[],d=g.getTokenAt(_.row,_.column);d&&d.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?r.push("html-tag"):r=f.getActiveScopes(u);var v=f.snippetMap,A=[];r.forEach(function(k){for(var L=v[k]||[],E=L.length;E--;){var F=L[E],I=F.name||F.tabTrigger;I&&A.push({caption:I,snippet:F.content,meta:F.tabTrigger&&!F.name?F.tabTrigger+"⇥ ":"snippet",type:"snippet"})}},this),C(null,A)},getDocTooltip:function(u){u.type=="snippet"&&!u.docHTML&&(u.docHTML=["<b>",o.escapeHTML(u.caption),"</b>","<hr></hr>",o.escapeHTML(n(u.snippet))].join(""))}},s=[i,t,e];$.setCompleters=function(u){s.length=0,u&&s.push.apply(s,u)},$.addCompleter=function(u){s.push(u)},$.textCompleter=t,$.keyWordCompleter=e,$.snippetCompleter=i;var l={name:"expandSnippet",exec:function(u){return f.expandWithTab(u)},bindKey:"Tab"},c=function(u,g){b(g.session.$mode)},b=function(u){typeof u=="string"&&(u=h.$modes[u]),u&&(f.files||(f.files={}),y(u.$id,u.snippetFileId),u.modes&&u.modes.forEach(b))},y=function(u,g){!g||!u||f.files[u]||(f.files[u]={},h.loadModule(g,function(_){_&&(f.files[u]=_,!_.snippets&&_.snippetText&&(_.snippets=f.parseSnippetFile(_.snippetText)),f.register(_.snippets||[],_.scope),_.includeScopes&&(f.snippetMap[_.scope].includeScopes=_.includeScopes,_.includeScopes.forEach(function(p){b("ace/mode/"+p)})))}))},x=function(u){var g=u.editor,_=g.completer&&g.completer.activated;if(u.command.name==="backspace")_&&!a.getCompletionPrefix(g)&&g.completer.detach();else if(u.command.name==="insertstring"){var p=a.getCompletionPrefix(g);if(p&&!_){var C=m.for(g);C.autoInsert=!1,C.showPopup(g)}}},S=w("../editor").Editor;w("../config").defineOptions(S.prototype,"editor",{enableBasicAutocompletion:{set:function(u){u?(this.completers||(this.completers=Array.isArray(u)?u:s),this.commands.addCommand(m.startCommand)):this.commands.removeCommand(m.startCommand)},value:!1},enableLiveAutocompletion:{set:function(u){u?(this.completers||(this.completers=Array.isArray(u)?u:s),this.commands.on("afterExec",x)):this.commands.removeListener("afterExec",x)},value:!1},enableSnippets:{set:function(u){u?(this.commands.addCommand(l),this.on("changeMode",c),c(null,this)):(this.commands.removeCommand(l),this.off("changeMode",c))},value:!1}})}),function(){ace.require(["ace/ext/language_tools"],function(w){O&&(O.exports=w)})}()})(Qr);var Jr={exports:{}};(function(O,R){ace.define("ace/snippets/python.snippets",["require","exports","module"],function(w,$,T){T.exports=`snippet #!
1089
+ }`,"autocompletion.css",!1),$.AcePopup=i,$.$singleLineEditor=n,$.getAriaId=e}),ace.define("ace/autocomplete/util",["require","exports","module"],function(w,$,T){$.parForEach=function(m,h,o){var a=0,t=m.length;t===0&&o();for(var e=0;e<t;e++)h(m[e],function(n,i){a++,a===t&&o(n,i)})};var f=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;$.retrievePrecedingIdentifier=function(m,h,o){o=o||f;for(var a=[],t=h-1;t>=0&&o.test(m[t]);t--)a.push(m[t]);return a.reverse().join("")},$.retrieveFollowingIdentifier=function(m,h,o){o=o||f;for(var a=[],t=h;t<m.length&&o.test(m[t]);t++)a.push(m[t]);return a},$.getCompletionPrefix=function(m){var h=m.getCursorPosition(),o=m.session.getLine(h.row),a;return m.completers.forEach((function(t){t.identifierRegexps&&t.identifierRegexps.forEach((function(e){!a&&e&&(a=this.retrievePrecedingIdentifier(o,h.column,e))}).bind(this))}).bind(this)),a||this.retrievePrecedingIdentifier(o,h.column)}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config"],function(w,$,T){var f=w("./keyboard/hash_handler").HashHandler,m=w("./autocomplete/popup").AcePopup,h=w("./autocomplete/popup").getAriaId,o=w("./autocomplete/util"),a=w("./lib/lang"),t=w("./lib/dom"),e=w("./snippets").snippetManager,n=w("./config"),i=function(){this.autoInsert=!1,this.autoSelect=!0,this.exactMatch=!1,this.gatherCompletionsId=0,this.keyboardHandler=new f,this.keyboardHandler.bindKeys(this.commands),this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.changeTimer=a.delayedCall((function(){this.updateCompletions(!0)}).bind(this)),this.tooltipTimer=a.delayedCall(this.updateDocTooltip.bind(this),50)};(function(){this.$init=function(){return this.popup=new m(document.body||document.documentElement),this.popup.on("click",(function(l){this.insertMatch(),l.stop()}).bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.tooltipTimer.bind(null,null)),this.popup.on("select",this.tooltipTimer.bind(null,null)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup},this.getPopup=function(){return this.popup||this.$init()},this.openPopup=function(l,c,b){this.popup||this.$init(),this.popup.autoSelect=this.autoSelect,this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:h(this.popup.getRow())}),l.keyBinding.addKeyboardHandler(this.keyboardHandler);var y=l.renderer;if(this.popup.setRow(this.autoSelect?0:-1),b)b&&!c&&this.detach();else{this.popup.setTheme(l.getTheme()),this.popup.setFontSize(l.getFontSize());var x=y.layerConfig.lineHeight,S=y.$cursorLayer.getPixelPosition(this.base,!0);S.left-=this.popup.getTextLeftOffset();var u=l.container.getBoundingClientRect();S.top+=u.top-y.layerConfig.offset,S.left+=u.left-l.renderer.scrollLeft,S.left+=y.gutterWidth,this.popup.show(S,x)}this.changeTimer.cancel()},this.detach=function(){this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener),this.changeTimer.cancel(),this.hideDocTooltip(),this.gatherCompletionsId+=1,this.popup&&this.popup.isOpen&&this.popup.hide(),this.base&&this.base.detach(),this.activated=!1,this.completions=this.base=null},this.changeListener=function(l){var c=this.editor.selection.lead;(c.row!=this.base.row||c.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},this.blurListener=function(l){var c=document.activeElement,b=this.editor.textInput.getElement(),y=l.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(l.relatedTarget),x=this.popup&&this.popup.container;c!=b&&c.parentNode!=x&&!y&&c!=this.tooltipNode&&l.relatedTarget!=b&&this.detach()},this.mousedownListener=function(l){this.detach()},this.mousewheelListener=function(l){this.detach()},this.goTo=function(l){this.popup.goTo(l)},this.insertMatch=function(l,c){if(l||(l=this.popup.getData(this.popup.getRow())),!l)return!1;var b=this.completions;if(this.editor.startOperation({command:{name:"insertMatch"}}),l.completer&&l.completer.insertMatch)l.completer.insertMatch(this.editor,l);else{if(!b)return!1;if(b.filterText)for(var y=this.editor.selection.getAllRanges(),x=0,S;S=y[x];x++)S.start.column-=b.filterText.length,this.editor.session.remove(S);l.snippet?e.insertSnippet(this.editor,l.snippet):this.editor.execCommand("insertstring",l.value||l)}this.completions==b&&this.detach(),this.editor.endOperation()},this.commands={Up:function(l){l.completer.goTo("up")},Down:function(l){l.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(l){l.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(l){l.completer.goTo("end")},Esc:function(l){l.completer.detach()},Return:function(l){return l.completer.insertMatch()},"Shift-Return":function(l){l.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(l){var c=l.completer.insertMatch();if(c||l.tabstopManager)return c;l.completer.goTo("down")},PageUp:function(l){l.completer.popup.gotoPageUp()},PageDown:function(l){l.completer.popup.gotoPageDown()}},this.gatherCompletions=function(l,c){var b=l.getSession(),y=l.getCursorPosition(),x=o.getCompletionPrefix(l);this.base=b.doc.createAnchor(y.row,y.column-x.length),this.base.$insertRight=!0;var S=[],u=l.completers.length;return l.completers.forEach(function(g,_){g.getCompletions(l,b,y,x,function(p,C){!p&&C&&(S=S.concat(C)),c(null,{prefix:o.getCompletionPrefix(l),matches:S,finished:--u===0})})}),!0},this.showPopup=function(l,c){this.editor&&this.detach(),this.activated=!0,this.editor=l,l.completer!=this&&(l.completer&&l.completer.detach(),l.completer=this),l.on("changeSelection",this.changeListener),l.on("blur",this.blurListener),l.on("mousedown",this.mousedownListener),l.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,c)},this.updateCompletions=function(l,c){if(l&&this.base&&this.completions){var b=this.editor.getCursorPosition(),y=this.editor.session.getTextRange({start:this.base,end:b});if(y==this.completions.filterText)return;if(this.completions.setFilter(y),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==y&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,y,l);return}if(c&&c.matches){var b=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(b.row,b.column),this.base.$insertRight=!0,this.completions=new s(c.matches),this.openPopup(this.editor,"",l)}var x=this.gatherCompletionsId,S=(function(C){if(C.finished)return this.detach()}).bind(this),u=(function(C){var r=C.prefix,d=C.matches;this.completions=new s(d),this.exactMatch&&(this.completions.exactMatch=!0),this.completions.setFilter(r);var v=this.completions.filtered;if(!v.length||v.length==1&&v[0].value==r&&!v[0].snippet)return S(C);if(this.autoInsert&&v.length==1&&C.finished)return this.insertMatch(v[0]);this.openPopup(this.editor,r,l)}).bind(this),g=!0,_=null;if(this.gatherCompletions(this.editor,(function(C,r){var d=r.prefix,v=r&&r.matches;if(!v||!v.length)return S(r);if(!(d.indexOf(r.prefix)!==0||x!=this.gatherCompletionsId)){if(g){_=r;return}u(r)}}).bind(this)),g=!1,_){var p=_;_=null,u(p)}},this.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},this.updateDocTooltip=function(){var l=this.popup,c=l.data,b=c&&(c[l.getHoveredRow()]||c[l.getRow()]),y=null;if(!b||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();if(this.editor.completers.some(function(x){return x.getDocTooltip&&(y=x.getDocTooltip(b)),y}),!y&&typeof b!="string"&&(y=b),typeof y=="string"&&(y={docText:y}),!y||!y.docHTML&&!y.docText)return this.hideDocTooltip();this.showDocTooltip(y)},this.showDocTooltip=function(l){this.tooltipNode||(this.tooltipNode=t.createElement("div"),this.tooltipNode.className="ace_tooltip ace_doc-tooltip",this.tooltipNode.style.margin=0,this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this));var c=this.tooltipNode;l.docHTML?c.innerHTML=l.docHTML:l.docText&&(c.textContent=l.docText),c.parentNode||document.body.appendChild(c);var b=this.popup,y=b.container.getBoundingClientRect();c.style.top=b.container.style.top,c.style.bottom=b.container.style.bottom,c.style.display="block",window.innerWidth-y.right<320?y.left<320?b.isTopdown?(c.style.top=y.bottom+"px",c.style.left=y.left+"px",c.style.right="",c.style.bottom=""):(c.style.top=b.container.offsetTop-c.offsetHeight+"px",c.style.left=y.left+"px",c.style.right="",c.style.bottom=""):(c.style.right=window.innerWidth-y.left+"px",c.style.left=""):(c.style.left=y.right+1+"px",c.style.right="")},this.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var l=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==l&&this.editor.focus(),this.tooltipNode=null,l.parentNode&&l.parentNode.removeChild(l)}},this.onTooltipClick=function(l){for(var c=l.target;c&&c!=this.tooltipNode;){if(c.nodeName=="A"&&c.href){c.rel="noreferrer",c.target="_blank";break}c=c.parentNode}},this.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var l=this.popup.container;l&&l.parentNode&&l.parentNode.removeChild(l)}this.editor&&this.editor.completer==this&&this.editor.completer==null,this.popup=null}}).call(i.prototype),i.for=function(l){return l.completer||(n.get("sharedPopups")?(i.$shared||(i.$sharedInstance=new i),l.completer=i.$sharedInstance):(l.completer=new i,l.once("destroy",function(c,b){b.completer.destroy()}))),l.completer},i.startCommand={name:"startAutocomplete",exec:function(l,c){var b=i.for(l);b.autoInsert=!1,b.autoSelect=!0,b.showPopup(l,c),b.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var s=function(l,c){this.all=l,this.filtered=l,this.filterText=c||"",this.exactMatch=!1};(function(){this.setFilter=function(l){if(l.length>this.filterText&&l.lastIndexOf(this.filterText,0)===0)var c=this.filtered;else var c=this.all;this.filterText=l,c=this.filterCompletions(c,this.filterText),c=c.sort(function(y,x){return x.exactMatch-y.exactMatch||x.$score-y.$score||(y.caption||y.value).localeCompare(x.caption||x.value)});var b=null;c=c.filter(function(y){var x=y.snippet||y.caption||y.value;return x===b?!1:(b=x,!0)}),this.filtered=c},this.filterCompletions=function(l,c){var b=[],y=c.toUpperCase(),x=c.toLowerCase();e:for(var S=0,u;u=l[S];S++){var g=u.caption||u.value||u.snippet;if(g){var _=-1,p=0,C=0,r,d;if(this.exactMatch){if(c!==g.substr(0,c.length))continue e}else{var v=g.toLowerCase().indexOf(x);if(v>-1)C=v;else for(var A=0;A<c.length;A++){var k=g.indexOf(x[A],_+1),L=g.indexOf(y[A],_+1);if(r=k>=0&&(L<0||k<L)?k:L,r<0)continue e;d=r-_-1,d>0&&(_===-1&&(C+=10),C+=d,p|=1<<A),_=r}}u.matchMask=p,u.exactMatch=C?0:1,u.$score=(u.score||0)-C,b.push(u)}}return b}}).call(s.prototype),$.Autocomplete=i,$.FilteredList=s}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(w,$,T){function f(a,t){var e=a.getTextRange(h.fromPoints({row:0,column:0},t));return e.split(o).length-1}function m(a,t){var e=f(a,t),n=a.getValue().split(o),i=Object.create(null),s=n[e];return n.forEach(function(l,c){if(!(!l||l===s)){var b=Math.abs(e-c),y=n.length-b;i[l]?i[l]=Math.max(y,i[l]):i[l]=y}}),i}var h=w("../range").Range,o=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;$.getCompletions=function(a,t,e,n,i){var s=m(t,e),l=Object.keys(s);i(null,l.map(function(c){return{caption:c,value:c,score:s[c],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],function(w,$,T){var f=w("../snippets").snippetManager,m=w("../autocomplete").Autocomplete,h=w("../config"),o=w("../lib/lang"),a=w("../autocomplete/util"),t=w("../autocomplete/text_completer"),e={getCompletions:function(u,g,_,p,C){if(g.$mode.completer)return g.$mode.completer.getCompletions(u,g,_,p,C);var r=u.session.getState(_.row),d=g.$mode.getCompletions(r,g,_,p);C(null,d)}},n=function(u){var g={};return u.replace(/\${(\d+)(:(.*?))?}/g,function(_,p,C,r){return g[p]=r||""}).replace(/\$(\d+?)/g,function(_,p){return g[p]})},i={getCompletions:function(u,g,_,p,C){var r=[],d=g.getTokenAt(_.row,_.column);d&&d.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?r.push("html-tag"):r=f.getActiveScopes(u);var v=f.snippetMap,A=[];r.forEach(function(k){for(var L=v[k]||[],E=L.length;E--;){var F=L[E],I=F.name||F.tabTrigger;I&&A.push({caption:I,snippet:F.content,meta:F.tabTrigger&&!F.name?F.tabTrigger+"⇥ ":"snippet",type:"snippet"})}},this),C(null,A)},getDocTooltip:function(u){u.type=="snippet"&&!u.docHTML&&(u.docHTML=["<b>",o.escapeHTML(u.caption),"</b>","<hr></hr>",o.escapeHTML(n(u.snippet))].join(""))}},s=[i,t,e];$.setCompleters=function(u){s.length=0,u&&s.push.apply(s,u)},$.addCompleter=function(u){s.push(u)},$.textCompleter=t,$.keyWordCompleter=e,$.snippetCompleter=i;var l={name:"expandSnippet",exec:function(u){return f.expandWithTab(u)},bindKey:"Tab"},c=function(u,g){b(g.session.$mode)},b=function(u){typeof u=="string"&&(u=h.$modes[u]),u&&(f.files||(f.files={}),y(u.$id,u.snippetFileId),u.modes&&u.modes.forEach(b))},y=function(u,g){!g||!u||f.files[u]||(f.files[u]={},h.loadModule(g,function(_){_&&(f.files[u]=_,!_.snippets&&_.snippetText&&(_.snippets=f.parseSnippetFile(_.snippetText)),f.register(_.snippets||[],_.scope),_.includeScopes&&(f.snippetMap[_.scope].includeScopes=_.includeScopes,_.includeScopes.forEach(function(p){b("ace/mode/"+p)})))}))},x=function(u){var g=u.editor,_=g.completer&&g.completer.activated;if(u.command.name==="backspace")_&&!a.getCompletionPrefix(g)&&g.completer.detach();else if(u.command.name==="insertstring"){var p=a.getCompletionPrefix(g);if(p&&!_){var C=m.for(g);C.autoInsert=!1,C.showPopup(g)}}},S=w("../editor").Editor;w("../config").defineOptions(S.prototype,"editor",{enableBasicAutocompletion:{set:function(u){u?(this.completers||(this.completers=Array.isArray(u)?u:s),this.commands.addCommand(m.startCommand)):this.commands.removeCommand(m.startCommand)},value:!1},enableLiveAutocompletion:{set:function(u){u?(this.completers||(this.completers=Array.isArray(u)?u:s),this.commands.on("afterExec",x)):this.commands.removeListener("afterExec",x)},value:!1},enableSnippets:{set:function(u){u?(this.commands.addCommand(l),this.on("changeMode",c),c(null,this)):(this.commands.removeCommand(l),this.off("changeMode",c))},value:!1}})}),function(){ace.require(["ace/ext/language_tools"],function(w){O&&(O.exports=w)})}()})(Xr);var Qr={exports:{}};(function(O,R){ace.define("ace/snippets/python.snippets",["require","exports","module"],function(w,$,T){T.exports=`snippet #!
1090
1090
  #!/usr/bin/env python
1091
1091
  snippet imp
1092
1092
  import \${1:module}
@@ -1244,7 +1244,7 @@ snippet getopt
1244
1244
  \${4}
1245
1245
  elif option in ("-v", "--verbose"):
1246
1246
  verbose = argument
1247
- `}),ace.define("ace/snippets/python",["require","exports","module","ace/snippets/python.snippets"],function(w,$,T){$.snippetText=w("./python.snippets"),$.scope="python"}),function(){ace.require(["ace/snippets/python"],function(w){O&&(O.exports=w)})}()})(Jr);var Zr={exports:{}};(function(O,R){ace.define("ace/ext/searchbox.css",["require","exports","module"],function(w,$,T){T.exports=`
1247
+ `}),ace.define("ace/snippets/python",["require","exports","module","ace/snippets/python.snippets"],function(w,$,T){$.snippetText=w("./python.snippets"),$.scope="python"}),function(){ace.require(["ace/snippets/python"],function(w){O&&(O.exports=w)})}()})(Qr);var Jr={exports:{}};(function(O,R){ace.define("ace/ext/searchbox.css",["require","exports","module"],function(w,$,T){T.exports=`
1248
1248
 
1249
1249
  /* ------------------------------------------------------------------------------------------
1250
1250
  * Editor Search Form
@@ -1405,4 +1405,4 @@ snippet getopt
1405
1405
  float: left;
1406
1406
  font-family: arial;
1407
1407
  padding: 0 8px;
1408
- }`}),ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/ext/searchbox.css","ace/keyboard/hash_handler","ace/lib/keys"],function(w,$,T){var f=w("../lib/dom"),m=w("../lib/lang"),h=w("../lib/event"),o=w("./searchbox.css"),a=w("../keyboard/hash_handler").HashHandler,t=w("../lib/keys"),e=999;f.importCssString(o,"ace_searchbox",!1);var n=function(i,s,l){var c=f.createElement("div");f.buildDom(["div",{class:"ace_search right"},["span",{action:"hide",class:"ace_searchbtn_close"}],["div",{class:"ace_search_form"},["input",{class:"ace_search_field",placeholder:"Search for",spellcheck:"false"}],["span",{action:"findPrev",class:"ace_searchbtn prev"},"​"],["span",{action:"findNext",class:"ace_searchbtn next"},"​"],["span",{action:"findAll",class:"ace_searchbtn",title:"Alt-Enter"},"All"]],["div",{class:"ace_replace_form"},["input",{class:"ace_search_field",placeholder:"Replace with",spellcheck:"false"}],["span",{action:"replaceAndFindNext",class:"ace_searchbtn"},"Replace"],["span",{action:"replaceAll",class:"ace_searchbtn"},"All"]],["div",{class:"ace_search_options"},["span",{action:"toggleReplace",class:"ace_button",title:"Toggle Replace mode",style:"float:left;margin-top:-2px;padding:0 5px;"},"+"],["span",{class:"ace_search_counter"}],["span",{action:"toggleRegexpMode",class:"ace_button",title:"RegExp Search"},".*"],["span",{action:"toggleCaseSensitive",class:"ace_button",title:"CaseSensitive Search"},"Aa"],["span",{action:"toggleWholeWords",class:"ace_button",title:"Whole Word Search"},"\\b"],["span",{action:"searchInSelection",class:"ace_button",title:"Search In Selection"},"S"]]],c),this.element=c.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(i),f.importCssString(o,"ace_searchbox",i.container)};(function(){this.setEditor=function(i){i.searchBox=this,i.renderer.scroller.appendChild(this.element),this.editor=i},this.setSession=function(i){this.searchRange=null,this.$syncOptions(!0)},this.$initElements=function(i){this.searchBox=i.querySelector(".ace_search_form"),this.replaceBox=i.querySelector(".ace_replace_form"),this.searchOption=i.querySelector("[action=searchInSelection]"),this.replaceOption=i.querySelector("[action=toggleReplace]"),this.regExpOption=i.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=i.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=i.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=i.querySelector(".ace_search_counter")},this.$init=function(){var i=this.element;this.$initElements(i);var s=this;h.addListener(i,"mousedown",function(l){setTimeout(function(){s.activeInput.focus()},0),h.stopPropagation(l)}),h.addListener(i,"click",function(l){var c=l.target||l.srcElement,b=c.getAttribute("action");b&&s[b]?s[b]():s.$searchBarKb.commands[b]&&s.$searchBarKb.commands[b].exec(s),h.stopPropagation(l)}),h.addCommandKeyListener(i,function(l,c,b){var y=t.keyCodeToString(b),x=s.$searchBarKb.findKeyCommand(c,y);x&&x.exec&&(x.exec(s),h.stopEvent(l))}),this.$onChange=m.delayedCall(function(){s.find(!1,!1)}),h.addListener(this.searchInput,"input",function(){s.$onChange.schedule(20)}),h.addListener(this.searchInput,"focus",function(){s.activeInput=s.searchInput,s.searchInput.value&&s.highlight()}),h.addListener(this.replaceInput,"focus",function(){s.activeInput=s.replaceInput,s.searchInput.value&&s.highlight()})},this.$closeSearchBarKb=new a([{bindKey:"Esc",name:"closeSearchBar",exec:function(i){i.searchBox.hide()}}]),this.$searchBarKb=new a,this.$searchBarKb.bindKeys({"Ctrl-f|Command-f":function(i){var s=i.isReplace=!i.isReplace;i.replaceBox.style.display=s?"":"none",i.replaceOption.checked=!1,i.$syncOptions(),i.searchInput.focus()},"Ctrl-H|Command-Option-F":function(i){i.editor.getReadOnly()||(i.replaceOption.checked=!0,i.$syncOptions(),i.replaceInput.focus())},"Ctrl-G|Command-G":function(i){i.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(i){i.findPrev()},esc:function(i){setTimeout(function(){i.hide()})},Return:function(i){i.activeInput==i.replaceInput&&i.replace(),i.findNext()},"Shift-Return":function(i){i.activeInput==i.replaceInput&&i.replace(),i.findPrev()},"Alt-Return":function(i){i.activeInput==i.replaceInput&&i.replaceAll(),i.findAll()},Tab:function(i){(i.activeInput==i.replaceInput?i.searchInput:i.replaceInput).focus()}}),this.$searchBarKb.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(i){i.regExpOption.checked=!i.regExpOption.checked,i.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(i){i.caseSensitiveOption.checked=!i.caseSensitiveOption.checked,i.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(i){i.wholeWordOption.checked=!i.wholeWordOption.checked,i.$syncOptions()}},{name:"toggleReplace",exec:function(i){i.replaceOption.checked=!i.replaceOption.checked,i.$syncOptions()}},{name:"searchInSelection",exec:function(i){i.searchOption.checked=!i.searchRange,i.setSearchRange(i.searchOption.checked&&i.editor.getSelectionRange()),i.$syncOptions()}}]),this.setSearchRange=function(i){this.searchRange=i,i?this.searchRangeMarker=this.editor.session.addMarker(i,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},this.$syncOptions=function(i){f.setCssClass(this.replaceOption,"checked",this.searchRange),f.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",f.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),f.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),f.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var s=this.editor.getReadOnly();this.replaceOption.style.display=s?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!s?"":"none",this.find(!1,!1,i)},this.highlight=function(i){this.editor.session.highlight(i||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},this.find=function(i,s,l){var c=this.editor.find(this.searchInput.value,{skipCurrent:i,backwards:s,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:l,range:this.searchRange}),b=!c&&this.searchInput.value;f.setCssClass(this.searchBox,"ace_nomatch",b),this.editor._emit("findSearchBox",{match:!b}),this.highlight(),this.updateCounter()},this.updateCounter=function(){var i=this.editor,s=i.$search.$options.re,l=0,c=0;if(s){var b=this.searchRange?i.session.getTextRange(this.searchRange):i.getValue(),y=i.session.doc.positionToIndex(i.selection.anchor);this.searchRange&&(y-=i.session.doc.positionToIndex(this.searchRange.start));for(var x=s.lastIndex=0,S;(S=s.exec(b))&&(l++,x=S.index,x<=y&&c++,!(l>e||!S[0]&&(s.lastIndex=x+=1,x>=b.length))););}this.searchCounter.textContent=c+" of "+(l>e?e+"+":l)},this.findNext=function(){this.find(!0,!1)},this.findPrev=function(){this.find(!0,!0)},this.findAll=function(){var i=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),s=!i&&this.searchInput.value;f.setCssClass(this.searchBox,"ace_nomatch",s),this.editor._emit("findSearchBox",{match:!s}),this.highlight(),this.hide()},this.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},this.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},this.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},this.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},this.show=function(i,s){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=s,i&&(this.searchInput.value=i),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},this.isFocused=function(){var i=document.activeElement;return i==this.searchInput||i==this.replaceInput}}).call(n.prototype),$.SearchBox=n,$.Search=function(i,s){var l=i.searchBox||new n(i);l.show(i.session.getTextRange(),s)}}),function(){ace.require(["ace/ext/searchbox"],function(w){O&&(O.exports=w)})}()})(Zr);var qr={exports:{}};(function(O,R){ace.define("ace/ext/statusbar",["require","exports","module","ace/lib/dom","ace/lib/lang"],function(w,$,T){var f=w("../lib/dom"),m=w("../lib/lang"),h=function(o,a){this.element=f.createElement("div"),this.element.className="ace_status-indicator",this.element.style.cssText="display: inline-block;",a.appendChild(this.element);var t=m.delayedCall((function(){this.updateStatus(o)}).bind(this)).schedule.bind(null,100);o.on("changeStatus",t),o.on("changeSelection",t),o.on("keyboardActivity",t)};(function(){this.updateStatus=function(o){function a(s,l){s&&t.push(s,l||"|")}var t=[];a(o.keyBinding.getStatusText(o)),o.commands.recording&&a("REC");var e=o.selection,n=e.lead;if(!e.isEmpty()){var i=o.getSelectionRange();a("("+(i.end.row-i.start.row)+":"+(i.end.column-i.start.column)+")"," ")}a(n.row+":"+n.column," "),e.rangeCount&&a("["+e.rangeCount+"]"," "),t.pop(),this.element.textContent=t.join("")}}).call(h.prototype),$.StatusBar=h}),function(){ace.require(["ace/ext/statusbar"],function(w){O&&(O.exports=w)})}()})(qr);function es(O){return ye.jsxs(ye.Fragment,{children:[ye.jsx("div",{className:"title-wrap",children:O.title}),O.dirty&&"*",O.dirty&&ye.jsx(_i,{title:"File Modified",message:"This file has been modified, are you sure you want to close without saving?",children:R=>ye.jsx(tn,{size:"sm",className:"ms-1",onClick:R(O.close),children:ye.jsx("i",{className:"fa fa-times"})})}),!O.dirty&&ye.jsx(tn,{size:"sm",className:"ms-1",onClick:O.close,children:ye.jsx("i",{className:"fa fa-times"})})]})}function ts(O){const{name:R,setDirty:w,file:$}=O,[T,f]=Me.useState($.contents),[m,h]=Me.useState({width:"",height:""}),o=Me.useRef(T),a={yml:"yaml",py:"python"},t=Me.useCallback(i=>{o.current=i,w(i!==$.contents),f(i)},[w,$]),e=i=>{var l,c;const s=(c=(l=i==null?void 0:i.refEditor)==null?void 0:l.parentNode)==null?void 0:c.parentNode;if(s&&!m.width){const b=s;if(!b.clientWidth||!b.clientHeight){console.error("No client size defined");return}h({width:`${b.clientWidth}px`,height:`${b.clientHeight}px`})}},n=Me.useCallback(()=>{O.save({path:$.path,contents:o.current}).then(()=>{w(!1)})},[o,$]);return ye.jsx(Kr,{ref:i=>e(i),width:m.width,height:m.height,mode:a[$.ext],theme:"monokai",value:T,onChange:t,name:R,editorProps:{$blockScrolling:!0},enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,commands:[{name:"save",bindKey:{win:"Ctrl-S",mac:"Command-S"},exec:n}]})}function Cn(O){const{files:R,selectedFile:w="",actions:$}=O,[T,f]=Me.useState({});return Me.useEffect(()=>{if(!(w in R)){const m=rt.values(R);rt.values(m).length>0&&setTimeout(()=>{O.actions.selectFile(m[m.length-1].path)},200)}},[R,w,$]),ye.jsxs($i,{className:"editor",children:[O.error&&ye.jsxs(Si,{variant:"danger",children:[ye.jsx("i",{className:"fa fa-warning"})," Could not open file",ye.jsx("div",{className:"description",children:O.error})]}),rt.values(O.files).length===0&&ye.jsx("p",{children:"Select a file from the tree to edit it"}),rt.values(O.files).length>0&&ye.jsx(Ci,{activeKey:O.selectedFile,onSelect:m=>O.actions.selectFile(m),transition:!1,children:rt.map(O.files,(m,h)=>ye.jsx(Ai,{title:ye.jsx(es,{title:h,close:()=>O.actions.closeFile(h),dirty:T[h]}),eventKey:h,children:ye.jsx(ts,{name:h,file:m,save:O.actions.updateFile,setDirty:o=>f({...T,[h]:o})})},h.replace("/","")))})]})}Cn.defaultProps={selectedFile:void 0,error:void 0};function ns(O,R){const{providers:w}=R;return{selectedFile:Ot.selector("selectedFile",O),files:w.editor.files.selector("results",O),error:w.editor.files.selector("error",O)}}function is(O,R){return{actions:{selectFile:w=>Ot.dispatch("SELECT_FILE",w),updateFile:w=>R.providers.editor.files.update(w),closeFile:w=>R.providers.editor.files.deleteLocal(w)}}}const rs=xi({editor:Ot})(ki(ns,is)(Cn));function os(O){const{providers:R,yamlNode:w,...$}=O;return Li(w,$),ye.jsx(rs,{providers:R})}export{os as default};
1408
+ }`}),ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/ext/searchbox.css","ace/keyboard/hash_handler","ace/lib/keys"],function(w,$,T){var f=w("../lib/dom"),m=w("../lib/lang"),h=w("../lib/event"),o=w("./searchbox.css"),a=w("../keyboard/hash_handler").HashHandler,t=w("../lib/keys"),e=999;f.importCssString(o,"ace_searchbox",!1);var n=function(i,s,l){var c=f.createElement("div");f.buildDom(["div",{class:"ace_search right"},["span",{action:"hide",class:"ace_searchbtn_close"}],["div",{class:"ace_search_form"},["input",{class:"ace_search_field",placeholder:"Search for",spellcheck:"false"}],["span",{action:"findPrev",class:"ace_searchbtn prev"},"​"],["span",{action:"findNext",class:"ace_searchbtn next"},"​"],["span",{action:"findAll",class:"ace_searchbtn",title:"Alt-Enter"},"All"]],["div",{class:"ace_replace_form"},["input",{class:"ace_search_field",placeholder:"Replace with",spellcheck:"false"}],["span",{action:"replaceAndFindNext",class:"ace_searchbtn"},"Replace"],["span",{action:"replaceAll",class:"ace_searchbtn"},"All"]],["div",{class:"ace_search_options"},["span",{action:"toggleReplace",class:"ace_button",title:"Toggle Replace mode",style:"float:left;margin-top:-2px;padding:0 5px;"},"+"],["span",{class:"ace_search_counter"}],["span",{action:"toggleRegexpMode",class:"ace_button",title:"RegExp Search"},".*"],["span",{action:"toggleCaseSensitive",class:"ace_button",title:"CaseSensitive Search"},"Aa"],["span",{action:"toggleWholeWords",class:"ace_button",title:"Whole Word Search"},"\\b"],["span",{action:"searchInSelection",class:"ace_button",title:"Search In Selection"},"S"]]],c),this.element=c.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(i),f.importCssString(o,"ace_searchbox",i.container)};(function(){this.setEditor=function(i){i.searchBox=this,i.renderer.scroller.appendChild(this.element),this.editor=i},this.setSession=function(i){this.searchRange=null,this.$syncOptions(!0)},this.$initElements=function(i){this.searchBox=i.querySelector(".ace_search_form"),this.replaceBox=i.querySelector(".ace_replace_form"),this.searchOption=i.querySelector("[action=searchInSelection]"),this.replaceOption=i.querySelector("[action=toggleReplace]"),this.regExpOption=i.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=i.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=i.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=i.querySelector(".ace_search_counter")},this.$init=function(){var i=this.element;this.$initElements(i);var s=this;h.addListener(i,"mousedown",function(l){setTimeout(function(){s.activeInput.focus()},0),h.stopPropagation(l)}),h.addListener(i,"click",function(l){var c=l.target||l.srcElement,b=c.getAttribute("action");b&&s[b]?s[b]():s.$searchBarKb.commands[b]&&s.$searchBarKb.commands[b].exec(s),h.stopPropagation(l)}),h.addCommandKeyListener(i,function(l,c,b){var y=t.keyCodeToString(b),x=s.$searchBarKb.findKeyCommand(c,y);x&&x.exec&&(x.exec(s),h.stopEvent(l))}),this.$onChange=m.delayedCall(function(){s.find(!1,!1)}),h.addListener(this.searchInput,"input",function(){s.$onChange.schedule(20)}),h.addListener(this.searchInput,"focus",function(){s.activeInput=s.searchInput,s.searchInput.value&&s.highlight()}),h.addListener(this.replaceInput,"focus",function(){s.activeInput=s.replaceInput,s.searchInput.value&&s.highlight()})},this.$closeSearchBarKb=new a([{bindKey:"Esc",name:"closeSearchBar",exec:function(i){i.searchBox.hide()}}]),this.$searchBarKb=new a,this.$searchBarKb.bindKeys({"Ctrl-f|Command-f":function(i){var s=i.isReplace=!i.isReplace;i.replaceBox.style.display=s?"":"none",i.replaceOption.checked=!1,i.$syncOptions(),i.searchInput.focus()},"Ctrl-H|Command-Option-F":function(i){i.editor.getReadOnly()||(i.replaceOption.checked=!0,i.$syncOptions(),i.replaceInput.focus())},"Ctrl-G|Command-G":function(i){i.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(i){i.findPrev()},esc:function(i){setTimeout(function(){i.hide()})},Return:function(i){i.activeInput==i.replaceInput&&i.replace(),i.findNext()},"Shift-Return":function(i){i.activeInput==i.replaceInput&&i.replace(),i.findPrev()},"Alt-Return":function(i){i.activeInput==i.replaceInput&&i.replaceAll(),i.findAll()},Tab:function(i){(i.activeInput==i.replaceInput?i.searchInput:i.replaceInput).focus()}}),this.$searchBarKb.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(i){i.regExpOption.checked=!i.regExpOption.checked,i.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(i){i.caseSensitiveOption.checked=!i.caseSensitiveOption.checked,i.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(i){i.wholeWordOption.checked=!i.wholeWordOption.checked,i.$syncOptions()}},{name:"toggleReplace",exec:function(i){i.replaceOption.checked=!i.replaceOption.checked,i.$syncOptions()}},{name:"searchInSelection",exec:function(i){i.searchOption.checked=!i.searchRange,i.setSearchRange(i.searchOption.checked&&i.editor.getSelectionRange()),i.$syncOptions()}}]),this.setSearchRange=function(i){this.searchRange=i,i?this.searchRangeMarker=this.editor.session.addMarker(i,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},this.$syncOptions=function(i){f.setCssClass(this.replaceOption,"checked",this.searchRange),f.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",f.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),f.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),f.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var s=this.editor.getReadOnly();this.replaceOption.style.display=s?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!s?"":"none",this.find(!1,!1,i)},this.highlight=function(i){this.editor.session.highlight(i||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},this.find=function(i,s,l){var c=this.editor.find(this.searchInput.value,{skipCurrent:i,backwards:s,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:l,range:this.searchRange}),b=!c&&this.searchInput.value;f.setCssClass(this.searchBox,"ace_nomatch",b),this.editor._emit("findSearchBox",{match:!b}),this.highlight(),this.updateCounter()},this.updateCounter=function(){var i=this.editor,s=i.$search.$options.re,l=0,c=0;if(s){var b=this.searchRange?i.session.getTextRange(this.searchRange):i.getValue(),y=i.session.doc.positionToIndex(i.selection.anchor);this.searchRange&&(y-=i.session.doc.positionToIndex(this.searchRange.start));for(var x=s.lastIndex=0,S;(S=s.exec(b))&&(l++,x=S.index,x<=y&&c++,!(l>e||!S[0]&&(s.lastIndex=x+=1,x>=b.length))););}this.searchCounter.textContent=c+" of "+(l>e?e+"+":l)},this.findNext=function(){this.find(!0,!1)},this.findPrev=function(){this.find(!0,!0)},this.findAll=function(){var i=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),s=!i&&this.searchInput.value;f.setCssClass(this.searchBox,"ace_nomatch",s),this.editor._emit("findSearchBox",{match:!s}),this.highlight(),this.hide()},this.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},this.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},this.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},this.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},this.show=function(i,s){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=s,i&&(this.searchInput.value=i),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},this.isFocused=function(){var i=document.activeElement;return i==this.searchInput||i==this.replaceInput}}).call(n.prototype),$.SearchBox=n,$.Search=function(i,s){var l=i.searchBox||new n(i);l.show(i.session.getTextRange(),s)}}),function(){ace.require(["ace/ext/searchbox"],function(w){O&&(O.exports=w)})}()})(Jr);var Zr={exports:{}};(function(O,R){ace.define("ace/ext/statusbar",["require","exports","module","ace/lib/dom","ace/lib/lang"],function(w,$,T){var f=w("../lib/dom"),m=w("../lib/lang"),h=function(o,a){this.element=f.createElement("div"),this.element.className="ace_status-indicator",this.element.style.cssText="display: inline-block;",a.appendChild(this.element);var t=m.delayedCall((function(){this.updateStatus(o)}).bind(this)).schedule.bind(null,100);o.on("changeStatus",t),o.on("changeSelection",t),o.on("keyboardActivity",t)};(function(){this.updateStatus=function(o){function a(s,l){s&&t.push(s,l||"|")}var t=[];a(o.keyBinding.getStatusText(o)),o.commands.recording&&a("REC");var e=o.selection,n=e.lead;if(!e.isEmpty()){var i=o.getSelectionRange();a("("+(i.end.row-i.start.row)+":"+(i.end.column-i.start.column)+")"," ")}a(n.row+":"+n.column," "),e.rangeCount&&a("["+e.rangeCount+"]"," "),t.pop(),this.element.textContent=t.join("")}}).call(h.prototype),$.StatusBar=h}),function(){ace.require(["ace/ext/statusbar"],function(w){O&&(O.exports=w)})}()})(Zr);function qr(O){return ye.jsxs(ye.Fragment,{children:[ye.jsx("div",{className:"title-wrap",children:O.title}),O.dirty&&"*",O.dirty&&ye.jsx(Ai,{title:"File Modified",message:"This file has been modified, are you sure you want to close without saving?",children:R=>ye.jsx(tn,{size:"sm",className:"ms-1",onClick:R(O.close),children:ye.jsx("i",{className:"fa fa-times"})})}),!O.dirty&&ye.jsx(tn,{size:"sm",className:"ms-1",onClick:O.close,children:ye.jsx("i",{className:"fa fa-times"})})]})}function es(O){const{name:R,setDirty:w,file:$}=O,[T,f]=Me.useState($.contents),[m,h]=Me.useState({width:"",height:""}),o=Me.useRef(T),a={yml:"yaml",py:"python"},t=Me.useCallback(i=>{o.current=i,w(i!==$.contents),f(i)},[w,$]),e=i=>{var l,c;const s=(c=(l=i==null?void 0:i.refEditor)==null?void 0:l.parentNode)==null?void 0:c.parentNode;if(s&&!m.width){const b=s;if(!b.clientWidth||!b.clientHeight){console.error("No client size defined");return}h({width:`${b.clientWidth}px`,height:`${b.clientHeight}px`})}},n=Me.useCallback(()=>{O.save({path:$.path,contents:o.current}).then(()=>{w(!1)})},[o,$]);return ye.jsx(Gr,{ref:i=>e(i),width:m.width,height:m.height,mode:a[$.ext],theme:"monokai",value:T,onChange:t,name:R,editorProps:{$blockScrolling:!0},enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,commands:[{name:"save",bindKey:{win:"Ctrl-S",mac:"Command-S"},exec:n}]})}function ts(O){const{files:R,selectedFile:w="",actions:$}=O,[T,f]=Me.useState({});return Me.useEffect(()=>{if(!(w in R)){const m=rt.values(R);rt.values(m).length>0&&setTimeout(()=>{O.actions.selectFile(m[m.length-1].path)},200)}},[R,w,$]),ye.jsxs(yi,{className:"editor",children:[O.error&&ye.jsxs($i,{variant:"danger",children:[ye.jsx("i",{className:"fa fa-warning"})," Could not open file",ye.jsx("div",{className:"description",children:O.error})]}),rt.values(O.files).length===0&&ye.jsx("p",{children:"Select a file from the tree to edit it"}),rt.values(O.files).length>0&&ye.jsx(Si,{activeKey:O.selectedFile,onSelect:m=>O.actions.selectFile(m),transition:!1,children:rt.map(O.files,(m,h)=>ye.jsx(Ci,{title:ye.jsx(qr,{title:h,close:()=>O.actions.closeFile(h),dirty:T[h]}),eventKey:h,children:ye.jsx(es,{name:h,file:m,save:O.actions.updateFile,setDirty:o=>f({...T,[h]:o})})},h.replace("/","")))})]})}function ns(O,R){const{providers:w}=R;return{selectedFile:Ot.selector("selectedFile",O),files:w.editor.files.selector("results",O),error:w.editor.files.selector("error",O)}}function is(O,R){return{actions:{selectFile:w=>Ot.dispatch("SELECT_FILE",w),updateFile:w=>R.providers.editor.files.update(w),closeFile:w=>R.providers.editor.files.deleteLocal(w)}}}const rs=_i({editor:Ot})(xi(ns,is)(ts));function os(O){const{providers:R,yamlNode:w,...$}=O;return ki(w,$),ye.jsx(rs,{providers:R})}export{os as default};