@e-llm-studio/citation 0.0.21 → 0.0.22

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.
package/dist/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import{jsxs as e,Fragment as t,jsx as n}from"react/jsx-runtime";import*as r from"react";import a,{memo as c,useState as l,useRef as o,useCallback as i,useEffect as h,useMemo as s,Children as d,isValidElement as m,cloneElement as v,createContext as u,useContext as p,createElement as z}from"react";import*as f from"react-dom";import g from"react-dom";var E=function(){return E=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},E.apply(this,arguments)};function M(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function H(e,t,n,r){return new(n||(n=Promise))((function(a,c){function l(e){try{i(r.next(e))}catch(e){c(e)}}function o(e){try{i(r.throw(e))}catch(e){c(e)}}function i(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,o)}i((r=r.apply(e,t||[])).next())}))}function V(e,t){var n,r,a,c={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return l.next=o(0),l.throw=o(1),l.return=o(2),"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function o(o){return function(i){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;l&&(l=0,o[0]&&(c=0)),c;)try{if(n=1,r&&(a=2&o[0]?r.return:o[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;switch(r=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!(a=c.trys,(a=a.length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){c.label=o[1];break}if(6===o[0]&&c.label<a[1]){c.label=a[1],a=o;break}if(a&&c.label<a[2]){c.label=a[2],c.ops.push(o);break}a[2]&&c.ops.pop(),c.trys.pop();continue}o=t.call(e,c)}catch(e){o=[6,e],r=0}finally{n=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,i])}}}function y(e,t,n){if(n||2===arguments.length)for(var r,a=0,c=t.length;a<c;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}function L(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===n&&r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}"function"==typeof SuppressedError&&SuppressedError;var b="CodeCitation-module_pillButton__pugFh",C="CodeCitation-module_citationWrapper__goB2r",S="CodeCitation-module_citationContent__fFlqE",T="CodeCitation-module_citationContainerTitle__Dt0Bq";function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function O(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function N(e){return function t(){for(var n=this,r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return a.length>=e.length?e.apply(this,a):function(){for(var e=arguments.length,r=new Array(e),c=0;c<e;c++)r[c]=arguments[c];return t.apply(n,[].concat(a,r))}}}function F(e){return{}.toString.call(e).includes("Object")}function D(e){return"function"==typeof e}L('@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;700&display=swap");.CodeCitation-module_pillButton__pugFh{align-items:center;background-color:#1e2135;border:1px solid #344054;border-radius:6px;color:#fff;cursor:pointer;display:flex;font-family:Plus Jakarta Sans,sans-serif;font-family:Montserrat,sans-serif;font-size:12px;font-weight:550;gap:6px;justify-content:space-between;line-height:18px;margin:8px 4px;padding:4px 8px;width:fit-content}.CodeCitation-module_citationWrapper__goB2r{display:flex;justify-content:center;margin-top:8px}.CodeCitation-module_citationContent__fFlqE{background-color:#111827;border-radius:12px;color:#fff;min-height:42rem;padding:12px;width:32rem}.CodeCitation-module_bookHeader__LxVTS{display:flex;justify-content:space-between;margin-bottom:24px}.CodeCitation-module_bookInfo__45kX0{display:flex;gap:16px}.CodeCitation-module_bookCover__AGca3{height:auto;object-fit:cover;width:40px}.CodeCitation-module_title__GgfpM{font-family:serif;font-size:1.25rem;font-weight:700}.CodeCitation-module_author__IyoJH{font-family:serif;font-size:1rem;font-weight:500}.CodeCitation-module_scrollContainer__iSbL4{background-color:#f2f0f0;border-radius:8px;color:#181b1f;font-family:Times New Roman,Times,serif;font-size:14.4px;height:100%;line-height:1.4;overflow-y:auto;padding:40px;position:relative}.CodeCitation-module_spineLeft__8goHj,.CodeCitation-module_spineRight__HG-aa{bottom:0;opacity:.5;pointer-events:none;position:absolute;top:0;width:16px;z-index:0}.CodeCitation-module_spineLeft__8goHj{background:linear-gradient(90deg,#000 0,#0009 40%,#0003 70%,#0000);box-shadow:4px 0 8px #0000001a;right:5px}.CodeCitation-module_spineRight__HG-aa{background:linear-gradient(270deg,#000 0,#000000b3 40%,#0006 70%,#0000);box-shadow:-4px 0 8px #0000001a;right:20px}.CodeCitation-module_quoteParagraph__-3mva{margin-bottom:1rem;text-align:justify}.CodeCitation-module_indent__KfIxR{text-indent:1rem}.CodeCitation-module_pageNumber__eUsN9{color:#374151;font-weight:500;padding:.5rem;text-align:center}.CodeCitation-module_citationContainerTitle__Dt0Bq{font-family:Plus Jakarta Sans,sans-serif}');var I=N((function(e,t){throw new Error(e[t]||e.default)}))({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),B={changes:function(e,t){return F(t)||I("changeType"),Object.keys(t).some((function(t){return n=e,r=t,!Object.prototype.hasOwnProperty.call(n,r);var n,r}))&&I("changeField"),t},selector:function(e){D(e)||I("selectorType")},handler:function(e){D(e)||F(e)||I("handlerType"),F(e)&&Object.values(e).some((function(e){return!D(e)}))&&I("handlersType")},initial:function(e){var t;e||I("initialIsRequired"),F(e)||I("initialType"),t=e,Object.keys(t).length||I("initialContent")}};function U(e,t){return D(t)?t(e.current):t}function j(e,t){return e.current=P(P({},e.current),t),t}function W(e,t,n){return D(t)?t(e.current):Object.keys(n).forEach((function(n){var r;return null===(r=t[n])||void 0===r?void 0:r.call(t,e.current[n])})),n}var G={create:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};B.initial(e),B.handler(t);var n={current:e},r=N(W)(n,t),a=N(j)(n),c=N(B.changes)(e),l=N(U)(n);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return B.selector(e),e(n.current)},function(e){!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight((function(e,t){return t(e)}),e)}}(r,a,c,l)(e)}]}};var $={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},q=function(e){return function t(){for(var n=this,r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return a.length>=e.length?e.apply(this,a):function(){for(var e=arguments.length,r=new Array(e),c=0;c<e;c++)r[c]=arguments[c];return t.apply(n,[].concat(a,r))}}}((function(e,t){throw new Error(e[t]||e.default)}))($),Y={config:function(e){var t;return e||q("configIsRequired"),t=e,{}.toString.call(t).includes("Object")||q("configType"),e.urls?(console.warn($.deprecation),{paths:{vs:e.urls.monacoBase}}):e}};function K(e,t){return Object.keys(t).forEach((function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],K(e[n],t[n]))})),R(R({},e),t)}var X={type:"cancelation",msg:"operation is manually canceled"};function Q(e){var t=!1,n=new Promise((function(n,r){e.then((function(e){return t?r(X):n(e)})),e.catch(r)}));return n.cancel=function(){return t=!0},n}var J,Z,ee=G.create({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}),te=(Z=2,function(e){if(Array.isArray(e))return e}(J=ee)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,a=!1,c=void 0;try{for(var l,o=e[Symbol.iterator]();!(r=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(e){a=!0,c=e}finally{try{r||null==o.return||o.return()}finally{if(a)throw c}}return n}}(J,Z)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}(J,Z)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),ne=te[0],re=te[1];function ae(e){return document.body.appendChild(e)}function ce(e){var t,n,r=ne((function(e){return{config:e.config,reject:e.reject}})),a=(t="".concat(r.config.paths.vs,"/loader.js"),n=document.createElement("script"),t&&(n.src=t),n);return a.onload=function(){return e()},a.onerror=r.reject,a}function le(){var e=ne((function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}})),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],(function(t){oe(t),e.resolve(t)}),(function(t){e.reject(t)}))}function oe(e){ne().monaco||re({monaco:e})}var ie=new Promise((function(e,t){return re({resolve:e,reject:t})})),he={config:function(e){var t=Y.config(e),n=t.monaco,r=O(t,["monaco"]);re((function(e){return{config:K(e.config,r),monaco:n}}))},init:function(){var e=ne((function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}}));if(!e.isInitialized){if(re({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Q(ie);if(window.monaco&&window.monaco.editor)return oe(window.monaco),e.resolve(window.monaco),Q(ie);!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight((function(e,t){return t(e)}),e)}}(ae,ce)(le)}return Q(ie)},__getMonacoInstance:function(){return ne((function(e){return e.monaco}))}},se={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},de={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}};var me=function({children:e}){return a.createElement("div",{style:de.container},e)},ve=me;var ue=function({width:e,height:t,isEditorReady:n,loading:r,_ref:c,className:l,wrapperProps:o}){return a.createElement("section",{style:{...se.wrapper,width:e,height:t},...o},!n&&a.createElement(ve,null,r),a.createElement("div",{ref:c,style:{...se.fullWidth,...!n&&se.hide},className:l}))},pe=c(ue);var ze=function(e){h(e,[])};var fe=function(e,t,n=!0){let r=o(!0);h(r.current||!n?()=>{r.current=!1}:e,t)};function ge(){}function Ee(e,t,n,r){return function(e,t){return e.editor.getModel(Me(e,t))}(e,r)||function(e,t,n,r){return e.editor.createModel(t,n,r?Me(e,r):void 0)}(e,t,n,r)}function Me(e,t){return e.Uri.parse(t)}var He=function({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:c,originalModelPath:s,modifiedModelPath:d,keepCurrentOriginalModel:m=!1,keepCurrentModifiedModel:v=!1,theme:u="light",loading:p="Loading...",options:z={},height:f="100%",width:g="100%",className:E,wrapperProps:M={},beforeMount:H=ge,onMount:V=ge}){let[y,L]=l(!1),[b,C]=l(!0),S=o(null),T=o(null),w=o(null),x=o(V),R=o(H),O=o(!1);ze((()=>{let e=he.init();return e.then((e=>(T.current=e)&&C(!1))).catch((e=>"cancelation"!==e?.type&&console.error("Monaco initialization: error:",e))),()=>S.current?function(){let e=S.current?.getModel();m||e?.original?.dispose(),v||e?.modified?.dispose(),S.current?.dispose()}():e.cancel()})),fe((()=>{if(S.current&&T.current){let t=S.current.getOriginalEditor(),a=Ee(T.current,e||"",r||n||"text",s||"");a!==t.getModel()&&t.setModel(a)}}),[s],y),fe((()=>{if(S.current&&T.current){let e=S.current.getModifiedEditor(),r=Ee(T.current,t||"",c||n||"text",d||"");r!==e.getModel()&&e.setModel(r)}}),[d],y),fe((()=>{let e=S.current.getModifiedEditor();e.getOption(T.current.editor.EditorOption.readOnly)?e.setValue(t||""):t!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),e.pushUndoStop())}),[t],y),fe((()=>{S.current?.getModel()?.original.setValue(e||"")}),[e],y),fe((()=>{let{original:e,modified:t}=S.current.getModel();T.current.editor.setModelLanguage(e,r||n||"text"),T.current.editor.setModelLanguage(t,c||n||"text")}),[n,r,c],y),fe((()=>{T.current?.editor.setTheme(u)}),[u],y),fe((()=>{S.current?.updateOptions(z)}),[z],y);let A=i((()=>{if(!T.current)return;R.current(T.current);let a=Ee(T.current,e||"",r||n||"text",s||""),l=Ee(T.current,t||"",c||n||"text",d||"");S.current?.setModel({original:a,modified:l})}),[n,t,c,e,r,s,d]),k=i((()=>{!O.current&&w.current&&(S.current=T.current.editor.createDiffEditor(w.current,{automaticLayout:!0,...z}),A(),T.current?.editor.setTheme(u),L(!0),O.current=!0)}),[z,u,A]);return h((()=>{y&&x.current(S.current,T.current)}),[y]),h((()=>{!b&&!y&&k()}),[b,y,k]),a.createElement(pe,{width:g,height:f,isEditorReady:y,loading:p,_ref:w,className:E,wrapperProps:M})};c(He);var Ve=function(e){let t=o();return h((()=>{t.current=e}),[e]),t.current},ye=new Map;var Le,be,Ce=function({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:c,path:s,theme:d="light",line:m,loading:v="Loading...",options:u={},overrideServices:p={},saveViewState:z=!0,keepCurrentModel:f=!1,width:g="100%",height:E="100%",className:M,wrapperProps:H={},beforeMount:V=ge,onMount:y=ge,onChange:L,onValidate:b=ge}){let[C,S]=l(!1),[T,w]=l(!0),x=o(null),R=o(null),O=o(null),A=o(y),k=o(V),_=o(),P=o(r),N=Ve(s),F=o(!1),D=o(!1);ze((()=>{let e=he.init();return e.then((e=>(x.current=e)&&w(!1))).catch((e=>"cancelation"!==e?.type&&console.error("Monaco initialization: error:",e))),()=>R.current?(_.current?.dispose(),f?z&&ye.set(s,R.current.saveViewState()):R.current.getModel()?.dispose(),void R.current.dispose()):e.cancel()})),fe((()=>{let a=Ee(x.current,e||r||"",t||c||"",s||n||"");a!==R.current?.getModel()&&(z&&ye.set(N,R.current?.saveViewState()),R.current?.setModel(a),z&&R.current?.restoreViewState(ye.get(s)))}),[s],C),fe((()=>{R.current?.updateOptions(u)}),[u],C),fe((()=>{!R.current||void 0===r||(R.current.getOption(x.current.editor.EditorOption.readOnly)?R.current.setValue(r):r!==R.current.getValue()&&(D.current=!0,R.current.executeEdits("",[{range:R.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),R.current.pushUndoStop(),D.current=!1))}),[r],C),fe((()=>{let e=R.current?.getModel();e&&c&&x.current?.editor.setModelLanguage(e,c)}),[c],C),fe((()=>{void 0!==m&&R.current?.revealLine(m)}),[m],C),fe((()=>{x.current?.editor.setTheme(d)}),[d],C);let I=i((()=>{if(O.current&&x.current&&!F.current){k.current(x.current);let a=s||n,l=Ee(x.current,r||e||"",t||c||"",a||"");R.current=x.current?.editor.create(O.current,{model:l,automaticLayout:!0,...u},p),z&&R.current.restoreViewState(ye.get(a)),x.current.editor.setTheme(d),void 0!==m&&R.current.revealLine(m),S(!0),F.current=!0}}),[e,t,n,r,c,s,u,p,z,d,m]);return h((()=>{C&&A.current(R.current,x.current)}),[C]),h((()=>{!T&&!C&&I()}),[T,C,I]),P.current=r,h((()=>{C&&L&&(_.current?.dispose(),_.current=R.current?.onDidChangeModelContent((e=>{D.current||L(R.current.getValue(),e)})))}),[C,L]),h((()=>{if(C){let e=x.current.editor.onDidChangeMarkers((e=>{let t=R.current.getModel()?.uri;if(t&&e.find((e=>e.path===t.path))){let e=x.current.editor.getModelMarkers({resource:t});b?.(e)}}));return()=>{e?.dispose()}}return()=>{}}),[C,b]),a.createElement(pe,{width:g,height:E,isEditorReady:C,loading:v,_ref:O,className:M,wrapperProps:H})},Se=c(Ce);function Te(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function we(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var xe,Re=function(){if(be)return Le;function e(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach((n=>{const r=t[n],a=typeof r;"object"!==a&&"function"!==a||Object.isFrozen(r)||e(r)})),t}be=1;class t{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function r(e,...t){const n=Object.create(null);for(const t in e)n[t]=e[t];return t.forEach((function(e){for(const t in e)n[t]=e[t]})),n}const a=e=>!!e.scope;class c{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=n(e)}openNode(e){if(!a(e))return;const t=((e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map(((e,t)=>`${e}${"_".repeat(t+1)}`))].join(" ")}return`${t}${e}`})(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){a(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const l=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class o{constructor(){this.rootNode=l(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=l({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach((t=>this._walk(e,t))),e.closeNode(t)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{o._collapse(e)})))}}class i extends o{constructor(e){super(),this.options=e}addText(e){""!==e&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){return new c(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function h(e){return e?"string"==typeof e?e:e.source:null}function s(e){return v("(?=",e,")")}function d(e){return v("(?:",e,")*")}function m(e){return v("(?:",e,")?")}function v(...e){const t=e.map((e=>h(e))).join("");return t}function u(...e){const t=function(e){const t=e[e.length-1];return"object"==typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}(e),n="("+(t.capture?"":"?:")+e.map((e=>h(e))).join("|")+")";return n}function p(e){return new RegExp(e.toString()+"|").exec("").length-1}const z=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function f(e,{joinWith:t}){let n=0;return e.map((e=>{n+=1;const t=n;let r=h(e),a="";for(;r.length>0;){const e=z.exec(r);if(!e){a+=r;break}a+=r.substring(0,e.index),r=r.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?a+="\\"+String(Number(e[1])+t):(a+=e[0],"("===e[0]&&n++)}return a})).map((e=>`(${e})`)).join(t)}const g="[a-zA-Z]\\w*",E="[a-zA-Z_]\\w*",M="\\b\\d+(\\.\\d+)?",H="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",V="\\b(0b[01]+)",y={begin:"\\\\[\\s\\S]",relevance:0},L={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[y]},b={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[y]},C=function(e,t,n={}){const a=r({scope:"comment",begin:e,end:t,contains:[]},n);a.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const c=u("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return a.contains.push({begin:v(/[ ]+/,"(",c,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),a},S=C("//","$"),T=C("/\\*","\\*/"),w=C("#","$"),x={scope:"number",begin:M,relevance:0},R={scope:"number",begin:H,relevance:0},O={scope:"number",begin:V,relevance:0},A={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[y,{begin:/\[/,end:/\]/,relevance:0,contains:[y]}]},k={scope:"title",begin:g,relevance:0},_={scope:"title",begin:E,relevance:0},P={begin:"\\.\\s*"+E,relevance:0};var N=Object.freeze({__proto__:null,APOS_STRING_MODE:L,BACKSLASH_ESCAPE:y,BINARY_NUMBER_MODE:O,BINARY_NUMBER_RE:V,COMMENT:C,C_BLOCK_COMMENT_MODE:T,C_LINE_COMMENT_MODE:S,C_NUMBER_MODE:R,C_NUMBER_RE:H,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})},HASH_COMMENT_MODE:w,IDENT_RE:g,MATCH_NOTHING_RE:/\b\B/,METHOD_GUARD:P,NUMBER_MODE:x,NUMBER_RE:M,PHRASAL_WORDS_MODE:{begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},QUOTE_STRING_MODE:b,REGEXP_MODE:A,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=v(t,/.*\b/,e.binary,/\b.*/)),r({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},TITLE_MODE:k,UNDERSCORE_IDENT_RE:E,UNDERSCORE_TITLE_MODE:_});function F(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function D(e,t){void 0!==e.className&&(e.scope=e.className,delete e.className)}function I(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=F,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function B(e,t){Array.isArray(e.illegal)&&(e.illegal=u(...e.illegal))}function U(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function j(e,t){void 0===e.relevance&&(e.relevance=1)}const W=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach((t=>{delete e[t]})),e.keywords=n.keywords,e.begin=v(n.beforeMatch,s(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},G=["of","and","for","in","not","or","if","then","parent","list","value"];function $(e,t,n="keyword"){const r=Object.create(null);return"string"==typeof e?a(n,e.split(" ")):Array.isArray(e)?a(n,e):Object.keys(e).forEach((function(n){Object.assign(r,$(e[n],t,n))})),r;function a(e,n){t&&(n=n.map((e=>e.toLowerCase()))),n.forEach((function(t){const n=t.split("|");r[n[0]]=[e,q(n[0],n[1])]}))}}function q(e,t){return t?Number(t):function(e){return G.includes(e.toLowerCase())}(e)?0:1}const Y={},K=e=>{console.error(e)},X=(e,...t)=>{console.log(`WARN: ${e}`,...t)},Q=(e,t)=>{Y[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),Y[`${e}/${t}`]=!0)},J=new Error;function Z(e,t,{key:n}){let r=0;const a=e[n],c={},l={};for(let e=1;e<=t.length;e++)l[e+r]=a[e],c[e+r]=!0,r+=p(t[e-1]);e[n]=l,e[n]._emit=c,e[n]._multi=!0}function ee(e){!function(e){e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,delete e.scope)}(e),"string"==typeof e.beginScope&&(e.beginScope={_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope}),function(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw K("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),J;if("object"!=typeof e.beginScope||null===e.beginScope)throw K("beginScope must be object"),J;Z(e,e.begin,{key:"beginScope"}),e.begin=f(e.begin,{joinWith:""})}}(e),function(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw K("skip, excludeEnd, returnEnd not compatible with endScope: {}"),J;if("object"!=typeof e.endScope||null===e.endScope)throw K("endScope must be object"),J;Z(e,e.end,{key:"endScope"}),e.end=f(e.end,{joinWith:""})}}(e)}function te(e){function t(t,n){return new RegExp(h(t),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(n?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=p(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map((e=>e[1]));this.matcherRe=t(f(e,{joinWith:"|"}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const n=t.findIndex(((e,t)=>t>0&&void 0!==e)),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class a{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new n;return this.rules.slice(e).forEach((([e,n])=>t.addRule(e,n))),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=r(e.classNameAliases||{}),function n(c,l){const o=c;if(c.isCompiled)return o;[D,U,ee,W].forEach((e=>e(c,l))),e.compilerExtensions.forEach((e=>e(c,l))),c.__beforeBegin=null,[I,B,j].forEach((e=>e(c,l))),c.isCompiled=!0;let i=null;return"object"==typeof c.keywords&&c.keywords.$pattern&&(c.keywords=Object.assign({},c.keywords),i=c.keywords.$pattern,delete c.keywords.$pattern),i=i||/\w+/,c.keywords&&(c.keywords=$(c.keywords,e.case_insensitive)),o.keywordPatternRe=t(i,!0),l&&(c.begin||(c.begin=/\B|\b/),o.beginRe=t(o.begin),c.end||c.endsWithParent||(c.end=/\B|\b/),c.end&&(o.endRe=t(o.end)),o.terminatorEnd=h(o.end)||"",c.endsWithParent&&l.terminatorEnd&&(o.terminatorEnd+=(c.end?"|":"")+l.terminatorEnd)),c.illegal&&(o.illegalRe=t(c.illegal)),c.contains||(c.contains=[]),c.contains=[].concat(...c.contains.map((function(e){return function(e){e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function(t){return r(e,{variants:null},t)})));if(e.cachedVariants)return e.cachedVariants;if(ne(e))return r(e,{starts:e.starts?r(e.starts):null});if(Object.isFrozen(e))return r(e);return e}("self"===e?c:e)}))),c.contains.forEach((function(e){n(e,o)})),c.starts&&n(c.starts,l),o.matcher=function(e){const t=new a;return e.contains.forEach((e=>t.addRule(e.begin,{rule:e,type:"begin"}))),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(o),o}(e)}function ne(e){return!!e&&(e.endsWithParent||ne(e.starts))}class re extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const ae=n,ce=r,le=Symbol("nomatch"),oe=function(n){const r=Object.create(null),a=Object.create(null),c=[];let l=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",h={disableAutodetect:!0,name:"Plain text",contains:[]};let p={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:i};function z(e){return p.noHighlightRe.test(e)}function f(e,t,n){let r="",a="";"object"==typeof t?(r=e,n=t.ignoreIllegals,a=t.language):(Q("10.7.0","highlight(lang, code, ...args) has been deprecated."),Q("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),a=e,r=t),void 0===n&&(n=!0);const c={code:r,language:a};C("before:highlight",c);const l=c.result?c.result:g(c.language,c.code,n);return l.code=c.code,C("after:highlight",l),l}function g(e,n,a,c){const i=Object.create(null);function h(){if(!C.keywords)return void T.addText(w);let e=0;C.keywordPatternRe.lastIndex=0;let t=C.keywordPatternRe.exec(w),n="";for(;t;){n+=w.substring(e,t.index);const a=V.case_insensitive?t[0].toLowerCase():t[0],c=(r=a,C.keywords[r]);if(c){const[e,r]=c;if(T.addText(n),n="",i[a]=(i[a]||0)+1,i[a]<=7&&(x+=r),e.startsWith("_"))n+=t[0];else{const n=V.classNameAliases[e]||e;d(t[0],n)}}else n+=t[0];e=C.keywordPatternRe.lastIndex,t=C.keywordPatternRe.exec(w)}var r;n+=w.substring(e),T.addText(n)}function s(){null!=C.subLanguage?function(){if(""===w)return;let e=null;if("string"==typeof C.subLanguage){if(!r[C.subLanguage])return void T.addText(w);e=g(C.subLanguage,w,!0,S[C.subLanguage]),S[C.subLanguage]=e._top}else e=E(w,C.subLanguage.length?C.subLanguage:null);C.relevance>0&&(x+=e.relevance),T.__addSublanguage(e._emitter,e.language)}():h(),w=""}function d(e,t){""!==e&&(T.startScope(t),T.addText(e),T.endScope())}function m(e,t){let n=1;const r=t.length-1;for(;n<=r;){if(!e._emit[n]){n++;continue}const r=V.classNameAliases[e[n]]||e[n],a=t[n];r?d(a,r):(w=a,h(),w=""),n++}}function v(e,t){return e.scope&&"string"==typeof e.scope&&T.openNode(V.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(d(w,V.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),w=""):e.beginScope._multi&&(m(e.beginScope,t),w="")),C=Object.create(e,{parent:{value:C}}),C}function u(e,n,r){let a=function(e,t){const n=e&&e.exec(t);return n&&0===n.index}(e.endRe,r);if(a){if(e["on:end"]){const r=new t(e);e["on:end"](n,r),r.isMatchIgnored&&(a=!1)}if(a){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return u(e.parent,n,r)}function z(e){return 0===C.matcher.regexIndex?(w+=e[0],1):(A=!0,0)}function f(e){const t=e[0],r=n.substring(e.index),a=u(C,e,r);if(!a)return le;const c=C;C.endScope&&C.endScope._wrap?(s(),d(t,C.endScope._wrap)):C.endScope&&C.endScope._multi?(s(),m(C.endScope,e)):c.skip?w+=t:(c.returnEnd||c.excludeEnd||(w+=t),s(),c.excludeEnd&&(w=t));do{C.scope&&T.closeNode(),C.skip||C.subLanguage||(x+=C.relevance),C=C.parent}while(C!==a.parent);return a.starts&&v(a.starts,e),c.returnEnd?0:t.length}let M={};function H(r,c){const o=c&&c[0];if(w+=r,null==o)return s(),0;if("begin"===M.type&&"end"===c.type&&M.index===c.index&&""===o){if(w+=n.slice(c.index,c.index+1),!l){const t=new Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=M.rule,t}return 1}if(M=c,"begin"===c.type)return function(e){const n=e[0],r=e.rule,a=new t(r),c=[r.__beforeBegin,r["on:begin"]];for(const t of c)if(t&&(t(e,a),a.isMatchIgnored))return z(n);return r.skip?w+=n:(r.excludeBegin&&(w+=n),s(),r.returnBegin||r.excludeBegin||(w=n)),v(r,e),r.returnBegin?0:n.length}(c);if("illegal"===c.type&&!a){const e=new Error('Illegal lexeme "'+o+'" for mode "'+(C.scope||"<unnamed>")+'"');throw e.mode=C,e}if("end"===c.type){const e=f(c);if(e!==le)return e}if("illegal"===c.type&&""===o)return w+="\n",1;if(O>1e5&&O>3*c.index){throw new Error("potential infinite loop, way more iterations than matches")}return w+=o,o.length}const V=y(e);if(!V)throw K(o.replace("{}",e)),new Error('Unknown language: "'+e+'"');const L=te(V);let b="",C=c||L;const S={},T=new p.__emitter(p);!function(){const e=[];for(let t=C;t!==V;t=t.parent)t.scope&&e.unshift(t.scope);e.forEach((e=>T.openNode(e)))}();let w="",x=0,R=0,O=0,A=!1;try{if(V.__emitTokens)V.__emitTokens(n,T);else{for(C.matcher.considerAll();;){O++,A?A=!1:C.matcher.considerAll(),C.matcher.lastIndex=R;const e=C.matcher.exec(n);if(!e)break;const t=H(n.substring(R,e.index),e);R=e.index+t}H(n.substring(R))}return T.finalize(),b=T.toHTML(),{language:e,value:b,relevance:x,illegal:!1,_emitter:T,_top:C}}catch(t){if(t.message&&t.message.includes("Illegal"))return{language:e,value:ae(n),illegal:!0,relevance:0,_illegalBy:{message:t.message,index:R,context:n.slice(R-100,R+100),mode:t.mode,resultSoFar:b},_emitter:T};if(l)return{language:e,value:ae(n),illegal:!1,relevance:0,errorRaised:t,_emitter:T,_top:C};throw t}}function E(e,t){t=t||p.languages||Object.keys(r);const n=function(e){const t={value:ae(e),illegal:!1,relevance:0,_top:h,_emitter:new p.__emitter(p)};return t._emitter.addText(e),t}(e),a=t.filter(y).filter(b).map((t=>g(t,e,!1)));a.unshift(n);const c=a.sort(((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(y(e.language).supersetOf===t.language)return 1;if(y(t.language).supersetOf===e.language)return-1}return 0})),[l,o]=c,i=l;return i.secondBest=o,i}function M(e){let t=null;const n=function(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const n=p.languageDetectRe.exec(t);if(n){const t=y(n[1]);return t||(X(o.replace("{}",n[1])),X("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}return t.split(/\s+/).find((e=>z(e)||y(e)))}(e);if(z(n))return;if(C("before:highlightElement",{el:e,language:n}),e.dataset.highlighted)return void console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e);if(e.children.length>0&&(p.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(e)),p.throwUnescapedHTML)){throw new re("One of your code blocks includes unescaped HTML.",e.innerHTML)}t=e;const r=t.textContent,c=n?f(r,{language:n,ignoreIllegals:!0}):E(r);e.innerHTML=c.value,e.dataset.highlighted="yes",function(e,t,n){const r=t&&a[t]||n;e.classList.add("hljs"),e.classList.add(`language-${r}`)}(e,n,c.language),e.result={language:c.language,re:c.relevance,relevance:c.relevance},c.secondBest&&(e.secondBest={language:c.secondBest.language,relevance:c.secondBest.relevance}),C("after:highlightElement",{el:e,result:c,text:r})}let H=!1;function V(){if("loading"===document.readyState)return H||window.addEventListener("DOMContentLoaded",(function(){V()}),!1),void(H=!0);document.querySelectorAll(p.cssSelector).forEach(M)}function y(e){return e=(e||"").toLowerCase(),r[e]||r[a[e]]}function L(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach((e=>{a[e.toLowerCase()]=t}))}function b(e){const t=y(e);return t&&!t.disableAutodetect}function C(e,t){const n=e;c.forEach((function(e){e[n]&&e[n](t)}))}Object.assign(n,{highlight:f,highlightAuto:E,highlightAll:V,highlightElement:M,highlightBlock:function(e){return Q("10.7.0","highlightBlock will be removed entirely in v12.0"),Q("10.7.0","Please use highlightElement now."),M(e)},configure:function(e){p=ce(p,e)},initHighlighting:()=>{V(),Q("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:function(){V(),Q("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:function(e,t){let a=null;try{a=t(n)}catch(t){if(K("Language definition for '{}' could not be registered.".replace("{}",e)),!l)throw t;K(t),a=h}a.name||(a.name=e),r[e]=a,a.rawDefinition=t.bind(null,n),a.aliases&&L(a.aliases,{languageName:e})},unregisterLanguage:function(e){delete r[e];for(const t of Object.keys(a))a[t]===e&&delete a[t]},listLanguages:function(){return Object.keys(r)},getLanguage:y,registerAliases:L,autoDetection:b,inherit:ce,addPlugin:function(e){!function(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{e["before:highlightBlock"](Object.assign({block:t.el},t))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{e["after:highlightBlock"](Object.assign({block:t.el},t))})}(e),c.push(e)},removePlugin:function(e){const t=c.indexOf(e);-1!==t&&c.splice(t,1)}}),n.debugMode=function(){l=!1},n.safeMode=function(){l=!0},n.versionString="11.11.1",n.regex={concat:v,lookahead:s,either:u,optional:m,anyNumberOfTimes:d};for(const t in N)"object"==typeof N[t]&&e(N[t]);return Object.assign(n,N),n},ie=oe({});return ie.newInstance=()=>oe({}),Le=ie,ie.HighlightJS=ie,ie.default=ie,Le}(),Oe=Te(Re),Ae=function(e){return Object.entries(e).map((function(e){var t=e[0],n=e[1];return"".concat(t.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})),": ").concat(n,";")})).join("\n")},ke=function(e,t,n){var r=n?"dark":"light",a=JSON.stringify(e).replace(/[^a-zA-Z0-9]/g,"").slice(0,20);return"".concat(r,"-severity-").concat(t,"-").concat(a)};!function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Information=2]="Information",e[e.Hint=3]="Hint"}(xe||(xe={}));var _e=function(r){var a=r.startIndex,c=r.endIndex,d=r.language,m=r.editorHeight,v=r.editorWidth,u=r.code,p=r.isHighlightingEnabled,z=r.isDarkModeEnabled,f=r.openHighlightedCodeDetails,g=r.highlightCodeStatsLine;r.setHighlightCodeStatsLine;var E=r.highlightCodeStatsVariable;r.setHighlightCodeStatsVariable,r.setHighlightIndexes;var M=r.isExpanded,H=r.highlightIndexes,V=r.diagnostics,y=r.diagnosticStylesBySeverity,L=Oe.highlightAuto(u).language,b=o(null),C=o([]);o([]);var S=o([]),T=s((function(){return a}),[a]),w=s((function(){return c}),[c]),x=l(null),R=x[0],O=x[1],A=l(null),k=A[0],_=A[1],P=o([]);h((function(){return function(){var e;(null===(e=b.current)||void 0===e?void 0:e._resizeObserver)&&b.current._resizeObserver.disconnect()}}),[]),h((function(){if(p&&R&&b.current&&k){var e=R.start,t=R.end;N(b.current,e,t,g,E)}}),[R,k,p,g,E]),h((function(){var e,t,n;if(k&&b.current&&p){var r=b.current;if(H&&(null===(e=Object.keys(H))||void 0===e?void 0:e.length)>0&&-1!==(null==H?void 0:H.startIndex)&&-1!==(null==H?void 0:H.endIndex)){var a=null==H?void 0:H.startIndex,c=null==H?void 0:H.endIndex,l=r.deltaDecorations(C.current,[{range:new k.Range(a,1,c,1),options:{isWholeLine:!0,className:"myLineHighlight"}}]);C.current=l}if(g&&(null===(t=Object.keys(g))||void 0===t?void 0:t.length)>0&&-1!==(null==g?void 0:g.startIndex)&&-1!==(null==g?void 0:g.endIndex)&&(null==g?void 0:g.name)){var o=null==g?void 0:g.startIndex,i=null==g?void 0:g.endIndex;l=r.deltaDecorations(C.current,[{range:new k.Range(o,1,i,1),options:{isWholeLine:!0,className:"myLineHighlight"}}]);C.current=l}if(E&&(null===(n=Object.keys(E))||void 0===n?void 0:n.length)>0&&-1!==(null==E?void 0:E.startIndex)&&-1!==(null==E?void 0:E.endIndex)&&(null==g?void 0:g.name)){var h=null==E?void 0:E.startIndex,s=null==E?void 0:E.endIndex;l=r.deltaDecorations(S.current,[{range:new k.Range(h,1,s,1),options:{isWholeLine:!0,className:"myLineHighlight"}}]);S.current=l}}}),[a,c,p,k,g,JSON.stringify(E)]),h((function(){if(k&&b.current&&(null==V?void 0:V.length)&&y){var e=b.current,t=V.map((function(e){var t,n,r=function(e,t,n){var r=null==n?void 0:n[e];if(!r)return"myLineHighlight";if(!t){if(r.lightModeStyle)return ke(r.lightModeStyle,e,!1);if(r.style)return ke(r.style,e,!0);if(r.lightModeClassName)return r.lightModeClassName;if(r.className)return r.className}if(t){if(r.style)return ke(r.style,e,!0);if(r.className)return r.className;if(r.lightModeStyle)return ke(r.lightModeStyle,e,!1);if(r.lightModeClassName)return r.lightModeClassName}return"myLineHighlight"}(e.severity,null!=z&&z,y);return{range:new k.Range(e.range.lineStart,null!==(t=e.range.columnStart)&&void 0!==t?t:1,e.range.lineEnd,null!==(n=e.range.columnEnd)&&void 0!==n?n:1),options:{className:r,isWholeLine:void 0===e.range.columnStart}}}));P.current=e.deltaDecorations(P.current,t)}}),[V,y,k,z]),h((function(){if(k&&b.current&&(null==V?void 0:V.length)){var e=b.current,t=V[0];e.revealRangeInCenterIfOutsideViewport(new k.Range(t.range.lineStart,1,t.range.lineEnd,1),k.editor.ScrollType.Smooth)}}),[k,p,V]);var N=i((function(e,t,n,r,a){var c,l;if(k&&e&&p){var o=e.getModel();o&&(t=Math.max(-1,t),(n=Math.min(n,o.getLineCount()))<t&&(n=t),requestAnimationFrame((function(){e.revealRangeInCenterIfOutsideViewport(new k.Range(t,1,n,1),k.editor.ScrollType.Smooth),e.setSelection(new k.Range(t,1,n+1,1))})),r&&-1!==(null==r?void 0:r.startIndex)&&-1!==(null==r?void 0:r.endIndex)&&requestAnimationFrame((function(){e.revealRangeInCenterIfOutsideViewport(new k.Range(null==r?void 0:r.startIndex,1,null==r?void 0:r.endIndex,1),k.editor.ScrollType.Smooth),e.setSelection(new k.Range(null==r?void 0:r.startIndex,1,(null==r?void 0:r.endIndex)+1,1))})),0===(null===(c=Object.keys(a))||void 0===c?void 0:c.length)&&e.getContribution("editor.contrib.findController").getState().change({isRevealed:!1},!1),(null===(l=Object.keys(a))||void 0===l?void 0:l.length)>0&&(requestAnimationFrame((function(){e.revealRangeInCenterIfOutsideViewport(new k.Range(null==a?void 0:a.startIndex,1,null==a?void 0:a.endIndex,1),k.editor.ScrollType.Smooth),e.setSelection(new k.Range(null==a?void 0:a.startIndex,1,(null==a?void 0:a.endIndex)+1,1))})),e.trigger("keyboard","actions.find"),e.getAction("actions.find").run(),e.getContribution("editor.contrib.findController").getState().change({searchString:(null==a?void 0:a.variableName)||"",isRevealed:!0},!1)))}}),[k,p,a,c,null==g?void 0:g.startIndex,null==g?void 0:g.endIndex,E]);h((function(){if(b.current&&k&&p){var e=b.current,t=e.onDidLayoutChange((function(){N(e,a,c,g,E)}));return function(){return t.dispose()}}}),[N,a,c,p,null==g?void 0:g.startIndex,null==g?void 0:g.endIndex,E,M]);var F=i((function(e,t){N(e,T,w),b.current=e,_(t),O({start:T,end:w});var n=e.getContainerDomNode(),r=new ResizeObserver((function(){e.layout()}));if(r.observe(n),b.current._resizeObserver=r,p){e.getLayoutInfo();var a=e.getDomNode(),c=document.createElement("div");null==a||a.appendChild(c);var l=function(){var t=e.getTopForLineNumber(T)-e.getScrollTop();c.style.top="".concat(t,"px")};e.onDidScrollChange(l),l()}}),[a,c,p,f]);return e(t,{children:[n(Se,{height:m,width:v,defaultLanguage:L||d,defaultValue:u,theme:z?"vs-dark":"vs-light",onMount:F,beforeMount:function(e){e.languages.typescript.javascriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0})},options:{minimap:{enabled:!0},overviewRulerLanes:3,fontFamily:"Plus Jakarta Sans, sans-serif",scrollBeyondLastLine:!1,readOnly:!0,smoothScrolling:!0,automaticLayout:!0,lineDecorationsWidth:10,padding:{top:20,bottom:20}}}),e("style",{children:[y&&"object"==typeof y&&Object.entries(y).map((function(e){var t=e[0],n=e[1],r=[];return n.style&&r.push(".".concat(ke(n.style,+t,!0)," {\n").concat(Ae(n.style),"\n}")),n.lightModeStyle&&r.push(".".concat(ke(n.lightModeStyle,+t,!1)," {\n").concat(Ae(n.lightModeStyle),"\n}")),r.join("\n")})).join("\n"),"\n .myLineHighlight {\n background-color: rgba(0, 122, 204, 0.3);\n }\n "]})]})},Pe=function(){return n("svg",E({width:"100%",height:"100%",fill:"#000000",viewBox:"-1 0 19 19",xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg"},{children:n("path",{d:"M16.417 9.583A7.917 7.917 0 1 1 8.5 1.666a7.917 7.917 0 0 1 7.917 7.917zM5.85 3.309a6.833 6.833 0 1 0 2.65-.534 6.787 6.787 0 0 0-2.65.534zm2.654 1.336A1.136 1.136 0 1 1 7.37 5.78a1.136 1.136 0 0 1 1.135-1.136zm.792 9.223V8.665a.792.792 0 1 0-1.583 0v5.203a.792.792 0 0 0 1.583 0z"})}))},Ne=function(){return e("svg",E({width:"100%",height:"100%",viewBox:"0 0 128 128",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",className:"iconify iconify--noto",preserveAspectRatio:"xMidYMid meet"},{children:[n("path",{d:"M37.41 41.95c-9.71 12.48-9.54 34.65 2.87 45.64c14.09 12.47 33.92 12.34 46.39.87c14.95-13.76 14.09-36.66.87-49.63c-13.29-13.04-37.04-13.72-50.13 3.12z",fill:"#fcc11a"}),n("path",{d:"M53 37.67c-3.84-1.7-8.04 2.93-9.87 6.09c-1.83 3.17-3.53 9.38.37 10.97c3.9 1.58 6.7-1.1 9.51-5.73c2.79-4.63 4.38-9.38-.01-11.33z",fill:"#fee269"}),n("path",{d:"M63 20.27c-.93 1.74-.62 3.08 1.23 3.52c1.85.44 13.36 2.31 14.33 2.37c1.41.09 1.93-.97 1.76-2.2c-.18-1.23-2.99-18.46-3.25-20.04S75.14.76 73.55 2.87S63.7 18.96 63 20.27z",fill:"#ffa722"}),n("path",{d:"M92.8 32.23c-1.81.56-1.76 1.67-.79 3.08c.97 1.41 7.65 11.6 8.26 12.31c.62.7 1.67.88 2.55-.18c.88-1.05 11.86-16.45 12.66-17.41c1.32-1.58.53-3.25-1.49-2.73c-1.54.41-20.05 4.58-21.19 4.93z",fill:"#ffa722"}),n("path",{d:"M106.6 61.86c-1.3-.74-2.99-.53-3.43 1.14c-.44 1.67-2.37 13.8-2.55 14.86s.62 2.11 1.93 1.85s19.45-2.95 20.66-3.25c2.11-.53 2.81-2.64.62-4.22c-1.42-1.03-16-9.68-17.23-10.38z",fill:"#ffa722"}),n("path",{d:"M92.09 90.6c1.4-.75 2.64-.18 2.99 1.41c.35 1.58 4.22 17.76 4.84 20.75c.31 1.5-1.41 2.73-2.81 1.85c-1.41-.88-16.69-11.53-17.67-12.4c-1.41-1.23-.43-2.51.26-3.16c1.4-1.33 11.07-7.74 12.39-8.45z",fill:"#ffa722"}),n("path",{d:"M49.54 99.48c-1.77-.17-2.29 1.41-2.02 2.81c.26 1.41 2.9 19.24 3.08 20.57c.26 1.93 2.29 2.73 3.6.79s10.35-16.4 11.08-17.76c1.32-2.46.35-2.99-.97-3.6c-1.31-.61-12.92-2.63-14.77-2.81z",fill:"#ffa722"}),n("path",{d:"M24.23 79c1.23-2.02 2.81-1.49 3.96.44c.78 1.32 7.38 10.2 8 11.16c.62.97.88 2.81-1.05 3.25c-1.95.45-17.68 4.58-20.14 5.02c-2.46.44-3.87-1.49-2.29-3.6c.92-1.24 10.82-15.12 11.52-16.27z",fill:"#ffa722"}),n("path",{d:"M20.89 63.7c2.25 1 3.31.64 3.78-.97c.62-2.11 2.46-11.78 2.55-13.98c.06-1.43-.53-2.81-2.73-2.46S6.47 48.85 4.45 49.55c-2.35.82-2.18 3.4-.62 4.22c1.85.97 15.47 9.23 17.06 9.93z",fill:"#ffa722"}),n("path",{d:"M48.23 26.78c1.27-1.01.88-2.46-.26-3.25c-1.14-.79-15.26-11-17.05-12.4c-1.58-1.23-3.52-.79-2.99 2.02c.38 2.02 4.88 19.7 5.19 20.92c.35 1.41 1.41 2.11 2.64 1.23c1.21-.87 11.15-7.46 12.47-8.52z",fill:"#ffa722"})]}))},Fe=function(r){var a=r.darkMode,c=r.onToggle,o=r.toggleFullscreen,i=r.handleOpenFileDetailSection,h=r.showFullscreenIcon,s=r.showFileSummaryIButton,d=l(!1),m=d[0],v=d[1];return e("div",E({style:De.container},{children:[e("div",E({style:{position:"relative",display:"inline-block"},onMouseEnter:function(){return v(!0)},onMouseLeave:function(){return v(!1)}},{children:[s?n("button",E({onClick:function(e){i(e)},style:{background:"transparent",color:"white",border:"none",borderRadius:"50%",width:"24px",height:"24px",fontWeight:"bold",cursor:"pointer",marginRight:"1rem",fontSize:"16px",zIndex:1e3,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"auto",padding:0}},{children:n(Pe,{})})):n(t,{}),m&&n("div",E({style:{position:"absolute",zIndex:1001,bottom:"125%",left:"50%",transform:"translateX(-50%)",backgroundColor:"#555",color:"#fff",padding:"5px 8px",borderRadius:"6px",fontSize:"12px",textAlign:"center",whiteSpace:"nowrap",opacity:1,transition:"opacity 0.3s"}},{children:"Click to see file summary"}))]})),e("label",E({className:"theme-switch",style:De.switch},{children:[n("input",{type:"checkbox",checked:a,onChange:c,onClick:c,style:De.input}),n("div",E({style:E(E({},De.slider),{backgroundColor:a?"#444":"#f7f7f7"}),onClick:c},{children:n("div",E({style:E(E({},De.thumb),{transform:a?"translateX(22px)":"translateX(0)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:13,backgroundColor:a?"#444":"#f7f7f7"})},{children:a?"🌙":n(Ne,{})}))}))]})),h?n("button",E({onClick:function(e){return o(e)},style:{background:"transparent",border:"none",padding:"7px 6px",borderRadius:"6px",cursor:"pointer",fontSize:"1.5rem",color:"black",transition:"background 0.3s"},title:"Toggle fullscreen"},{children:"⛶"})):n(t,{})]}))},De={container:{display:"flex",alignItems:"center",gap:8},icon:{fontSize:20,transition:"transform 0.3s ease"},switch:{position:"relative",display:"inline-block",width:44,height:24},input:{opacity:0,width:0,height:0},slider:{position:"absolute",cursor:"pointer",top:0,left:0,right:0,bottom:0,transition:"0.4s",borderRadius:20},thumb:{position:"absolute",height:19,width:19,backgroundColor:"white",borderRadius:"50%",top:2,left:2,transition:"transform 0.3s ease"}},Ie={black:"#000",white:"#fff"},Be="#e57373",Ue="#f44336",je="#d32f2f",We="#ff4081",Ge="#f50057",$e="#c51162",qe="#7986cb",Ye="#3f51b5",Ke="#303f9f",Xe="#64b5f6",Qe="#2196f3",Je="#1976d2",Ze="#81c784",et="#4caf50",tt="#388e3c",nt="#ffb74d",rt="#ff9800",at="#f57c00",ct={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},lt="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function ot(){throw new Error("setTimeout has not been defined")}function it(){throw new Error("clearTimeout has not been defined")}var ht=ot,st=it;function dt(e){if(ht===setTimeout)return setTimeout(e,0);if((ht===ot||!ht)&&setTimeout)return ht=setTimeout,setTimeout(e,0);try{return ht(e,0)}catch(t){try{return ht.call(null,e,0)}catch(t){return ht.call(this,e,0)}}}"function"==typeof lt.setTimeout&&(ht=setTimeout),"function"==typeof lt.clearTimeout&&(st=clearTimeout);var mt,vt=[],ut=!1,pt=-1;function zt(){ut&&mt&&(ut=!1,mt.length?vt=mt.concat(vt):pt=-1,vt.length&&ft())}function ft(){if(!ut){var e=dt(zt);ut=!0;for(var t=vt.length;t;){for(mt=vt,vt=[];++pt<t;)mt&&mt[pt].run();pt=-1,t=vt.length}mt=null,ut=!1,function(e){if(st===clearTimeout)return clearTimeout(e);if((st===it||!st)&&clearTimeout)return st=clearTimeout,clearTimeout(e);try{return st(e)}catch(t){try{return st.call(null,e)}catch(t){return st.call(this,e)}}}(e)}}function gt(e,t){this.fun=e,this.array=t}gt.prototype.run=function(){this.fun.apply(null,this.array)};function Et(){}var Mt=Et,Ht=Et,Vt=Et,yt=Et,Lt=Et,bt=Et,Ct=Et;var St=lt.performance||{},Tt=St.now||St.mozNow||St.msNow||St.oNow||St.webkitNow||function(){return(new Date).getTime()};var wt=new Date;var xt={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];vt.push(new gt(e,t)),1!==vt.length||ut||dt(ft)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Mt,addListener:Ht,once:Vt,off:yt,removeListener:Lt,removeAllListeners:bt,emit:Ct,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*Tt.call(St),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-wt)/1e3}};function Rt(e,t){return"production"===xt.env.NODE_ENV?function(){return null}:function(){return e.apply(void 0,arguments)||t.apply(void 0,arguments)}}function Ot(){return Ot=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ot.apply(null,arguments)}function At(e){return At="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},At(e)}function kt(e){return e&&"object"===At(e)&&e.constructor===Object}function _t(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?Ot({},e):e;return kt(e)&&kt(t)&&Object.keys(t).forEach((function(a){"__proto__"!==a&&(kt(t[a])&&a in e?r[a]=_t(e[a],t[a],n):r[a]=t[a])})),r}var Pt,Nt={exports:{}},Ft={exports:{}},Dt={};var It,Bt,Ut,jt,Wt,Gt,$t,qt,Yt,Kt,Xt,Qt,Jt,Zt,en,tn={};function nn(){return Bt||(Bt=1,"production"===xt.env.NODE_ENV?Ft.exports=function(){if(Pt)return Dt;Pt=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,i=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,s=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,u=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,z=e?Symbol.for("react.fundamental"):60117,f=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case i:case h:case r:case c:case a:case d:return e;default:switch(e=e&&e.$$typeof){case o:case s:case u:case v:case l:return e;default:return m}}case n:return m}}}function M(e){return E(e)===h}return Dt.AsyncMode=i,Dt.ConcurrentMode=h,Dt.ContextConsumer=o,Dt.ContextProvider=l,Dt.Element=t,Dt.ForwardRef=s,Dt.Fragment=r,Dt.Lazy=u,Dt.Memo=v,Dt.Portal=n,Dt.Profiler=c,Dt.StrictMode=a,Dt.Suspense=d,Dt.isAsyncMode=function(e){return M(e)||E(e)===i},Dt.isConcurrentMode=M,Dt.isContextConsumer=function(e){return E(e)===o},Dt.isContextProvider=function(e){return E(e)===l},Dt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Dt.isForwardRef=function(e){return E(e)===s},Dt.isFragment=function(e){return E(e)===r},Dt.isLazy=function(e){return E(e)===u},Dt.isMemo=function(e){return E(e)===v},Dt.isPortal=function(e){return E(e)===n},Dt.isProfiler=function(e){return E(e)===c},Dt.isStrictMode=function(e){return E(e)===a},Dt.isSuspense=function(e){return E(e)===d},Dt.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===h||e===c||e===a||e===d||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===u||e.$$typeof===v||e.$$typeof===l||e.$$typeof===o||e.$$typeof===s||e.$$typeof===z||e.$$typeof===f||e.$$typeof===g||e.$$typeof===p)},Dt.typeOf=E,Dt}():Ft.exports=(It||(It=1,"production"!==xt.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,i=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,s=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,u=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,z=e?Symbol.for("react.fundamental"):60117,f=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:var p=e.type;switch(p){case i:case h:case r:case c:case a:case d:return p;default:var z=p&&p.$$typeof;switch(z){case o:case s:case u:case v:case l:return z;default:return m}}case n:return m}}}var M=i,H=h,V=o,y=l,L=t,b=s,C=r,S=u,T=v,w=n,x=c,R=a,O=d,A=!1;function k(e){return E(e)===h}tn.AsyncMode=M,tn.ConcurrentMode=H,tn.ContextConsumer=V,tn.ContextProvider=y,tn.Element=L,tn.ForwardRef=b,tn.Fragment=C,tn.Lazy=S,tn.Memo=T,tn.Portal=w,tn.Profiler=x,tn.StrictMode=R,tn.Suspense=O,tn.isAsyncMode=function(e){return A||(A=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),k(e)||E(e)===i},tn.isConcurrentMode=k,tn.isContextConsumer=function(e){return E(e)===o},tn.isContextProvider=function(e){return E(e)===l},tn.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},tn.isForwardRef=function(e){return E(e)===s},tn.isFragment=function(e){return E(e)===r},tn.isLazy=function(e){return E(e)===u},tn.isMemo=function(e){return E(e)===v},tn.isPortal=function(e){return E(e)===n},tn.isProfiler=function(e){return E(e)===c},tn.isStrictMode=function(e){return E(e)===a},tn.isSuspense=function(e){return E(e)===d},tn.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===h||e===c||e===a||e===d||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===u||e.$$typeof===v||e.$$typeof===l||e.$$typeof===o||e.$$typeof===s||e.$$typeof===z||e.$$typeof===f||e.$$typeof===g||e.$$typeof===p)},tn.typeOf=E}()),tn)),Ft.exports}
1
+ import{jsxs as e,Fragment as t,jsx as n}from"react/jsx-runtime";import*as r from"react";import a,{memo as c,useState as l,useRef as o,useCallback as i,useEffect as h,useMemo as s,Children as d,isValidElement as m,cloneElement as v,createContext as u,useContext as p,createElement as z}from"react";import*as f from"react-dom";import g from"react-dom";var E=function(){return E=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},E.apply(this,arguments)};function M(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function H(e,t,n,r){return new(n||(n=Promise))((function(a,c){function l(e){try{i(r.next(e))}catch(e){c(e)}}function o(e){try{i(r.throw(e))}catch(e){c(e)}}function i(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,o)}i((r=r.apply(e,t||[])).next())}))}function V(e,t){var n,r,a,c={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return l.next=o(0),l.throw=o(1),l.return=o(2),"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function o(o){return function(i){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;l&&(l=0,o[0]&&(c=0)),c;)try{if(n=1,r&&(a=2&o[0]?r.return:o[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;switch(r=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!(a=c.trys,(a=a.length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){c.label=o[1];break}if(6===o[0]&&c.label<a[1]){c.label=a[1],a=o;break}if(a&&c.label<a[2]){c.label=a[2],c.ops.push(o);break}a[2]&&c.ops.pop(),c.trys.pop();continue}o=t.call(e,c)}catch(e){o=[6,e],r=0}finally{n=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,i])}}}function y(e,t,n){if(n||2===arguments.length)for(var r,a=0,c=t.length;a<c;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}function L(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===n&&r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}"function"==typeof SuppressedError&&SuppressedError;var b="CodeCitation-module_pillButton__pugFh",C="CodeCitation-module_citationWrapper__goB2r",S="CodeCitation-module_citationContent__fFlqE",T="CodeCitation-module_citationContainerTitle__Dt0Bq";function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function O(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function N(e){return function t(){for(var n=this,r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return a.length>=e.length?e.apply(this,a):function(){for(var e=arguments.length,r=new Array(e),c=0;c<e;c++)r[c]=arguments[c];return t.apply(n,[].concat(a,r))}}}function F(e){return{}.toString.call(e).includes("Object")}function D(e){return"function"==typeof e}L('@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;700&display=swap");.CodeCitation-module_pillButton__pugFh{align-items:center;background-color:#1e2135;border:1px solid #344054;border-radius:6px;color:#fff;cursor:pointer;display:flex;font-family:Plus Jakarta Sans,sans-serif;font-family:Montserrat,sans-serif;font-size:12px;font-weight:550;gap:6px;justify-content:space-between;line-height:18px;margin:8px 4px;padding:4px 8px;width:fit-content}.CodeCitation-module_citationWrapper__goB2r{display:flex;justify-content:center;margin-top:8px}.CodeCitation-module_citationContent__fFlqE{background-color:#111827;border-radius:12px;color:#fff;min-height:42rem;padding:12px;width:32rem}.CodeCitation-module_bookHeader__LxVTS{display:flex;justify-content:space-between;margin-bottom:24px}.CodeCitation-module_bookInfo__45kX0{display:flex;gap:16px}.CodeCitation-module_bookCover__AGca3{height:auto;object-fit:cover;width:40px}.CodeCitation-module_title__GgfpM{font-family:serif;font-size:1.25rem;font-weight:700}.CodeCitation-module_author__IyoJH{font-family:serif;font-size:1rem;font-weight:500}.CodeCitation-module_scrollContainer__iSbL4{background-color:#f2f0f0;border-radius:8px;color:#181b1f;font-family:Times New Roman,Times,serif;font-size:14.4px;height:100%;line-height:1.4;overflow-y:auto;padding:40px;position:relative}.CodeCitation-module_spineLeft__8goHj,.CodeCitation-module_spineRight__HG-aa{bottom:0;opacity:.5;pointer-events:none;position:absolute;top:0;width:16px;z-index:0}.CodeCitation-module_spineLeft__8goHj{background:linear-gradient(90deg,#000 0,#0009 40%,#0003 70%,#0000);box-shadow:4px 0 8px #0000001a;right:5px}.CodeCitation-module_spineRight__HG-aa{background:linear-gradient(270deg,#000 0,#000000b3 40%,#0006 70%,#0000);box-shadow:-4px 0 8px #0000001a;right:20px}.CodeCitation-module_quoteParagraph__-3mva{margin-bottom:1rem;text-align:justify}.CodeCitation-module_indent__KfIxR{text-indent:1rem}.CodeCitation-module_pageNumber__eUsN9{color:#374151;font-weight:500;padding:.5rem;text-align:center}.CodeCitation-module_citationContainerTitle__Dt0Bq{font-family:Plus Jakarta Sans,sans-serif}');var I=N((function(e,t){throw new Error(e[t]||e.default)}))({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),B={changes:function(e,t){return F(t)||I("changeType"),Object.keys(t).some((function(t){return n=e,r=t,!Object.prototype.hasOwnProperty.call(n,r);var n,r}))&&I("changeField"),t},selector:function(e){D(e)||I("selectorType")},handler:function(e){D(e)||F(e)||I("handlerType"),F(e)&&Object.values(e).some((function(e){return!D(e)}))&&I("handlersType")},initial:function(e){var t;e||I("initialIsRequired"),F(e)||I("initialType"),t=e,Object.keys(t).length||I("initialContent")}};function U(e,t){return D(t)?t(e.current):t}function j(e,t){return e.current=P(P({},e.current),t),t}function W(e,t,n){return D(t)?t(e.current):Object.keys(n).forEach((function(n){var r;return null===(r=t[n])||void 0===r?void 0:r.call(t,e.current[n])})),n}var G={create:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};B.initial(e),B.handler(t);var n={current:e},r=N(W)(n,t),a=N(j)(n),c=N(B.changes)(e),l=N(U)(n);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return B.selector(e),e(n.current)},function(e){!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight((function(e,t){return t(e)}),e)}}(r,a,c,l)(e)}]}};var $={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},q=function(e){return function t(){for(var n=this,r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return a.length>=e.length?e.apply(this,a):function(){for(var e=arguments.length,r=new Array(e),c=0;c<e;c++)r[c]=arguments[c];return t.apply(n,[].concat(a,r))}}}((function(e,t){throw new Error(e[t]||e.default)}))($),Y={config:function(e){var t;return e||q("configIsRequired"),t=e,{}.toString.call(t).includes("Object")||q("configType"),e.urls?(console.warn($.deprecation),{paths:{vs:e.urls.monacoBase}}):e}};function K(e,t){return Object.keys(t).forEach((function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],K(e[n],t[n]))})),R(R({},e),t)}var X={type:"cancelation",msg:"operation is manually canceled"};function Q(e){var t=!1,n=new Promise((function(n,r){e.then((function(e){return t?r(X):n(e)})),e.catch(r)}));return n.cancel=function(){return t=!0},n}var J,Z,ee=G.create({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}),te=(Z=2,function(e){if(Array.isArray(e))return e}(J=ee)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,a=!1,c=void 0;try{for(var l,o=e[Symbol.iterator]();!(r=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(e){a=!0,c=e}finally{try{r||null==o.return||o.return()}finally{if(a)throw c}}return n}}(J,Z)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}(J,Z)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),ne=te[0],re=te[1];function ae(e){return document.body.appendChild(e)}function ce(e){var t,n,r=ne((function(e){return{config:e.config,reject:e.reject}})),a=(t="".concat(r.config.paths.vs,"/loader.js"),n=document.createElement("script"),t&&(n.src=t),n);return a.onload=function(){return e()},a.onerror=r.reject,a}function le(){var e=ne((function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}})),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],(function(t){oe(t),e.resolve(t)}),(function(t){e.reject(t)}))}function oe(e){ne().monaco||re({monaco:e})}var ie=new Promise((function(e,t){return re({resolve:e,reject:t})})),he={config:function(e){var t=Y.config(e),n=t.monaco,r=O(t,["monaco"]);re((function(e){return{config:K(e.config,r),monaco:n}}))},init:function(){var e=ne((function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}}));if(!e.isInitialized){if(re({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Q(ie);if(window.monaco&&window.monaco.editor)return oe(window.monaco),e.resolve(window.monaco),Q(ie);!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight((function(e,t){return t(e)}),e)}}(ae,ce)(le)}return Q(ie)},__getMonacoInstance:function(){return ne((function(e){return e.monaco}))}},se={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},de={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}};var me=function({children:e}){return a.createElement("div",{style:de.container},e)},ve=me;var ue=function({width:e,height:t,isEditorReady:n,loading:r,_ref:c,className:l,wrapperProps:o}){return a.createElement("section",{style:{...se.wrapper,width:e,height:t},...o},!n&&a.createElement(ve,null,r),a.createElement("div",{ref:c,style:{...se.fullWidth,...!n&&se.hide},className:l}))},pe=c(ue);var ze=function(e){h(e,[])};var fe=function(e,t,n=!0){let r=o(!0);h(r.current||!n?()=>{r.current=!1}:e,t)};function ge(){}function Ee(e,t,n,r){return function(e,t){return e.editor.getModel(Me(e,t))}(e,r)||function(e,t,n,r){return e.editor.createModel(t,n,r?Me(e,r):void 0)}(e,t,n,r)}function Me(e,t){return e.Uri.parse(t)}var He=function({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:c,originalModelPath:s,modifiedModelPath:d,keepCurrentOriginalModel:m=!1,keepCurrentModifiedModel:v=!1,theme:u="light",loading:p="Loading...",options:z={},height:f="100%",width:g="100%",className:E,wrapperProps:M={},beforeMount:H=ge,onMount:V=ge}){let[y,L]=l(!1),[b,C]=l(!0),S=o(null),T=o(null),w=o(null),x=o(V),R=o(H),O=o(!1);ze((()=>{let e=he.init();return e.then((e=>(T.current=e)&&C(!1))).catch((e=>"cancelation"!==e?.type&&console.error("Monaco initialization: error:",e))),()=>S.current?function(){let e=S.current?.getModel();m||e?.original?.dispose(),v||e?.modified?.dispose(),S.current?.dispose()}():e.cancel()})),fe((()=>{if(S.current&&T.current){let t=S.current.getOriginalEditor(),a=Ee(T.current,e||"",r||n||"text",s||"");a!==t.getModel()&&t.setModel(a)}}),[s],y),fe((()=>{if(S.current&&T.current){let e=S.current.getModifiedEditor(),r=Ee(T.current,t||"",c||n||"text",d||"");r!==e.getModel()&&e.setModel(r)}}),[d],y),fe((()=>{let e=S.current.getModifiedEditor();e.getOption(T.current.editor.EditorOption.readOnly)?e.setValue(t||""):t!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),e.pushUndoStop())}),[t],y),fe((()=>{S.current?.getModel()?.original.setValue(e||"")}),[e],y),fe((()=>{let{original:e,modified:t}=S.current.getModel();T.current.editor.setModelLanguage(e,r||n||"text"),T.current.editor.setModelLanguage(t,c||n||"text")}),[n,r,c],y),fe((()=>{T.current?.editor.setTheme(u)}),[u],y),fe((()=>{S.current?.updateOptions(z)}),[z],y);let A=i((()=>{if(!T.current)return;R.current(T.current);let a=Ee(T.current,e||"",r||n||"text",s||""),l=Ee(T.current,t||"",c||n||"text",d||"");S.current?.setModel({original:a,modified:l})}),[n,t,c,e,r,s,d]),k=i((()=>{!O.current&&w.current&&(S.current=T.current.editor.createDiffEditor(w.current,{automaticLayout:!0,...z}),A(),T.current?.editor.setTheme(u),L(!0),O.current=!0)}),[z,u,A]);return h((()=>{y&&x.current(S.current,T.current)}),[y]),h((()=>{!b&&!y&&k()}),[b,y,k]),a.createElement(pe,{width:g,height:f,isEditorReady:y,loading:p,_ref:w,className:E,wrapperProps:M})};c(He);var Ve=function(e){let t=o();return h((()=>{t.current=e}),[e]),t.current},ye=new Map;var Le,be,Ce=function({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:c,path:s,theme:d="light",line:m,loading:v="Loading...",options:u={},overrideServices:p={},saveViewState:z=!0,keepCurrentModel:f=!1,width:g="100%",height:E="100%",className:M,wrapperProps:H={},beforeMount:V=ge,onMount:y=ge,onChange:L,onValidate:b=ge}){let[C,S]=l(!1),[T,w]=l(!0),x=o(null),R=o(null),O=o(null),A=o(y),k=o(V),_=o(),P=o(r),N=Ve(s),F=o(!1),D=o(!1);ze((()=>{let e=he.init();return e.then((e=>(x.current=e)&&w(!1))).catch((e=>"cancelation"!==e?.type&&console.error("Monaco initialization: error:",e))),()=>R.current?(_.current?.dispose(),f?z&&ye.set(s,R.current.saveViewState()):R.current.getModel()?.dispose(),void R.current.dispose()):e.cancel()})),fe((()=>{let a=Ee(x.current,e||r||"",t||c||"",s||n||"");a!==R.current?.getModel()&&(z&&ye.set(N,R.current?.saveViewState()),R.current?.setModel(a),z&&R.current?.restoreViewState(ye.get(s)))}),[s],C),fe((()=>{R.current?.updateOptions(u)}),[u],C),fe((()=>{!R.current||void 0===r||(R.current.getOption(x.current.editor.EditorOption.readOnly)?R.current.setValue(r):r!==R.current.getValue()&&(D.current=!0,R.current.executeEdits("",[{range:R.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),R.current.pushUndoStop(),D.current=!1))}),[r],C),fe((()=>{let e=R.current?.getModel();e&&c&&x.current?.editor.setModelLanguage(e,c)}),[c],C),fe((()=>{void 0!==m&&R.current?.revealLine(m)}),[m],C),fe((()=>{x.current?.editor.setTheme(d)}),[d],C);let I=i((()=>{if(O.current&&x.current&&!F.current){k.current(x.current);let a=s||n,l=Ee(x.current,r||e||"",t||c||"",a||"");R.current=x.current?.editor.create(O.current,{model:l,automaticLayout:!0,...u},p),z&&R.current.restoreViewState(ye.get(a)),x.current.editor.setTheme(d),void 0!==m&&R.current.revealLine(m),S(!0),F.current=!0}}),[e,t,n,r,c,s,u,p,z,d,m]);return h((()=>{C&&A.current(R.current,x.current)}),[C]),h((()=>{!T&&!C&&I()}),[T,C,I]),P.current=r,h((()=>{C&&L&&(_.current?.dispose(),_.current=R.current?.onDidChangeModelContent((e=>{D.current||L(R.current.getValue(),e)})))}),[C,L]),h((()=>{if(C){let e=x.current.editor.onDidChangeMarkers((e=>{let t=R.current.getModel()?.uri;if(t&&e.find((e=>e.path===t.path))){let e=x.current.editor.getModelMarkers({resource:t});b?.(e)}}));return()=>{e?.dispose()}}return()=>{}}),[C,b]),a.createElement(pe,{width:g,height:E,isEditorReady:C,loading:v,_ref:O,className:M,wrapperProps:H})},Se=c(Ce);function Te(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function we(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var xe,Re=function(){if(be)return Le;function e(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach((n=>{const r=t[n],a=typeof r;"object"!==a&&"function"!==a||Object.isFrozen(r)||e(r)})),t}be=1;class t{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function r(e,...t){const n=Object.create(null);for(const t in e)n[t]=e[t];return t.forEach((function(e){for(const t in e)n[t]=e[t]})),n}const a=e=>!!e.scope;class c{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=n(e)}openNode(e){if(!a(e))return;const t=((e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map(((e,t)=>`${e}${"_".repeat(t+1)}`))].join(" ")}return`${t}${e}`})(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){a(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const l=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class o{constructor(){this.rootNode=l(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=l({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach((t=>this._walk(e,t))),e.closeNode(t)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{o._collapse(e)})))}}class i extends o{constructor(e){super(),this.options=e}addText(e){""!==e&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){return new c(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function h(e){return e?"string"==typeof e?e:e.source:null}function s(e){return v("(?=",e,")")}function d(e){return v("(?:",e,")*")}function m(e){return v("(?:",e,")?")}function v(...e){const t=e.map((e=>h(e))).join("");return t}function u(...e){const t=function(e){const t=e[e.length-1];return"object"==typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}(e),n="("+(t.capture?"":"?:")+e.map((e=>h(e))).join("|")+")";return n}function p(e){return new RegExp(e.toString()+"|").exec("").length-1}const z=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function f(e,{joinWith:t}){let n=0;return e.map((e=>{n+=1;const t=n;let r=h(e),a="";for(;r.length>0;){const e=z.exec(r);if(!e){a+=r;break}a+=r.substring(0,e.index),r=r.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?a+="\\"+String(Number(e[1])+t):(a+=e[0],"("===e[0]&&n++)}return a})).map((e=>`(${e})`)).join(t)}const g="[a-zA-Z]\\w*",E="[a-zA-Z_]\\w*",M="\\b\\d+(\\.\\d+)?",H="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",V="\\b(0b[01]+)",y={begin:"\\\\[\\s\\S]",relevance:0},L={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[y]},b={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[y]},C=function(e,t,n={}){const a=r({scope:"comment",begin:e,end:t,contains:[]},n);a.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const c=u("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return a.contains.push({begin:v(/[ ]+/,"(",c,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),a},S=C("//","$"),T=C("/\\*","\\*/"),w=C("#","$"),x={scope:"number",begin:M,relevance:0},R={scope:"number",begin:H,relevance:0},O={scope:"number",begin:V,relevance:0},A={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[y,{begin:/\[/,end:/\]/,relevance:0,contains:[y]}]},k={scope:"title",begin:g,relevance:0},_={scope:"title",begin:E,relevance:0},P={begin:"\\.\\s*"+E,relevance:0};var N=Object.freeze({__proto__:null,APOS_STRING_MODE:L,BACKSLASH_ESCAPE:y,BINARY_NUMBER_MODE:O,BINARY_NUMBER_RE:V,COMMENT:C,C_BLOCK_COMMENT_MODE:T,C_LINE_COMMENT_MODE:S,C_NUMBER_MODE:R,C_NUMBER_RE:H,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})},HASH_COMMENT_MODE:w,IDENT_RE:g,MATCH_NOTHING_RE:/\b\B/,METHOD_GUARD:P,NUMBER_MODE:x,NUMBER_RE:M,PHRASAL_WORDS_MODE:{begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},QUOTE_STRING_MODE:b,REGEXP_MODE:A,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=v(t,/.*\b/,e.binary,/\b.*/)),r({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},TITLE_MODE:k,UNDERSCORE_IDENT_RE:E,UNDERSCORE_TITLE_MODE:_});function F(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function D(e,t){void 0!==e.className&&(e.scope=e.className,delete e.className)}function I(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=F,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function B(e,t){Array.isArray(e.illegal)&&(e.illegal=u(...e.illegal))}function U(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function j(e,t){void 0===e.relevance&&(e.relevance=1)}const W=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach((t=>{delete e[t]})),e.keywords=n.keywords,e.begin=v(n.beforeMatch,s(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},G=["of","and","for","in","not","or","if","then","parent","list","value"];function $(e,t,n="keyword"){const r=Object.create(null);return"string"==typeof e?a(n,e.split(" ")):Array.isArray(e)?a(n,e):Object.keys(e).forEach((function(n){Object.assign(r,$(e[n],t,n))})),r;function a(e,n){t&&(n=n.map((e=>e.toLowerCase()))),n.forEach((function(t){const n=t.split("|");r[n[0]]=[e,q(n[0],n[1])]}))}}function q(e,t){return t?Number(t):function(e){return G.includes(e.toLowerCase())}(e)?0:1}const Y={},K=e=>{console.error(e)},X=(e,...t)=>{console.log(`WARN: ${e}`,...t)},Q=(e,t)=>{Y[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),Y[`${e}/${t}`]=!0)},J=new Error;function Z(e,t,{key:n}){let r=0;const a=e[n],c={},l={};for(let e=1;e<=t.length;e++)l[e+r]=a[e],c[e+r]=!0,r+=p(t[e-1]);e[n]=l,e[n]._emit=c,e[n]._multi=!0}function ee(e){!function(e){e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,delete e.scope)}(e),"string"==typeof e.beginScope&&(e.beginScope={_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope}),function(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw K("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),J;if("object"!=typeof e.beginScope||null===e.beginScope)throw K("beginScope must be object"),J;Z(e,e.begin,{key:"beginScope"}),e.begin=f(e.begin,{joinWith:""})}}(e),function(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw K("skip, excludeEnd, returnEnd not compatible with endScope: {}"),J;if("object"!=typeof e.endScope||null===e.endScope)throw K("endScope must be object"),J;Z(e,e.end,{key:"endScope"}),e.end=f(e.end,{joinWith:""})}}(e)}function te(e){function t(t,n){return new RegExp(h(t),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(n?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=p(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map((e=>e[1]));this.matcherRe=t(f(e,{joinWith:"|"}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const n=t.findIndex(((e,t)=>t>0&&void 0!==e)),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class a{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new n;return this.rules.slice(e).forEach((([e,n])=>t.addRule(e,n))),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=r(e.classNameAliases||{}),function n(c,l){const o=c;if(c.isCompiled)return o;[D,U,ee,W].forEach((e=>e(c,l))),e.compilerExtensions.forEach((e=>e(c,l))),c.__beforeBegin=null,[I,B,j].forEach((e=>e(c,l))),c.isCompiled=!0;let i=null;return"object"==typeof c.keywords&&c.keywords.$pattern&&(c.keywords=Object.assign({},c.keywords),i=c.keywords.$pattern,delete c.keywords.$pattern),i=i||/\w+/,c.keywords&&(c.keywords=$(c.keywords,e.case_insensitive)),o.keywordPatternRe=t(i,!0),l&&(c.begin||(c.begin=/\B|\b/),o.beginRe=t(o.begin),c.end||c.endsWithParent||(c.end=/\B|\b/),c.end&&(o.endRe=t(o.end)),o.terminatorEnd=h(o.end)||"",c.endsWithParent&&l.terminatorEnd&&(o.terminatorEnd+=(c.end?"|":"")+l.terminatorEnd)),c.illegal&&(o.illegalRe=t(c.illegal)),c.contains||(c.contains=[]),c.contains=[].concat(...c.contains.map((function(e){return function(e){e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function(t){return r(e,{variants:null},t)})));if(e.cachedVariants)return e.cachedVariants;if(ne(e))return r(e,{starts:e.starts?r(e.starts):null});if(Object.isFrozen(e))return r(e);return e}("self"===e?c:e)}))),c.contains.forEach((function(e){n(e,o)})),c.starts&&n(c.starts,l),o.matcher=function(e){const t=new a;return e.contains.forEach((e=>t.addRule(e.begin,{rule:e,type:"begin"}))),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(o),o}(e)}function ne(e){return!!e&&(e.endsWithParent||ne(e.starts))}class re extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const ae=n,ce=r,le=Symbol("nomatch"),oe=function(n){const r=Object.create(null),a=Object.create(null),c=[];let l=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",h={disableAutodetect:!0,name:"Plain text",contains:[]};let p={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:i};function z(e){return p.noHighlightRe.test(e)}function f(e,t,n){let r="",a="";"object"==typeof t?(r=e,n=t.ignoreIllegals,a=t.language):(Q("10.7.0","highlight(lang, code, ...args) has been deprecated."),Q("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),a=e,r=t),void 0===n&&(n=!0);const c={code:r,language:a};C("before:highlight",c);const l=c.result?c.result:g(c.language,c.code,n);return l.code=c.code,C("after:highlight",l),l}function g(e,n,a,c){const i=Object.create(null);function h(){if(!C.keywords)return void T.addText(w);let e=0;C.keywordPatternRe.lastIndex=0;let t=C.keywordPatternRe.exec(w),n="";for(;t;){n+=w.substring(e,t.index);const a=V.case_insensitive?t[0].toLowerCase():t[0],c=(r=a,C.keywords[r]);if(c){const[e,r]=c;if(T.addText(n),n="",i[a]=(i[a]||0)+1,i[a]<=7&&(x+=r),e.startsWith("_"))n+=t[0];else{const n=V.classNameAliases[e]||e;d(t[0],n)}}else n+=t[0];e=C.keywordPatternRe.lastIndex,t=C.keywordPatternRe.exec(w)}var r;n+=w.substring(e),T.addText(n)}function s(){null!=C.subLanguage?function(){if(""===w)return;let e=null;if("string"==typeof C.subLanguage){if(!r[C.subLanguage])return void T.addText(w);e=g(C.subLanguage,w,!0,S[C.subLanguage]),S[C.subLanguage]=e._top}else e=E(w,C.subLanguage.length?C.subLanguage:null);C.relevance>0&&(x+=e.relevance),T.__addSublanguage(e._emitter,e.language)}():h(),w=""}function d(e,t){""!==e&&(T.startScope(t),T.addText(e),T.endScope())}function m(e,t){let n=1;const r=t.length-1;for(;n<=r;){if(!e._emit[n]){n++;continue}const r=V.classNameAliases[e[n]]||e[n],a=t[n];r?d(a,r):(w=a,h(),w=""),n++}}function v(e,t){return e.scope&&"string"==typeof e.scope&&T.openNode(V.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(d(w,V.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),w=""):e.beginScope._multi&&(m(e.beginScope,t),w="")),C=Object.create(e,{parent:{value:C}}),C}function u(e,n,r){let a=function(e,t){const n=e&&e.exec(t);return n&&0===n.index}(e.endRe,r);if(a){if(e["on:end"]){const r=new t(e);e["on:end"](n,r),r.isMatchIgnored&&(a=!1)}if(a){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return u(e.parent,n,r)}function z(e){return 0===C.matcher.regexIndex?(w+=e[0],1):(A=!0,0)}function f(e){const t=e[0],r=n.substring(e.index),a=u(C,e,r);if(!a)return le;const c=C;C.endScope&&C.endScope._wrap?(s(),d(t,C.endScope._wrap)):C.endScope&&C.endScope._multi?(s(),m(C.endScope,e)):c.skip?w+=t:(c.returnEnd||c.excludeEnd||(w+=t),s(),c.excludeEnd&&(w=t));do{C.scope&&T.closeNode(),C.skip||C.subLanguage||(x+=C.relevance),C=C.parent}while(C!==a.parent);return a.starts&&v(a.starts,e),c.returnEnd?0:t.length}let M={};function H(r,c){const o=c&&c[0];if(w+=r,null==o)return s(),0;if("begin"===M.type&&"end"===c.type&&M.index===c.index&&""===o){if(w+=n.slice(c.index,c.index+1),!l){const t=new Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=M.rule,t}return 1}if(M=c,"begin"===c.type)return function(e){const n=e[0],r=e.rule,a=new t(r),c=[r.__beforeBegin,r["on:begin"]];for(const t of c)if(t&&(t(e,a),a.isMatchIgnored))return z(n);return r.skip?w+=n:(r.excludeBegin&&(w+=n),s(),r.returnBegin||r.excludeBegin||(w=n)),v(r,e),r.returnBegin?0:n.length}(c);if("illegal"===c.type&&!a){const e=new Error('Illegal lexeme "'+o+'" for mode "'+(C.scope||"<unnamed>")+'"');throw e.mode=C,e}if("end"===c.type){const e=f(c);if(e!==le)return e}if("illegal"===c.type&&""===o)return w+="\n",1;if(O>1e5&&O>3*c.index){throw new Error("potential infinite loop, way more iterations than matches")}return w+=o,o.length}const V=y(e);if(!V)throw K(o.replace("{}",e)),new Error('Unknown language: "'+e+'"');const L=te(V);let b="",C=c||L;const S={},T=new p.__emitter(p);!function(){const e=[];for(let t=C;t!==V;t=t.parent)t.scope&&e.unshift(t.scope);e.forEach((e=>T.openNode(e)))}();let w="",x=0,R=0,O=0,A=!1;try{if(V.__emitTokens)V.__emitTokens(n,T);else{for(C.matcher.considerAll();;){O++,A?A=!1:C.matcher.considerAll(),C.matcher.lastIndex=R;const e=C.matcher.exec(n);if(!e)break;const t=H(n.substring(R,e.index),e);R=e.index+t}H(n.substring(R))}return T.finalize(),b=T.toHTML(),{language:e,value:b,relevance:x,illegal:!1,_emitter:T,_top:C}}catch(t){if(t.message&&t.message.includes("Illegal"))return{language:e,value:ae(n),illegal:!0,relevance:0,_illegalBy:{message:t.message,index:R,context:n.slice(R-100,R+100),mode:t.mode,resultSoFar:b},_emitter:T};if(l)return{language:e,value:ae(n),illegal:!1,relevance:0,errorRaised:t,_emitter:T,_top:C};throw t}}function E(e,t){t=t||p.languages||Object.keys(r);const n=function(e){const t={value:ae(e),illegal:!1,relevance:0,_top:h,_emitter:new p.__emitter(p)};return t._emitter.addText(e),t}(e),a=t.filter(y).filter(b).map((t=>g(t,e,!1)));a.unshift(n);const c=a.sort(((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(y(e.language).supersetOf===t.language)return 1;if(y(t.language).supersetOf===e.language)return-1}return 0})),[l,o]=c,i=l;return i.secondBest=o,i}function M(e){let t=null;const n=function(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const n=p.languageDetectRe.exec(t);if(n){const t=y(n[1]);return t||(X(o.replace("{}",n[1])),X("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}return t.split(/\s+/).find((e=>z(e)||y(e)))}(e);if(z(n))return;if(C("before:highlightElement",{el:e,language:n}),e.dataset.highlighted)return void console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e);if(e.children.length>0&&(p.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(e)),p.throwUnescapedHTML)){throw new re("One of your code blocks includes unescaped HTML.",e.innerHTML)}t=e;const r=t.textContent,c=n?f(r,{language:n,ignoreIllegals:!0}):E(r);e.innerHTML=c.value,e.dataset.highlighted="yes",function(e,t,n){const r=t&&a[t]||n;e.classList.add("hljs"),e.classList.add(`language-${r}`)}(e,n,c.language),e.result={language:c.language,re:c.relevance,relevance:c.relevance},c.secondBest&&(e.secondBest={language:c.secondBest.language,relevance:c.secondBest.relevance}),C("after:highlightElement",{el:e,result:c,text:r})}let H=!1;function V(){if("loading"===document.readyState)return H||window.addEventListener("DOMContentLoaded",(function(){V()}),!1),void(H=!0);document.querySelectorAll(p.cssSelector).forEach(M)}function y(e){return e=(e||"").toLowerCase(),r[e]||r[a[e]]}function L(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach((e=>{a[e.toLowerCase()]=t}))}function b(e){const t=y(e);return t&&!t.disableAutodetect}function C(e,t){const n=e;c.forEach((function(e){e[n]&&e[n](t)}))}Object.assign(n,{highlight:f,highlightAuto:E,highlightAll:V,highlightElement:M,highlightBlock:function(e){return Q("10.7.0","highlightBlock will be removed entirely in v12.0"),Q("10.7.0","Please use highlightElement now."),M(e)},configure:function(e){p=ce(p,e)},initHighlighting:()=>{V(),Q("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:function(){V(),Q("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:function(e,t){let a=null;try{a=t(n)}catch(t){if(K("Language definition for '{}' could not be registered.".replace("{}",e)),!l)throw t;K(t),a=h}a.name||(a.name=e),r[e]=a,a.rawDefinition=t.bind(null,n),a.aliases&&L(a.aliases,{languageName:e})},unregisterLanguage:function(e){delete r[e];for(const t of Object.keys(a))a[t]===e&&delete a[t]},listLanguages:function(){return Object.keys(r)},getLanguage:y,registerAliases:L,autoDetection:b,inherit:ce,addPlugin:function(e){!function(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{e["before:highlightBlock"](Object.assign({block:t.el},t))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{e["after:highlightBlock"](Object.assign({block:t.el},t))})}(e),c.push(e)},removePlugin:function(e){const t=c.indexOf(e);-1!==t&&c.splice(t,1)}}),n.debugMode=function(){l=!1},n.safeMode=function(){l=!0},n.versionString="11.11.1",n.regex={concat:v,lookahead:s,either:u,optional:m,anyNumberOfTimes:d};for(const t in N)"object"==typeof N[t]&&e(N[t]);return Object.assign(n,N),n},ie=oe({});return ie.newInstance=()=>oe({}),Le=ie,ie.HighlightJS=ie,ie.default=ie,Le}(),Oe=Te(Re),Ae=function(e){return Object.entries(e).map((function(e){var t=e[0],n=e[1];return"".concat(t.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})),": ").concat(n,";")})).join("\n")},ke=function(e,t,n){var r=n?"dark":"light",a=JSON.stringify(e).replace(/[^a-zA-Z0-9]/g,"").slice(0,20);return"".concat(r,"-severity-").concat(t,"-").concat(a)};!function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Information=2]="Information",e[e.Hint=3]="Hint"}(xe||(xe={}));var _e=function(r){var a=r.startIndex,c=r.endIndex,d=r.language,m=r.editorHeight,v=r.editorWidth,u=r.code,p=r.isHighlightingEnabled,z=r.isDarkModeEnabled,f=r.openHighlightedCodeDetails,g=r.highlightCodeStatsLine;r.setHighlightCodeStatsLine;var E=r.highlightCodeStatsVariable;r.setHighlightCodeStatsVariable,r.setHighlightIndexes;var M=r.isExpanded,H=r.highlightIndexes,V=r.diagnostics,y=r.diagnosticStylesBySeverity,L=Oe.highlightAuto(u).language,b=o(null),C=o([]);o([]);var S=o([]),T=s((function(){return a}),[a]),w=s((function(){return c}),[c]),x=l(null),R=x[0],O=x[1],A=l(null),k=A[0],_=A[1],P=o([]),N=s((function(){return y&&"object"==typeof y&&Object.entries(y).map((function(e){var t=e[0],n=e[1],r=[];return n.style&&r.push(".".concat(ke(n.style,+t,!0)," {\n").concat(Ae(n.style),"\n}")),n.lightModeStyle&&r.push(".".concat(ke(n.lightModeStyle,+t,!1)," {\n").concat(Ae(n.lightModeStyle),"\n}")),r.join("\n")})).join("\n")}),[y]);h((function(){return function(){var e;(null===(e=b.current)||void 0===e?void 0:e._resizeObserver)&&b.current._resizeObserver.disconnect()}}),[]),h((function(){if(p&&R&&b.current&&k){var e=R.start,t=R.end;if(F(b.current,e,t,g,E),-1===a&&V&&V.length>0){var n=V[0].range,r=n.lineStart,c=n.lineEnd;F(b.current,r,c,g,E)}}}),[R,k,p,g,E]),h((function(){var e,t,n;if(k&&b.current&&p){var r=b.current;if(H&&(null===(e=Object.keys(H))||void 0===e?void 0:e.length)>0&&-1!==(null==H?void 0:H.startIndex)&&-1!==(null==H?void 0:H.endIndex)){var a=null==H?void 0:H.startIndex,c=null==H?void 0:H.endIndex,l=r.deltaDecorations(C.current,[{range:new k.Range(a,1,c,1),options:{isWholeLine:!0,className:"myLineHighlight"}}]);C.current=l}if(g&&(null===(t=Object.keys(g))||void 0===t?void 0:t.length)>0&&-1!==(null==g?void 0:g.startIndex)&&-1!==(null==g?void 0:g.endIndex)&&(null==g?void 0:g.name)){var o=null==g?void 0:g.startIndex,i=null==g?void 0:g.endIndex;l=r.deltaDecorations(C.current,[{range:new k.Range(o,1,i,1),options:{isWholeLine:!0,className:"myLineHighlight"}}]);C.current=l}if(E&&(null===(n=Object.keys(E))||void 0===n?void 0:n.length)>0&&-1!==(null==E?void 0:E.startIndex)&&-1!==(null==E?void 0:E.endIndex)&&(null==g?void 0:g.name)){var h=null==E?void 0:E.startIndex,s=null==E?void 0:E.endIndex;l=r.deltaDecorations(S.current,[{range:new k.Range(h,1,s,1),options:{isWholeLine:!0,className:"myLineHighlight"}}]);S.current=l}}}),[a,c,p,k,g,JSON.stringify(E)]),h((function(){if(k&&b.current&&(null==V?void 0:V.length)&&y){var e=b.current,t=V.map((function(e){var t,n,r=function(e,t,n){var r=null==n?void 0:n[e];if(!r)return"myLineHighlight";if(!t){if(r.lightModeStyle)return ke(r.lightModeStyle,e,!1);if(r.style)return ke(r.style,e,!0);if(r.lightModeClassName)return r.lightModeClassName;if(r.className)return r.className}if(t){if(r.style)return ke(r.style,e,!0);if(r.className)return r.className;if(r.lightModeStyle)return ke(r.lightModeStyle,e,!1);if(r.lightModeClassName)return r.lightModeClassName}return"myLineHighlight"}(e.severity,null==z||z,y);return{range:new k.Range(e.range.lineStart,null!==(t=e.range.columnStart)&&void 0!==t?t:1,e.range.lineEnd,null!==(n=e.range.columnEnd)&&void 0!==n?n:1),options:{className:r,isWholeLine:void 0===e.range.columnStart}}}));P.current=e.deltaDecorations(P.current,t)}}),[V,y,k,z]);var F=i((function(e,t,n,r,a){var c,l;if(k&&e&&p){var o=e.getModel();o&&(t=Math.max(-1,t),(n=Math.min(n,o.getLineCount()))<t&&(n=t),requestAnimationFrame((function(){e.revealRangeInCenterIfOutsideViewport(new k.Range(t,1,n,1),k.editor.ScrollType.Smooth),e.setSelection(new k.Range(t,1,n+1,1))})),r&&-1!==(null==r?void 0:r.startIndex)&&-1!==(null==r?void 0:r.endIndex)&&requestAnimationFrame((function(){e.revealRangeInCenterIfOutsideViewport(new k.Range(null==r?void 0:r.startIndex,1,null==r?void 0:r.endIndex,1),k.editor.ScrollType.Smooth),e.setSelection(new k.Range(null==r?void 0:r.startIndex,1,(null==r?void 0:r.endIndex)+1,1))})),0===(null===(c=Object.keys(a))||void 0===c?void 0:c.length)&&e.getContribution("editor.contrib.findController").getState().change({isRevealed:!1},!1),(null===(l=Object.keys(a))||void 0===l?void 0:l.length)>0&&(requestAnimationFrame((function(){e.revealRangeInCenterIfOutsideViewport(new k.Range(null==a?void 0:a.startIndex,1,null==a?void 0:a.endIndex,1),k.editor.ScrollType.Smooth),e.setSelection(new k.Range(null==a?void 0:a.startIndex,1,(null==a?void 0:a.endIndex)+1,1))})),e.trigger("keyboard","actions.find"),e.getAction("actions.find").run(),e.getContribution("editor.contrib.findController").getState().change({searchString:(null==a?void 0:a.variableName)||"",isRevealed:!0},!1)))}}),[k,p,a,c,null==g?void 0:g.startIndex,null==g?void 0:g.endIndex,E]);h((function(){if(b.current&&k&&p){var e=b.current,t=e.onDidLayoutChange((function(){if(F(e,a,c,g,E),-1===a&&V&&V.length>0){var t=V[0].range,n=t.lineStart,r=t.lineEnd;F(e,n,r,g,E)}}));return function(){return t.dispose()}}}),[F,a,c,p,null==g?void 0:g.startIndex,null==g?void 0:g.endIndex,E,M]);var D=i((function(e,t){F(e,T,w),b.current=e,_(t),O({start:T,end:w});var n=e.getContainerDomNode(),r=new ResizeObserver((function(){e.layout()}));if(r.observe(n),b.current._resizeObserver=r,p){e.getLayoutInfo();var a=e.getDomNode(),c=document.createElement("div");null==a||a.appendChild(c);var l=function(){var t=e.getTopForLineNumber(T)-e.getScrollTop();c.style.top="".concat(t,"px")};e.onDidScrollChange(l),l()}}),[a,c,p,f]);return e(t,{children:[n(Se,{height:m,width:v,defaultLanguage:L||d,defaultValue:u,theme:z?"vs-dark":"vs-light",onMount:D,beforeMount:function(e){e.languages.typescript.javascriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0})},options:{minimap:{enabled:!0},overviewRulerLanes:3,fontFamily:"Plus Jakarta Sans, sans-serif",scrollBeyondLastLine:!1,readOnly:!0,smoothScrolling:!0,automaticLayout:!0,lineDecorationsWidth:10,padding:{top:20,bottom:20}}}),e("style",{children:[N,"\n .myLineHighlight {\n background-color: rgba(0, 122, 204, 0.3);\n }\n "]})]})},Pe=function(){return n("svg",E({width:"100%",height:"100%",fill:"#000000",viewBox:"-1 0 19 19",xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg"},{children:n("path",{d:"M16.417 9.583A7.917 7.917 0 1 1 8.5 1.666a7.917 7.917 0 0 1 7.917 7.917zM5.85 3.309a6.833 6.833 0 1 0 2.65-.534 6.787 6.787 0 0 0-2.65.534zm2.654 1.336A1.136 1.136 0 1 1 7.37 5.78a1.136 1.136 0 0 1 1.135-1.136zm.792 9.223V8.665a.792.792 0 1 0-1.583 0v5.203a.792.792 0 0 0 1.583 0z"})}))},Ne=function(){return e("svg",E({width:"100%",height:"100%",viewBox:"0 0 128 128",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",className:"iconify iconify--noto",preserveAspectRatio:"xMidYMid meet"},{children:[n("path",{d:"M37.41 41.95c-9.71 12.48-9.54 34.65 2.87 45.64c14.09 12.47 33.92 12.34 46.39.87c14.95-13.76 14.09-36.66.87-49.63c-13.29-13.04-37.04-13.72-50.13 3.12z",fill:"#fcc11a"}),n("path",{d:"M53 37.67c-3.84-1.7-8.04 2.93-9.87 6.09c-1.83 3.17-3.53 9.38.37 10.97c3.9 1.58 6.7-1.1 9.51-5.73c2.79-4.63 4.38-9.38-.01-11.33z",fill:"#fee269"}),n("path",{d:"M63 20.27c-.93 1.74-.62 3.08 1.23 3.52c1.85.44 13.36 2.31 14.33 2.37c1.41.09 1.93-.97 1.76-2.2c-.18-1.23-2.99-18.46-3.25-20.04S75.14.76 73.55 2.87S63.7 18.96 63 20.27z",fill:"#ffa722"}),n("path",{d:"M92.8 32.23c-1.81.56-1.76 1.67-.79 3.08c.97 1.41 7.65 11.6 8.26 12.31c.62.7 1.67.88 2.55-.18c.88-1.05 11.86-16.45 12.66-17.41c1.32-1.58.53-3.25-1.49-2.73c-1.54.41-20.05 4.58-21.19 4.93z",fill:"#ffa722"}),n("path",{d:"M106.6 61.86c-1.3-.74-2.99-.53-3.43 1.14c-.44 1.67-2.37 13.8-2.55 14.86s.62 2.11 1.93 1.85s19.45-2.95 20.66-3.25c2.11-.53 2.81-2.64.62-4.22c-1.42-1.03-16-9.68-17.23-10.38z",fill:"#ffa722"}),n("path",{d:"M92.09 90.6c1.4-.75 2.64-.18 2.99 1.41c.35 1.58 4.22 17.76 4.84 20.75c.31 1.5-1.41 2.73-2.81 1.85c-1.41-.88-16.69-11.53-17.67-12.4c-1.41-1.23-.43-2.51.26-3.16c1.4-1.33 11.07-7.74 12.39-8.45z",fill:"#ffa722"}),n("path",{d:"M49.54 99.48c-1.77-.17-2.29 1.41-2.02 2.81c.26 1.41 2.9 19.24 3.08 20.57c.26 1.93 2.29 2.73 3.6.79s10.35-16.4 11.08-17.76c1.32-2.46.35-2.99-.97-3.6c-1.31-.61-12.92-2.63-14.77-2.81z",fill:"#ffa722"}),n("path",{d:"M24.23 79c1.23-2.02 2.81-1.49 3.96.44c.78 1.32 7.38 10.2 8 11.16c.62.97.88 2.81-1.05 3.25c-1.95.45-17.68 4.58-20.14 5.02c-2.46.44-3.87-1.49-2.29-3.6c.92-1.24 10.82-15.12 11.52-16.27z",fill:"#ffa722"}),n("path",{d:"M20.89 63.7c2.25 1 3.31.64 3.78-.97c.62-2.11 2.46-11.78 2.55-13.98c.06-1.43-.53-2.81-2.73-2.46S6.47 48.85 4.45 49.55c-2.35.82-2.18 3.4-.62 4.22c1.85.97 15.47 9.23 17.06 9.93z",fill:"#ffa722"}),n("path",{d:"M48.23 26.78c1.27-1.01.88-2.46-.26-3.25c-1.14-.79-15.26-11-17.05-12.4c-1.58-1.23-3.52-.79-2.99 2.02c.38 2.02 4.88 19.7 5.19 20.92c.35 1.41 1.41 2.11 2.64 1.23c1.21-.87 11.15-7.46 12.47-8.52z",fill:"#ffa722"})]}))},Fe=function(r){var a=r.darkMode,c=r.onToggle,o=r.toggleFullscreen,i=r.handleOpenFileDetailSection,h=r.showFullscreenIcon,s=r.showFileSummaryIButton,d=l(!1),m=d[0],v=d[1];return e("div",E({style:De.container},{children:[e("div",E({style:{position:"relative",display:"inline-block"},onMouseEnter:function(){return v(!0)},onMouseLeave:function(){return v(!1)}},{children:[s?n("button",E({onClick:function(e){i(e)},style:{background:"transparent",color:"white",border:"none",borderRadius:"50%",width:"24px",height:"24px",fontWeight:"bold",cursor:"pointer",marginRight:"1rem",fontSize:"16px",zIndex:1e3,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"auto",padding:0}},{children:n(Pe,{})})):n(t,{}),m&&n("div",E({style:{position:"absolute",zIndex:1001,bottom:"125%",left:"50%",transform:"translateX(-50%)",backgroundColor:"#555",color:"#fff",padding:"5px 8px",borderRadius:"6px",fontSize:"12px",textAlign:"center",whiteSpace:"nowrap",opacity:1,transition:"opacity 0.3s"}},{children:"Click to see file summary"}))]})),e("label",E({className:"theme-switch",style:De.switch},{children:[n("input",{type:"checkbox",checked:a,onChange:c,onClick:c,style:De.input}),n("div",E({style:E(E({},De.slider),{backgroundColor:a?"#444":"#f7f7f7"}),onClick:c},{children:n("div",E({style:E(E({},De.thumb),{transform:a?"translateX(22px)":"translateX(0)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:13,backgroundColor:a?"#444":"#f7f7f7"})},{children:a?"🌙":n(Ne,{})}))}))]})),h?n("button",E({onClick:function(e){return o(e)},style:{background:"transparent",border:"none",padding:"7px 6px",borderRadius:"6px",cursor:"pointer",fontSize:"1.5rem",color:"black",transition:"background 0.3s"},title:"Toggle fullscreen"},{children:"⛶"})):n(t,{})]}))},De={container:{display:"flex",alignItems:"center",gap:8},icon:{fontSize:20,transition:"transform 0.3s ease"},switch:{position:"relative",display:"inline-block",width:44,height:24},input:{opacity:0,width:0,height:0},slider:{position:"absolute",cursor:"pointer",top:0,left:0,right:0,bottom:0,transition:"0.4s",borderRadius:20},thumb:{position:"absolute",height:19,width:19,backgroundColor:"white",borderRadius:"50%",top:2,left:2,transition:"transform 0.3s ease"}},Ie={black:"#000",white:"#fff"},Be="#e57373",Ue="#f44336",je="#d32f2f",We="#ff4081",Ge="#f50057",$e="#c51162",qe="#7986cb",Ye="#3f51b5",Ke="#303f9f",Xe="#64b5f6",Qe="#2196f3",Je="#1976d2",Ze="#81c784",et="#4caf50",tt="#388e3c",nt="#ffb74d",rt="#ff9800",at="#f57c00",ct={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},lt="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function ot(){throw new Error("setTimeout has not been defined")}function it(){throw new Error("clearTimeout has not been defined")}var ht=ot,st=it;function dt(e){if(ht===setTimeout)return setTimeout(e,0);if((ht===ot||!ht)&&setTimeout)return ht=setTimeout,setTimeout(e,0);try{return ht(e,0)}catch(t){try{return ht.call(null,e,0)}catch(t){return ht.call(this,e,0)}}}"function"==typeof lt.setTimeout&&(ht=setTimeout),"function"==typeof lt.clearTimeout&&(st=clearTimeout);var mt,vt=[],ut=!1,pt=-1;function zt(){ut&&mt&&(ut=!1,mt.length?vt=mt.concat(vt):pt=-1,vt.length&&ft())}function ft(){if(!ut){var e=dt(zt);ut=!0;for(var t=vt.length;t;){for(mt=vt,vt=[];++pt<t;)mt&&mt[pt].run();pt=-1,t=vt.length}mt=null,ut=!1,function(e){if(st===clearTimeout)return clearTimeout(e);if((st===it||!st)&&clearTimeout)return st=clearTimeout,clearTimeout(e);try{return st(e)}catch(t){try{return st.call(null,e)}catch(t){return st.call(this,e)}}}(e)}}function gt(e,t){this.fun=e,this.array=t}gt.prototype.run=function(){this.fun.apply(null,this.array)};function Et(){}var Mt=Et,Ht=Et,Vt=Et,yt=Et,Lt=Et,bt=Et,Ct=Et;var St=lt.performance||{},Tt=St.now||St.mozNow||St.msNow||St.oNow||St.webkitNow||function(){return(new Date).getTime()};var wt=new Date;var xt={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];vt.push(new gt(e,t)),1!==vt.length||ut||dt(ft)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Mt,addListener:Ht,once:Vt,off:yt,removeListener:Lt,removeAllListeners:bt,emit:Ct,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*Tt.call(St),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-wt)/1e3}};function Rt(e,t){return"production"===xt.env.NODE_ENV?function(){return null}:function(){return e.apply(void 0,arguments)||t.apply(void 0,arguments)}}function Ot(){return Ot=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ot.apply(null,arguments)}function At(e){return At="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},At(e)}function kt(e){return e&&"object"===At(e)&&e.constructor===Object}function _t(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?Ot({},e):e;return kt(e)&&kt(t)&&Object.keys(t).forEach((function(a){"__proto__"!==a&&(kt(t[a])&&a in e?r[a]=_t(e[a],t[a],n):r[a]=t[a])})),r}var Pt,Nt={exports:{}},Ft={exports:{}},Dt={};var It,Bt,Ut,jt,Wt,Gt,$t,qt,Yt,Kt,Xt,Qt,Jt,Zt,en,tn={};function nn(){return Bt||(Bt=1,"production"===xt.env.NODE_ENV?Ft.exports=function(){if(Pt)return Dt;Pt=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,i=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,s=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,u=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,z=e?Symbol.for("react.fundamental"):60117,f=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case i:case h:case r:case c:case a:case d:return e;default:switch(e=e&&e.$$typeof){case o:case s:case u:case v:case l:return e;default:return m}}case n:return m}}}function M(e){return E(e)===h}return Dt.AsyncMode=i,Dt.ConcurrentMode=h,Dt.ContextConsumer=o,Dt.ContextProvider=l,Dt.Element=t,Dt.ForwardRef=s,Dt.Fragment=r,Dt.Lazy=u,Dt.Memo=v,Dt.Portal=n,Dt.Profiler=c,Dt.StrictMode=a,Dt.Suspense=d,Dt.isAsyncMode=function(e){return M(e)||E(e)===i},Dt.isConcurrentMode=M,Dt.isContextConsumer=function(e){return E(e)===o},Dt.isContextProvider=function(e){return E(e)===l},Dt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Dt.isForwardRef=function(e){return E(e)===s},Dt.isFragment=function(e){return E(e)===r},Dt.isLazy=function(e){return E(e)===u},Dt.isMemo=function(e){return E(e)===v},Dt.isPortal=function(e){return E(e)===n},Dt.isProfiler=function(e){return E(e)===c},Dt.isStrictMode=function(e){return E(e)===a},Dt.isSuspense=function(e){return E(e)===d},Dt.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===h||e===c||e===a||e===d||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===u||e.$$typeof===v||e.$$typeof===l||e.$$typeof===o||e.$$typeof===s||e.$$typeof===z||e.$$typeof===f||e.$$typeof===g||e.$$typeof===p)},Dt.typeOf=E,Dt}():Ft.exports=(It||(It=1,"production"!==xt.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,i=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,s=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,u=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,z=e?Symbol.for("react.fundamental"):60117,f=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:var p=e.type;switch(p){case i:case h:case r:case c:case a:case d:return p;default:var z=p&&p.$$typeof;switch(z){case o:case s:case u:case v:case l:return z;default:return m}}case n:return m}}}var M=i,H=h,V=o,y=l,L=t,b=s,C=r,S=u,T=v,w=n,x=c,R=a,O=d,A=!1;function k(e){return E(e)===h}tn.AsyncMode=M,tn.ConcurrentMode=H,tn.ContextConsumer=V,tn.ContextProvider=y,tn.Element=L,tn.ForwardRef=b,tn.Fragment=C,tn.Lazy=S,tn.Memo=T,tn.Portal=w,tn.Profiler=x,tn.StrictMode=R,tn.Suspense=O,tn.isAsyncMode=function(e){return A||(A=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),k(e)||E(e)===i},tn.isConcurrentMode=k,tn.isContextConsumer=function(e){return E(e)===o},tn.isContextProvider=function(e){return E(e)===l},tn.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},tn.isForwardRef=function(e){return E(e)===s},tn.isFragment=function(e){return E(e)===r},tn.isLazy=function(e){return E(e)===u},tn.isMemo=function(e){return E(e)===v},tn.isPortal=function(e){return E(e)===n},tn.isProfiler=function(e){return E(e)===c},tn.isStrictMode=function(e){return E(e)===a},tn.isSuspense=function(e){return E(e)===d},tn.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===h||e===c||e===a||e===d||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===u||e.$$typeof===v||e.$$typeof===l||e.$$typeof===o||e.$$typeof===s||e.$$typeof===z||e.$$typeof===f||e.$$typeof===g||e.$$typeof===p)},tn.typeOf=E}()),tn)),Ft.exports}
2
2
  /*
3
3
  object-assign
4
4
  (c) Sindre Sorhus
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).MyLibrary={},e.jsxRuntime,e.React,e.ReactDOM)}(this,(function(e,t,n,r){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function c(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var l=a(n),o=c(n),i=c(r),h=a(r),s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},s.apply(this,arguments)};function d(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function m(e,t,n,r){return new(n||(n=Promise))((function(a,c){function l(e){try{i(r.next(e))}catch(e){c(e)}}function o(e){try{i(r.throw(e))}catch(e){c(e)}}function i(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,o)}i((r=r.apply(e,t||[])).next())}))}function u(e,t){var n,r,a,c={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return l.next=o(0),l.throw=o(1),l.return=o(2),"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function o(o){return function(i){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;l&&(l=0,o[0]&&(c=0)),c;)try{if(n=1,r&&(a=2&o[0]?r.return:o[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;switch(r=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!(a=c.trys,(a=a.length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){c.label=o[1];break}if(6===o[0]&&c.label<a[1]){c.label=a[1],a=o;break}if(a&&c.label<a[2]){c.label=a[2],c.ops.push(o);break}a[2]&&c.ops.pop(),c.trys.pop();continue}o=t.call(e,c)}catch(e){o=[6,e],r=0}finally{n=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,i])}}}function v(e,t,n){if(n||2===arguments.length)for(var r,a=0,c=t.length;a<c;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}function p(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===n&&r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}"function"==typeof SuppressedError&&SuppressedError;var z="CodeCitation-module_pillButton__pugFh",f="CodeCitation-module_citationWrapper__goB2r",g="CodeCitation-module_citationContent__fFlqE",E="CodeCitation-module_citationContainerTitle__Dt0Bq";function M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach((function(t){M(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function T(e){return function t(){for(var n=this,r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return a.length>=e.length?e.apply(this,a):function(){for(var e=arguments.length,r=new Array(e),c=0;c<e;c++)r[c]=arguments[c];return t.apply(n,[].concat(a,r))}}}function w(e){return{}.toString.call(e).includes("Object")}function x(e){return"function"==typeof e}p('@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;700&display=swap");.CodeCitation-module_pillButton__pugFh{align-items:center;background-color:#1e2135;border:1px solid #344054;border-radius:6px;color:#fff;cursor:pointer;display:flex;font-family:Plus Jakarta Sans,sans-serif;font-family:Montserrat,sans-serif;font-size:12px;font-weight:550;gap:6px;justify-content:space-between;line-height:18px;margin:8px 4px;padding:4px 8px;width:fit-content}.CodeCitation-module_citationWrapper__goB2r{display:flex;justify-content:center;margin-top:8px}.CodeCitation-module_citationContent__fFlqE{background-color:#111827;border-radius:12px;color:#fff;min-height:42rem;padding:12px;width:32rem}.CodeCitation-module_bookHeader__LxVTS{display:flex;justify-content:space-between;margin-bottom:24px}.CodeCitation-module_bookInfo__45kX0{display:flex;gap:16px}.CodeCitation-module_bookCover__AGca3{height:auto;object-fit:cover;width:40px}.CodeCitation-module_title__GgfpM{font-family:serif;font-size:1.25rem;font-weight:700}.CodeCitation-module_author__IyoJH{font-family:serif;font-size:1rem;font-weight:500}.CodeCitation-module_scrollContainer__iSbL4{background-color:#f2f0f0;border-radius:8px;color:#181b1f;font-family:Times New Roman,Times,serif;font-size:14.4px;height:100%;line-height:1.4;overflow-y:auto;padding:40px;position:relative}.CodeCitation-module_spineLeft__8goHj,.CodeCitation-module_spineRight__HG-aa{bottom:0;opacity:.5;pointer-events:none;position:absolute;top:0;width:16px;z-index:0}.CodeCitation-module_spineLeft__8goHj{background:linear-gradient(90deg,#000 0,#0009 40%,#0003 70%,#0000);box-shadow:4px 0 8px #0000001a;right:5px}.CodeCitation-module_spineRight__HG-aa{background:linear-gradient(270deg,#000 0,#000000b3 40%,#0006 70%,#0000);box-shadow:-4px 0 8px #0000001a;right:20px}.CodeCitation-module_quoteParagraph__-3mva{margin-bottom:1rem;text-align:justify}.CodeCitation-module_indent__KfIxR{text-indent:1rem}.CodeCitation-module_pageNumber__eUsN9{color:#374151;font-weight:500;padding:.5rem;text-align:center}.CodeCitation-module_citationContainerTitle__Dt0Bq{font-family:Plus Jakarta Sans,sans-serif}');var R=T((function(e,t){throw new Error(e[t]||e.default)}))({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),O={changes:function(e,t){return w(t)||R("changeType"),Object.keys(t).some((function(t){return n=e,r=t,!Object.prototype.hasOwnProperty.call(n,r);var n,r}))&&R("changeField"),t},selector:function(e){x(e)||R("selectorType")},handler:function(e){x(e)||w(e)||R("handlerType"),w(e)&&Object.values(e).some((function(e){return!x(e)}))&&R("handlersType")},initial:function(e){var t;e||R("initialIsRequired"),w(e)||R("initialType"),t=e,Object.keys(t).length||R("initialContent")}};function A(e,t){return x(t)?t(e.current):t}function k(e,t){return e.current=S(S({},e.current),t),t}function _(e,t,n){return x(t)?t(e.current):Object.keys(n).forEach((function(n){var r;return null===(r=t[n])||void 0===r?void 0:r.call(t,e.current[n])})),n}var P={create:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};O.initial(e),O.handler(t);var n={current:e},r=T(_)(n,t),a=T(k)(n),c=T(O.changes)(e),l=T(A)(n);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return O.selector(e),e(n.current)},function(e){!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight((function(e,t){return t(e)}),e)}}(r,a,c,l)(e)}]}};var N={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},F=function(e){return function t(){for(var n=this,r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return a.length>=e.length?e.apply(this,a):function(){for(var e=arguments.length,r=new Array(e),c=0;c<e;c++)r[c]=arguments[c];return t.apply(n,[].concat(a,r))}}}((function(e,t){throw new Error(e[t]||e.default)}))(N),D={config:function(e){var t;return e||F("configIsRequired"),t=e,{}.toString.call(t).includes("Object")||F("configType"),e.urls?(console.warn(N.deprecation),{paths:{vs:e.urls.monacoBase}}):e}};function I(e,t){return Object.keys(t).forEach((function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],I(e[n],t[n]))})),V(V({},e),t)}var B={type:"cancelation",msg:"operation is manually canceled"};function j(e){var t=!1,n=new Promise((function(n,r){e.then((function(e){return t?r(B):n(e)})),e.catch(r)}));return n.cancel=function(){return t=!0},n}var U,W,G=P.create({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}),$=(W=2,function(e){if(Array.isArray(e))return e}(U=G)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,a=!1,c=void 0;try{for(var l,o=e[Symbol.iterator]();!(r=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(e){a=!0,c=e}finally{try{r||null==o.return||o.return()}finally{if(a)throw c}}return n}}(U,W)||function(e,t){if(e){if("string"==typeof e)return L(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(e,t):void 0}}(U,W)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),q=$[0],Y=$[1];function K(e){return document.body.appendChild(e)}function X(e){var t,n,r=q((function(e){return{config:e.config,reject:e.reject}})),a=(t="".concat(r.config.paths.vs,"/loader.js"),n=document.createElement("script"),t&&(n.src=t),n);return a.onload=function(){return e()},a.onerror=r.reject,a}function Q(){var e=q((function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}})),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],(function(t){J(t),e.resolve(t)}),(function(t){e.reject(t)}))}function J(e){q().monaco||Y({monaco:e})}var Z=new Promise((function(e,t){return Y({resolve:e,reject:t})})),ee={config:function(e){var t=D.config(e),n=t.monaco,r=y(t,["monaco"]);Y((function(e){return{config:I(e.config,r),monaco:n}}))},init:function(){var e=q((function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}}));if(!e.isInitialized){if(Y({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),j(Z);if(window.monaco&&window.monaco.editor)return J(window.monaco),e.resolve(window.monaco),j(Z);!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight((function(e,t){return t(e)}),e)}}(K,X)(Q)}return j(Z)},__getMonacoInstance:function(){return q((function(e){return e.monaco}))}},te={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},ne={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}};var re=function({children:e}){return l.default.createElement("div",{style:ne.container},e)},ae=re;var ce=function({width:e,height:t,isEditorReady:n,loading:r,_ref:a,className:c,wrapperProps:o}){return l.default.createElement("section",{style:{...te.wrapper,width:e,height:t},...o},!n&&l.default.createElement(ae,null,r),l.default.createElement("div",{ref:a,style:{...te.fullWidth,...!n&&te.hide},className:c}))},le=n.memo(ce);var oe=function(e){n.useEffect(e,[])};var ie=function(e,t,r=!0){let a=n.useRef(!0);n.useEffect(a.current||!r?()=>{a.current=!1}:e,t)};function he(){}function se(e,t,n,r){return function(e,t){return e.editor.getModel(de(e,t))}(e,r)||function(e,t,n,r){return e.editor.createModel(t,n,r?de(e,r):void 0)}(e,t,n,r)}function de(e,t){return e.Uri.parse(t)}var me=function({original:e,modified:t,language:r,originalLanguage:a,modifiedLanguage:c,originalModelPath:o,modifiedModelPath:i,keepCurrentOriginalModel:h=!1,keepCurrentModifiedModel:s=!1,theme:d="light",loading:m="Loading...",options:u={},height:v="100%",width:p="100%",className:z,wrapperProps:f={},beforeMount:g=he,onMount:E=he}){let[M,H]=n.useState(!1),[V,y]=n.useState(!0),L=n.useRef(null),b=n.useRef(null),C=n.useRef(null),S=n.useRef(E),T=n.useRef(g),w=n.useRef(!1);oe((()=>{let e=ee.init();return e.then((e=>(b.current=e)&&y(!1))).catch((e=>"cancelation"!==e?.type&&console.error("Monaco initialization: error:",e))),()=>L.current?function(){let e=L.current?.getModel();h||e?.original?.dispose(),s||e?.modified?.dispose(),L.current?.dispose()}():e.cancel()})),ie((()=>{if(L.current&&b.current){let t=L.current.getOriginalEditor(),n=se(b.current,e||"",a||r||"text",o||"");n!==t.getModel()&&t.setModel(n)}}),[o],M),ie((()=>{if(L.current&&b.current){let e=L.current.getModifiedEditor(),n=se(b.current,t||"",c||r||"text",i||"");n!==e.getModel()&&e.setModel(n)}}),[i],M),ie((()=>{let e=L.current.getModifiedEditor();e.getOption(b.current.editor.EditorOption.readOnly)?e.setValue(t||""):t!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),e.pushUndoStop())}),[t],M),ie((()=>{L.current?.getModel()?.original.setValue(e||"")}),[e],M),ie((()=>{let{original:e,modified:t}=L.current.getModel();b.current.editor.setModelLanguage(e,a||r||"text"),b.current.editor.setModelLanguage(t,c||r||"text")}),[r,a,c],M),ie((()=>{b.current?.editor.setTheme(d)}),[d],M),ie((()=>{L.current?.updateOptions(u)}),[u],M);let x=n.useCallback((()=>{if(!b.current)return;T.current(b.current);let n=se(b.current,e||"",a||r||"text",o||""),l=se(b.current,t||"",c||r||"text",i||"");L.current?.setModel({original:n,modified:l})}),[r,t,c,e,a,o,i]),R=n.useCallback((()=>{!w.current&&C.current&&(L.current=b.current.editor.createDiffEditor(C.current,{automaticLayout:!0,...u}),x(),b.current?.editor.setTheme(d),H(!0),w.current=!0)}),[u,d,x]);return n.useEffect((()=>{M&&S.current(L.current,b.current)}),[M]),n.useEffect((()=>{!V&&!M&&R()}),[V,M,R]),l.default.createElement(le,{width:p,height:v,isEditorReady:M,loading:m,_ref:C,className:z,wrapperProps:f})};n.memo(me);var ue=function(e){let t=n.useRef();return n.useEffect((()=>{t.current=e}),[e]),t.current},ve=new Map;var pe,ze,fe=function({defaultValue:e,defaultLanguage:t,defaultPath:r,value:a,language:c,path:o,theme:i="light",line:h,loading:s="Loading...",options:d={},overrideServices:m={},saveViewState:u=!0,keepCurrentModel:v=!1,width:p="100%",height:z="100%",className:f,wrapperProps:g={},beforeMount:E=he,onMount:M=he,onChange:H,onValidate:V=he}){let[y,L]=n.useState(!1),[b,C]=n.useState(!0),S=n.useRef(null),T=n.useRef(null),w=n.useRef(null),x=n.useRef(M),R=n.useRef(E),O=n.useRef(),A=n.useRef(a),k=ue(o),_=n.useRef(!1),P=n.useRef(!1);oe((()=>{let e=ee.init();return e.then((e=>(S.current=e)&&C(!1))).catch((e=>"cancelation"!==e?.type&&console.error("Monaco initialization: error:",e))),()=>T.current?(O.current?.dispose(),v?u&&ve.set(o,T.current.saveViewState()):T.current.getModel()?.dispose(),void T.current.dispose()):e.cancel()})),ie((()=>{let n=se(S.current,e||a||"",t||c||"",o||r||"");n!==T.current?.getModel()&&(u&&ve.set(k,T.current?.saveViewState()),T.current?.setModel(n),u&&T.current?.restoreViewState(ve.get(o)))}),[o],y),ie((()=>{T.current?.updateOptions(d)}),[d],y),ie((()=>{!T.current||void 0===a||(T.current.getOption(S.current.editor.EditorOption.readOnly)?T.current.setValue(a):a!==T.current.getValue()&&(P.current=!0,T.current.executeEdits("",[{range:T.current.getModel().getFullModelRange(),text:a,forceMoveMarkers:!0}]),T.current.pushUndoStop(),P.current=!1))}),[a],y),ie((()=>{let e=T.current?.getModel();e&&c&&S.current?.editor.setModelLanguage(e,c)}),[c],y),ie((()=>{void 0!==h&&T.current?.revealLine(h)}),[h],y),ie((()=>{S.current?.editor.setTheme(i)}),[i],y);let N=n.useCallback((()=>{if(w.current&&S.current&&!_.current){R.current(S.current);let n=o||r,l=se(S.current,a||e||"",t||c||"",n||"");T.current=S.current?.editor.create(w.current,{model:l,automaticLayout:!0,...d},m),u&&T.current.restoreViewState(ve.get(n)),S.current.editor.setTheme(i),void 0!==h&&T.current.revealLine(h),L(!0),_.current=!0}}),[e,t,r,a,c,o,d,m,u,i,h]);return n.useEffect((()=>{y&&x.current(T.current,S.current)}),[y]),n.useEffect((()=>{!b&&!y&&N()}),[b,y,N]),A.current=a,n.useEffect((()=>{y&&H&&(O.current?.dispose(),O.current=T.current?.onDidChangeModelContent((e=>{P.current||H(T.current.getValue(),e)})))}),[y,H]),n.useEffect((()=>{if(y){let e=S.current.editor.onDidChangeMarkers((e=>{let t=T.current.getModel()?.uri;if(t&&e.find((e=>e.path===t.path))){let e=S.current.editor.getModelMarkers({resource:t});V?.(e)}}));return()=>{e?.dispose()}}return()=>{}}),[y,V]),l.default.createElement(le,{width:p,height:z,isEditorReady:y,loading:s,_ref:w,className:f,wrapperProps:g})},ge=n.memo(fe);function Ee(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Me(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var He,Ve=function(){if(ze)return pe;function e(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach((n=>{const r=t[n],a=typeof r;"object"!==a&&"function"!==a||Object.isFrozen(r)||e(r)})),t}ze=1;class t{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function r(e,...t){const n=Object.create(null);for(const t in e)n[t]=e[t];return t.forEach((function(e){for(const t in e)n[t]=e[t]})),n}const a=e=>!!e.scope;class c{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=n(e)}openNode(e){if(!a(e))return;const t=((e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map(((e,t)=>`${e}${"_".repeat(t+1)}`))].join(" ")}return`${t}${e}`})(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){a(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const l=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class o{constructor(){this.rootNode=l(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=l({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach((t=>this._walk(e,t))),e.closeNode(t)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{o._collapse(e)})))}}class i extends o{constructor(e){super(),this.options=e}addText(e){""!==e&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){return new c(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function h(e){return e?"string"==typeof e?e:e.source:null}function s(e){return u("(?=",e,")")}function d(e){return u("(?:",e,")*")}function m(e){return u("(?:",e,")?")}function u(...e){const t=e.map((e=>h(e))).join("");return t}function v(...e){const t=function(e){const t=e[e.length-1];return"object"==typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}(e),n="("+(t.capture?"":"?:")+e.map((e=>h(e))).join("|")+")";return n}function p(e){return new RegExp(e.toString()+"|").exec("").length-1}const z=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function f(e,{joinWith:t}){let n=0;return e.map((e=>{n+=1;const t=n;let r=h(e),a="";for(;r.length>0;){const e=z.exec(r);if(!e){a+=r;break}a+=r.substring(0,e.index),r=r.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?a+="\\"+String(Number(e[1])+t):(a+=e[0],"("===e[0]&&n++)}return a})).map((e=>`(${e})`)).join(t)}const g="[a-zA-Z]\\w*",E="[a-zA-Z_]\\w*",M="\\b\\d+(\\.\\d+)?",H="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",V="\\b(0b[01]+)",y={begin:"\\\\[\\s\\S]",relevance:0},L={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[y]},b={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[y]},C=function(e,t,n={}){const a=r({scope:"comment",begin:e,end:t,contains:[]},n);a.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const c=v("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return a.contains.push({begin:u(/[ ]+/,"(",c,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),a},S=C("//","$"),T=C("/\\*","\\*/"),w=C("#","$"),x={scope:"number",begin:M,relevance:0},R={scope:"number",begin:H,relevance:0},O={scope:"number",begin:V,relevance:0},A={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[y,{begin:/\[/,end:/\]/,relevance:0,contains:[y]}]},k={scope:"title",begin:g,relevance:0},_={scope:"title",begin:E,relevance:0},P={begin:"\\.\\s*"+E,relevance:0};var N=Object.freeze({__proto__:null,APOS_STRING_MODE:L,BACKSLASH_ESCAPE:y,BINARY_NUMBER_MODE:O,BINARY_NUMBER_RE:V,COMMENT:C,C_BLOCK_COMMENT_MODE:T,C_LINE_COMMENT_MODE:S,C_NUMBER_MODE:R,C_NUMBER_RE:H,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})},HASH_COMMENT_MODE:w,IDENT_RE:g,MATCH_NOTHING_RE:/\b\B/,METHOD_GUARD:P,NUMBER_MODE:x,NUMBER_RE:M,PHRASAL_WORDS_MODE:{begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},QUOTE_STRING_MODE:b,REGEXP_MODE:A,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=u(t,/.*\b/,e.binary,/\b.*/)),r({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},TITLE_MODE:k,UNDERSCORE_IDENT_RE:E,UNDERSCORE_TITLE_MODE:_});function F(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function D(e,t){void 0!==e.className&&(e.scope=e.className,delete e.className)}function I(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=F,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function B(e,t){Array.isArray(e.illegal)&&(e.illegal=v(...e.illegal))}function j(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function U(e,t){void 0===e.relevance&&(e.relevance=1)}const W=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach((t=>{delete e[t]})),e.keywords=n.keywords,e.begin=u(n.beforeMatch,s(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},G=["of","and","for","in","not","or","if","then","parent","list","value"];function $(e,t,n="keyword"){const r=Object.create(null);return"string"==typeof e?a(n,e.split(" ")):Array.isArray(e)?a(n,e):Object.keys(e).forEach((function(n){Object.assign(r,$(e[n],t,n))})),r;function a(e,n){t&&(n=n.map((e=>e.toLowerCase()))),n.forEach((function(t){const n=t.split("|");r[n[0]]=[e,q(n[0],n[1])]}))}}function q(e,t){return t?Number(t):function(e){return G.includes(e.toLowerCase())}(e)?0:1}const Y={},K=e=>{console.error(e)},X=(e,...t)=>{console.log(`WARN: ${e}`,...t)},Q=(e,t)=>{Y[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),Y[`${e}/${t}`]=!0)},J=new Error;function Z(e,t,{key:n}){let r=0;const a=e[n],c={},l={};for(let e=1;e<=t.length;e++)l[e+r]=a[e],c[e+r]=!0,r+=p(t[e-1]);e[n]=l,e[n]._emit=c,e[n]._multi=!0}function ee(e){!function(e){e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,delete e.scope)}(e),"string"==typeof e.beginScope&&(e.beginScope={_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope}),function(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw K("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),J;if("object"!=typeof e.beginScope||null===e.beginScope)throw K("beginScope must be object"),J;Z(e,e.begin,{key:"beginScope"}),e.begin=f(e.begin,{joinWith:""})}}(e),function(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw K("skip, excludeEnd, returnEnd not compatible with endScope: {}"),J;if("object"!=typeof e.endScope||null===e.endScope)throw K("endScope must be object"),J;Z(e,e.end,{key:"endScope"}),e.end=f(e.end,{joinWith:""})}}(e)}function te(e){function t(t,n){return new RegExp(h(t),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(n?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=p(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map((e=>e[1]));this.matcherRe=t(f(e,{joinWith:"|"}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const n=t.findIndex(((e,t)=>t>0&&void 0!==e)),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class a{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new n;return this.rules.slice(e).forEach((([e,n])=>t.addRule(e,n))),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=r(e.classNameAliases||{}),function n(c,l){const o=c;if(c.isCompiled)return o;[D,j,ee,W].forEach((e=>e(c,l))),e.compilerExtensions.forEach((e=>e(c,l))),c.__beforeBegin=null,[I,B,U].forEach((e=>e(c,l))),c.isCompiled=!0;let i=null;return"object"==typeof c.keywords&&c.keywords.$pattern&&(c.keywords=Object.assign({},c.keywords),i=c.keywords.$pattern,delete c.keywords.$pattern),i=i||/\w+/,c.keywords&&(c.keywords=$(c.keywords,e.case_insensitive)),o.keywordPatternRe=t(i,!0),l&&(c.begin||(c.begin=/\B|\b/),o.beginRe=t(o.begin),c.end||c.endsWithParent||(c.end=/\B|\b/),c.end&&(o.endRe=t(o.end)),o.terminatorEnd=h(o.end)||"",c.endsWithParent&&l.terminatorEnd&&(o.terminatorEnd+=(c.end?"|":"")+l.terminatorEnd)),c.illegal&&(o.illegalRe=t(c.illegal)),c.contains||(c.contains=[]),c.contains=[].concat(...c.contains.map((function(e){return function(e){e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function(t){return r(e,{variants:null},t)})));if(e.cachedVariants)return e.cachedVariants;if(ne(e))return r(e,{starts:e.starts?r(e.starts):null});if(Object.isFrozen(e))return r(e);return e}("self"===e?c:e)}))),c.contains.forEach((function(e){n(e,o)})),c.starts&&n(c.starts,l),o.matcher=function(e){const t=new a;return e.contains.forEach((e=>t.addRule(e.begin,{rule:e,type:"begin"}))),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(o),o}(e)}function ne(e){return!!e&&(e.endsWithParent||ne(e.starts))}class re extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const ae=n,ce=r,le=Symbol("nomatch"),oe=function(n){const r=Object.create(null),a=Object.create(null),c=[];let l=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",h={disableAutodetect:!0,name:"Plain text",contains:[]};let p={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:i};function z(e){return p.noHighlightRe.test(e)}function f(e,t,n){let r="",a="";"object"==typeof t?(r=e,n=t.ignoreIllegals,a=t.language):(Q("10.7.0","highlight(lang, code, ...args) has been deprecated."),Q("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),a=e,r=t),void 0===n&&(n=!0);const c={code:r,language:a};C("before:highlight",c);const l=c.result?c.result:g(c.language,c.code,n);return l.code=c.code,C("after:highlight",l),l}function g(e,n,a,c){const i=Object.create(null);function h(){if(!C.keywords)return void T.addText(w);let e=0;C.keywordPatternRe.lastIndex=0;let t=C.keywordPatternRe.exec(w),n="";for(;t;){n+=w.substring(e,t.index);const a=V.case_insensitive?t[0].toLowerCase():t[0],c=(r=a,C.keywords[r]);if(c){const[e,r]=c;if(T.addText(n),n="",i[a]=(i[a]||0)+1,i[a]<=7&&(x+=r),e.startsWith("_"))n+=t[0];else{const n=V.classNameAliases[e]||e;d(t[0],n)}}else n+=t[0];e=C.keywordPatternRe.lastIndex,t=C.keywordPatternRe.exec(w)}var r;n+=w.substring(e),T.addText(n)}function s(){null!=C.subLanguage?function(){if(""===w)return;let e=null;if("string"==typeof C.subLanguage){if(!r[C.subLanguage])return void T.addText(w);e=g(C.subLanguage,w,!0,S[C.subLanguage]),S[C.subLanguage]=e._top}else e=E(w,C.subLanguage.length?C.subLanguage:null);C.relevance>0&&(x+=e.relevance),T.__addSublanguage(e._emitter,e.language)}():h(),w=""}function d(e,t){""!==e&&(T.startScope(t),T.addText(e),T.endScope())}function m(e,t){let n=1;const r=t.length-1;for(;n<=r;){if(!e._emit[n]){n++;continue}const r=V.classNameAliases[e[n]]||e[n],a=t[n];r?d(a,r):(w=a,h(),w=""),n++}}function u(e,t){return e.scope&&"string"==typeof e.scope&&T.openNode(V.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(d(w,V.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),w=""):e.beginScope._multi&&(m(e.beginScope,t),w="")),C=Object.create(e,{parent:{value:C}}),C}function v(e,n,r){let a=function(e,t){const n=e&&e.exec(t);return n&&0===n.index}(e.endRe,r);if(a){if(e["on:end"]){const r=new t(e);e["on:end"](n,r),r.isMatchIgnored&&(a=!1)}if(a){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return v(e.parent,n,r)}function z(e){return 0===C.matcher.regexIndex?(w+=e[0],1):(A=!0,0)}function f(e){const t=e[0],r=n.substring(e.index),a=v(C,e,r);if(!a)return le;const c=C;C.endScope&&C.endScope._wrap?(s(),d(t,C.endScope._wrap)):C.endScope&&C.endScope._multi?(s(),m(C.endScope,e)):c.skip?w+=t:(c.returnEnd||c.excludeEnd||(w+=t),s(),c.excludeEnd&&(w=t));do{C.scope&&T.closeNode(),C.skip||C.subLanguage||(x+=C.relevance),C=C.parent}while(C!==a.parent);return a.starts&&u(a.starts,e),c.returnEnd?0:t.length}let M={};function H(r,c){const o=c&&c[0];if(w+=r,null==o)return s(),0;if("begin"===M.type&&"end"===c.type&&M.index===c.index&&""===o){if(w+=n.slice(c.index,c.index+1),!l){const t=new Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=M.rule,t}return 1}if(M=c,"begin"===c.type)return function(e){const n=e[0],r=e.rule,a=new t(r),c=[r.__beforeBegin,r["on:begin"]];for(const t of c)if(t&&(t(e,a),a.isMatchIgnored))return z(n);return r.skip?w+=n:(r.excludeBegin&&(w+=n),s(),r.returnBegin||r.excludeBegin||(w=n)),u(r,e),r.returnBegin?0:n.length}(c);if("illegal"===c.type&&!a){const e=new Error('Illegal lexeme "'+o+'" for mode "'+(C.scope||"<unnamed>")+'"');throw e.mode=C,e}if("end"===c.type){const e=f(c);if(e!==le)return e}if("illegal"===c.type&&""===o)return w+="\n",1;if(O>1e5&&O>3*c.index){throw new Error("potential infinite loop, way more iterations than matches")}return w+=o,o.length}const V=y(e);if(!V)throw K(o.replace("{}",e)),new Error('Unknown language: "'+e+'"');const L=te(V);let b="",C=c||L;const S={},T=new p.__emitter(p);!function(){const e=[];for(let t=C;t!==V;t=t.parent)t.scope&&e.unshift(t.scope);e.forEach((e=>T.openNode(e)))}();let w="",x=0,R=0,O=0,A=!1;try{if(V.__emitTokens)V.__emitTokens(n,T);else{for(C.matcher.considerAll();;){O++,A?A=!1:C.matcher.considerAll(),C.matcher.lastIndex=R;const e=C.matcher.exec(n);if(!e)break;const t=H(n.substring(R,e.index),e);R=e.index+t}H(n.substring(R))}return T.finalize(),b=T.toHTML(),{language:e,value:b,relevance:x,illegal:!1,_emitter:T,_top:C}}catch(t){if(t.message&&t.message.includes("Illegal"))return{language:e,value:ae(n),illegal:!0,relevance:0,_illegalBy:{message:t.message,index:R,context:n.slice(R-100,R+100),mode:t.mode,resultSoFar:b},_emitter:T};if(l)return{language:e,value:ae(n),illegal:!1,relevance:0,errorRaised:t,_emitter:T,_top:C};throw t}}function E(e,t){t=t||p.languages||Object.keys(r);const n=function(e){const t={value:ae(e),illegal:!1,relevance:0,_top:h,_emitter:new p.__emitter(p)};return t._emitter.addText(e),t}(e),a=t.filter(y).filter(b).map((t=>g(t,e,!1)));a.unshift(n);const c=a.sort(((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(y(e.language).supersetOf===t.language)return 1;if(y(t.language).supersetOf===e.language)return-1}return 0})),[l,o]=c,i=l;return i.secondBest=o,i}function M(e){let t=null;const n=function(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const n=p.languageDetectRe.exec(t);if(n){const t=y(n[1]);return t||(X(o.replace("{}",n[1])),X("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}return t.split(/\s+/).find((e=>z(e)||y(e)))}(e);if(z(n))return;if(C("before:highlightElement",{el:e,language:n}),e.dataset.highlighted)return void console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e);if(e.children.length>0&&(p.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(e)),p.throwUnescapedHTML)){throw new re("One of your code blocks includes unescaped HTML.",e.innerHTML)}t=e;const r=t.textContent,c=n?f(r,{language:n,ignoreIllegals:!0}):E(r);e.innerHTML=c.value,e.dataset.highlighted="yes",function(e,t,n){const r=t&&a[t]||n;e.classList.add("hljs"),e.classList.add(`language-${r}`)}(e,n,c.language),e.result={language:c.language,re:c.relevance,relevance:c.relevance},c.secondBest&&(e.secondBest={language:c.secondBest.language,relevance:c.secondBest.relevance}),C("after:highlightElement",{el:e,result:c,text:r})}let H=!1;function V(){if("loading"===document.readyState)return H||window.addEventListener("DOMContentLoaded",(function(){V()}),!1),void(H=!0);document.querySelectorAll(p.cssSelector).forEach(M)}function y(e){return e=(e||"").toLowerCase(),r[e]||r[a[e]]}function L(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach((e=>{a[e.toLowerCase()]=t}))}function b(e){const t=y(e);return t&&!t.disableAutodetect}function C(e,t){const n=e;c.forEach((function(e){e[n]&&e[n](t)}))}Object.assign(n,{highlight:f,highlightAuto:E,highlightAll:V,highlightElement:M,highlightBlock:function(e){return Q("10.7.0","highlightBlock will be removed entirely in v12.0"),Q("10.7.0","Please use highlightElement now."),M(e)},configure:function(e){p=ce(p,e)},initHighlighting:()=>{V(),Q("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:function(){V(),Q("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:function(e,t){let a=null;try{a=t(n)}catch(t){if(K("Language definition for '{}' could not be registered.".replace("{}",e)),!l)throw t;K(t),a=h}a.name||(a.name=e),r[e]=a,a.rawDefinition=t.bind(null,n),a.aliases&&L(a.aliases,{languageName:e})},unregisterLanguage:function(e){delete r[e];for(const t of Object.keys(a))a[t]===e&&delete a[t]},listLanguages:function(){return Object.keys(r)},getLanguage:y,registerAliases:L,autoDetection:b,inherit:ce,addPlugin:function(e){!function(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{e["before:highlightBlock"](Object.assign({block:t.el},t))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{e["after:highlightBlock"](Object.assign({block:t.el},t))})}(e),c.push(e)},removePlugin:function(e){const t=c.indexOf(e);-1!==t&&c.splice(t,1)}}),n.debugMode=function(){l=!1},n.safeMode=function(){l=!0},n.versionString="11.11.1",n.regex={concat:u,lookahead:s,either:v,optional:m,anyNumberOfTimes:d};for(const t in N)"object"==typeof N[t]&&e(N[t]);return Object.assign(n,N),n},ie=oe({});return ie.newInstance=()=>oe({}),pe=ie,ie.HighlightJS=ie,ie.default=ie,pe}(),ye=Ee(Ve),Le=function(e){return Object.entries(e).map((function(e){var t=e[0],n=e[1];return"".concat(t.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})),": ").concat(n,";")})).join("\n")},be=function(e,t,n){var r=n?"dark":"light",a=JSON.stringify(e).replace(/[^a-zA-Z0-9]/g,"").slice(0,20);return"".concat(r,"-severity-").concat(t,"-").concat(a)};e.DiagnosticSeverity=void 0,(He=e.DiagnosticSeverity||(e.DiagnosticSeverity={}))[He.Error=0]="Error",He[He.Warning=1]="Warning",He[He.Information=2]="Information",He[He.Hint=3]="Hint";var Ce=function(e){var r=e.startIndex,a=e.endIndex,c=e.language,l=e.editorHeight,o=e.editorWidth,i=e.code,h=e.isHighlightingEnabled,s=e.isDarkModeEnabled,d=e.openHighlightedCodeDetails,m=e.highlightCodeStatsLine;e.setHighlightCodeStatsLine;var u=e.highlightCodeStatsVariable;e.setHighlightCodeStatsVariable,e.setHighlightIndexes;var v=e.isExpanded,p=e.highlightIndexes,z=e.diagnostics,f=e.diagnosticStylesBySeverity,g=ye.highlightAuto(i).language,E=n.useRef(null),M=n.useRef([]);n.useRef([]);var H=n.useRef([]),V=n.useMemo((function(){return r}),[r]),y=n.useMemo((function(){return a}),[a]),L=n.useState(null),b=L[0],C=L[1],S=n.useState(null),T=S[0],w=S[1],x=n.useRef([]);n.useEffect((function(){return function(){var e;(null===(e=E.current)||void 0===e?void 0:e._resizeObserver)&&E.current._resizeObserver.disconnect()}}),[]),n.useEffect((function(){if(h&&b&&E.current&&T){var e=b.start,t=b.end;R(E.current,e,t,m,u)}}),[b,T,h,m,u]),n.useEffect((function(){var e,t,n;if(T&&E.current&&h){var r=E.current;if(p&&(null===(e=Object.keys(p))||void 0===e?void 0:e.length)>0&&-1!==(null==p?void 0:p.startIndex)&&-1!==(null==p?void 0:p.endIndex)){var a=null==p?void 0:p.startIndex,c=null==p?void 0:p.endIndex,l=r.deltaDecorations(M.current,[{range:new T.Range(a,1,c,1),options:{isWholeLine:!0,className:"myLineHighlight"}}]);M.current=l}if(m&&(null===(t=Object.keys(m))||void 0===t?void 0:t.length)>0&&-1!==(null==m?void 0:m.startIndex)&&-1!==(null==m?void 0:m.endIndex)&&(null==m?void 0:m.name)){var o=null==m?void 0:m.startIndex,i=null==m?void 0:m.endIndex;l=r.deltaDecorations(M.current,[{range:new T.Range(o,1,i,1),options:{isWholeLine:!0,className:"myLineHighlight"}}]);M.current=l}if(u&&(null===(n=Object.keys(u))||void 0===n?void 0:n.length)>0&&-1!==(null==u?void 0:u.startIndex)&&-1!==(null==u?void 0:u.endIndex)&&(null==m?void 0:m.name)){var s=null==u?void 0:u.startIndex,d=null==u?void 0:u.endIndex;l=r.deltaDecorations(H.current,[{range:new T.Range(s,1,d,1),options:{isWholeLine:!0,className:"myLineHighlight"}}]);H.current=l}}}),[r,a,h,T,m,JSON.stringify(u)]),n.useEffect((function(){if(T&&E.current&&(null==z?void 0:z.length)&&f){var e=E.current,t=z.map((function(e){var t,n,r=function(e,t,n){var r=null==n?void 0:n[e];if(!r)return"myLineHighlight";if(!t){if(r.lightModeStyle)return be(r.lightModeStyle,e,!1);if(r.style)return be(r.style,e,!0);if(r.lightModeClassName)return r.lightModeClassName;if(r.className)return r.className}if(t){if(r.style)return be(r.style,e,!0);if(r.className)return r.className;if(r.lightModeStyle)return be(r.lightModeStyle,e,!1);if(r.lightModeClassName)return r.lightModeClassName}return"myLineHighlight"}(e.severity,null!=s&&s,f);return{range:new T.Range(e.range.lineStart,null!==(t=e.range.columnStart)&&void 0!==t?t:1,e.range.lineEnd,null!==(n=e.range.columnEnd)&&void 0!==n?n:1),options:{className:r,isWholeLine:void 0===e.range.columnStart}}}));x.current=e.deltaDecorations(x.current,t)}}),[z,f,T,s]),n.useEffect((function(){if(T&&E.current&&(null==z?void 0:z.length)){var e=E.current,t=z[0];e.revealRangeInCenterIfOutsideViewport(new T.Range(t.range.lineStart,1,t.range.lineEnd,1),T.editor.ScrollType.Smooth)}}),[T,h,z]);var R=n.useCallback((function(e,t,n,r,a){var c,l;if(T&&e&&h){var o=e.getModel();o&&(t=Math.max(-1,t),(n=Math.min(n,o.getLineCount()))<t&&(n=t),requestAnimationFrame((function(){e.revealRangeInCenterIfOutsideViewport(new T.Range(t,1,n,1),T.editor.ScrollType.Smooth),e.setSelection(new T.Range(t,1,n+1,1))})),r&&-1!==(null==r?void 0:r.startIndex)&&-1!==(null==r?void 0:r.endIndex)&&requestAnimationFrame((function(){e.revealRangeInCenterIfOutsideViewport(new T.Range(null==r?void 0:r.startIndex,1,null==r?void 0:r.endIndex,1),T.editor.ScrollType.Smooth),e.setSelection(new T.Range(null==r?void 0:r.startIndex,1,(null==r?void 0:r.endIndex)+1,1))})),0===(null===(c=Object.keys(a))||void 0===c?void 0:c.length)&&e.getContribution("editor.contrib.findController").getState().change({isRevealed:!1},!1),(null===(l=Object.keys(a))||void 0===l?void 0:l.length)>0&&(requestAnimationFrame((function(){e.revealRangeInCenterIfOutsideViewport(new T.Range(null==a?void 0:a.startIndex,1,null==a?void 0:a.endIndex,1),T.editor.ScrollType.Smooth),e.setSelection(new T.Range(null==a?void 0:a.startIndex,1,(null==a?void 0:a.endIndex)+1,1))})),e.trigger("keyboard","actions.find"),e.getAction("actions.find").run(),e.getContribution("editor.contrib.findController").getState().change({searchString:(null==a?void 0:a.variableName)||"",isRevealed:!0},!1)))}}),[T,h,r,a,null==m?void 0:m.startIndex,null==m?void 0:m.endIndex,u]);n.useEffect((function(){if(E.current&&T&&h){var e=E.current,t=e.onDidLayoutChange((function(){R(e,r,a,m,u)}));return function(){return t.dispose()}}}),[R,r,a,h,null==m?void 0:m.startIndex,null==m?void 0:m.endIndex,u,v]);var O=n.useCallback((function(e,t){R(e,V,y),E.current=e,w(t),C({start:V,end:y});var n=e.getContainerDomNode(),r=new ResizeObserver((function(){e.layout()}));if(r.observe(n),E.current._resizeObserver=r,h){e.getLayoutInfo();var a=e.getDomNode(),c=document.createElement("div");null==a||a.appendChild(c);var l=function(){var t=e.getTopForLineNumber(V)-e.getScrollTop();c.style.top="".concat(t,"px")};e.onDidScrollChange(l),l()}}),[r,a,h,d]);return t.jsxs(t.Fragment,{children:[t.jsx(ge,{height:l,width:o,defaultLanguage:g||c,defaultValue:i,theme:s?"vs-dark":"vs-light",onMount:O,beforeMount:function(e){e.languages.typescript.javascriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0})},options:{minimap:{enabled:!0},overviewRulerLanes:3,fontFamily:"Plus Jakarta Sans, sans-serif",scrollBeyondLastLine:!1,readOnly:!0,smoothScrolling:!0,automaticLayout:!0,lineDecorationsWidth:10,padding:{top:20,bottom:20}}}),t.jsxs("style",{children:[f&&"object"==typeof f&&Object.entries(f).map((function(e){var t=e[0],n=e[1],r=[];return n.style&&r.push(".".concat(be(n.style,+t,!0)," {\n").concat(Le(n.style),"\n}")),n.lightModeStyle&&r.push(".".concat(be(n.lightModeStyle,+t,!1)," {\n").concat(Le(n.lightModeStyle),"\n}")),r.join("\n")})).join("\n"),"\n .myLineHighlight {\n background-color: rgba(0, 122, 204, 0.3);\n }\n "]})]})},Se=function(){return t.jsx("svg",s({width:"100%",height:"100%",fill:"#000000",viewBox:"-1 0 19 19",xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg"},{children:t.jsx("path",{d:"M16.417 9.583A7.917 7.917 0 1 1 8.5 1.666a7.917 7.917 0 0 1 7.917 7.917zM5.85 3.309a6.833 6.833 0 1 0 2.65-.534 6.787 6.787 0 0 0-2.65.534zm2.654 1.336A1.136 1.136 0 1 1 7.37 5.78a1.136 1.136 0 0 1 1.135-1.136zm.792 9.223V8.665a.792.792 0 1 0-1.583 0v5.203a.792.792 0 0 0 1.583 0z"})}))},Te=function(){return t.jsxs("svg",s({width:"100%",height:"100%",viewBox:"0 0 128 128",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",className:"iconify iconify--noto",preserveAspectRatio:"xMidYMid meet"},{children:[t.jsx("path",{d:"M37.41 41.95c-9.71 12.48-9.54 34.65 2.87 45.64c14.09 12.47 33.92 12.34 46.39.87c14.95-13.76 14.09-36.66.87-49.63c-13.29-13.04-37.04-13.72-50.13 3.12z",fill:"#fcc11a"}),t.jsx("path",{d:"M53 37.67c-3.84-1.7-8.04 2.93-9.87 6.09c-1.83 3.17-3.53 9.38.37 10.97c3.9 1.58 6.7-1.1 9.51-5.73c2.79-4.63 4.38-9.38-.01-11.33z",fill:"#fee269"}),t.jsx("path",{d:"M63 20.27c-.93 1.74-.62 3.08 1.23 3.52c1.85.44 13.36 2.31 14.33 2.37c1.41.09 1.93-.97 1.76-2.2c-.18-1.23-2.99-18.46-3.25-20.04S75.14.76 73.55 2.87S63.7 18.96 63 20.27z",fill:"#ffa722"}),t.jsx("path",{d:"M92.8 32.23c-1.81.56-1.76 1.67-.79 3.08c.97 1.41 7.65 11.6 8.26 12.31c.62.7 1.67.88 2.55-.18c.88-1.05 11.86-16.45 12.66-17.41c1.32-1.58.53-3.25-1.49-2.73c-1.54.41-20.05 4.58-21.19 4.93z",fill:"#ffa722"}),t.jsx("path",{d:"M106.6 61.86c-1.3-.74-2.99-.53-3.43 1.14c-.44 1.67-2.37 13.8-2.55 14.86s.62 2.11 1.93 1.85s19.45-2.95 20.66-3.25c2.11-.53 2.81-2.64.62-4.22c-1.42-1.03-16-9.68-17.23-10.38z",fill:"#ffa722"}),t.jsx("path",{d:"M92.09 90.6c1.4-.75 2.64-.18 2.99 1.41c.35 1.58 4.22 17.76 4.84 20.75c.31 1.5-1.41 2.73-2.81 1.85c-1.41-.88-16.69-11.53-17.67-12.4c-1.41-1.23-.43-2.51.26-3.16c1.4-1.33 11.07-7.74 12.39-8.45z",fill:"#ffa722"}),t.jsx("path",{d:"M49.54 99.48c-1.77-.17-2.29 1.41-2.02 2.81c.26 1.41 2.9 19.24 3.08 20.57c.26 1.93 2.29 2.73 3.6.79s10.35-16.4 11.08-17.76c1.32-2.46.35-2.99-.97-3.6c-1.31-.61-12.92-2.63-14.77-2.81z",fill:"#ffa722"}),t.jsx("path",{d:"M24.23 79c1.23-2.02 2.81-1.49 3.96.44c.78 1.32 7.38 10.2 8 11.16c.62.97.88 2.81-1.05 3.25c-1.95.45-17.68 4.58-20.14 5.02c-2.46.44-3.87-1.49-2.29-3.6c.92-1.24 10.82-15.12 11.52-16.27z",fill:"#ffa722"}),t.jsx("path",{d:"M20.89 63.7c2.25 1 3.31.64 3.78-.97c.62-2.11 2.46-11.78 2.55-13.98c.06-1.43-.53-2.81-2.73-2.46S6.47 48.85 4.45 49.55c-2.35.82-2.18 3.4-.62 4.22c1.85.97 15.47 9.23 17.06 9.93z",fill:"#ffa722"}),t.jsx("path",{d:"M48.23 26.78c1.27-1.01.88-2.46-.26-3.25c-1.14-.79-15.26-11-17.05-12.4c-1.58-1.23-3.52-.79-2.99 2.02c.38 2.02 4.88 19.7 5.19 20.92c.35 1.41 1.41 2.11 2.64 1.23c1.21-.87 11.15-7.46 12.47-8.52z",fill:"#ffa722"})]}))},we=function(e){var r=e.darkMode,a=e.onToggle,c=e.toggleFullscreen,l=e.handleOpenFileDetailSection,o=e.showFullscreenIcon,i=e.showFileSummaryIButton,h=n.useState(!1),d=h[0],m=h[1];return t.jsxs("div",s({style:xe.container},{children:[t.jsxs("div",s({style:{position:"relative",display:"inline-block"},onMouseEnter:function(){return m(!0)},onMouseLeave:function(){return m(!1)}},{children:[i?t.jsx("button",s({onClick:function(e){l(e)},style:{background:"transparent",color:"white",border:"none",borderRadius:"50%",width:"24px",height:"24px",fontWeight:"bold",cursor:"pointer",marginRight:"1rem",fontSize:"16px",zIndex:1e3,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"auto",padding:0}},{children:t.jsx(Se,{})})):t.jsx(t.Fragment,{}),d&&t.jsx("div",s({style:{position:"absolute",zIndex:1001,bottom:"125%",left:"50%",transform:"translateX(-50%)",backgroundColor:"#555",color:"#fff",padding:"5px 8px",borderRadius:"6px",fontSize:"12px",textAlign:"center",whiteSpace:"nowrap",opacity:1,transition:"opacity 0.3s"}},{children:"Click to see file summary"}))]})),t.jsxs("label",s({className:"theme-switch",style:xe.switch},{children:[t.jsx("input",{type:"checkbox",checked:r,onChange:a,onClick:a,style:xe.input}),t.jsx("div",s({style:s(s({},xe.slider),{backgroundColor:r?"#444":"#f7f7f7"}),onClick:a},{children:t.jsx("div",s({style:s(s({},xe.thumb),{transform:r?"translateX(22px)":"translateX(0)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:13,backgroundColor:r?"#444":"#f7f7f7"})},{children:r?"🌙":t.jsx(Te,{})}))}))]})),o?t.jsx("button",s({onClick:function(e){return c(e)},style:{background:"transparent",border:"none",padding:"7px 6px",borderRadius:"6px",cursor:"pointer",fontSize:"1.5rem",color:"black",transition:"background 0.3s"},title:"Toggle fullscreen"},{children:"⛶"})):t.jsx(t.Fragment,{})]}))},xe={container:{display:"flex",alignItems:"center",gap:8},icon:{fontSize:20,transition:"transform 0.3s ease"},switch:{position:"relative",display:"inline-block",width:44,height:24},input:{opacity:0,width:0,height:0},slider:{position:"absolute",cursor:"pointer",top:0,left:0,right:0,bottom:0,transition:"0.4s",borderRadius:20},thumb:{position:"absolute",height:19,width:19,backgroundColor:"white",borderRadius:"50%",top:2,left:2,transition:"transform 0.3s ease"}},Re={black:"#000",white:"#fff"},Oe="#e57373",Ae="#f44336",ke="#d32f2f",_e="#ff4081",Pe="#f50057",Ne="#c51162",Fe="#7986cb",De="#3f51b5",Ie="#303f9f",Be="#64b5f6",je="#2196f3",Ue="#1976d2",We="#81c784",Ge="#4caf50",$e="#388e3c",qe="#ffb74d",Ye="#ff9800",Ke="#f57c00",Xe={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},Qe="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function Je(){throw new Error("setTimeout has not been defined")}function Ze(){throw new Error("clearTimeout has not been defined")}var et=Je,tt=Ze;function nt(e){if(et===setTimeout)return setTimeout(e,0);if((et===Je||!et)&&setTimeout)return et=setTimeout,setTimeout(e,0);try{return et(e,0)}catch(t){try{return et.call(null,e,0)}catch(t){return et.call(this,e,0)}}}"function"==typeof Qe.setTimeout&&(et=setTimeout),"function"==typeof Qe.clearTimeout&&(tt=clearTimeout);var rt,at=[],ct=!1,lt=-1;function ot(){ct&&rt&&(ct=!1,rt.length?at=rt.concat(at):lt=-1,at.length&&it())}function it(){if(!ct){var e=nt(ot);ct=!0;for(var t=at.length;t;){for(rt=at,at=[];++lt<t;)rt&&rt[lt].run();lt=-1,t=at.length}rt=null,ct=!1,function(e){if(tt===clearTimeout)return clearTimeout(e);if((tt===Ze||!tt)&&clearTimeout)return tt=clearTimeout,clearTimeout(e);try{return tt(e)}catch(t){try{return tt.call(null,e)}catch(t){return tt.call(this,e)}}}(e)}}function ht(e,t){this.fun=e,this.array=t}ht.prototype.run=function(){this.fun.apply(null,this.array)};function st(){}var dt=st,mt=st,ut=st,vt=st,pt=st,zt=st,ft=st;var gt=Qe.performance||{},Et=gt.now||gt.mozNow||gt.msNow||gt.oNow||gt.webkitNow||function(){return(new Date).getTime()};var Mt=new Date;var Ht={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];at.push(new ht(e,t)),1!==at.length||ct||nt(it)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:dt,addListener:mt,once:ut,off:vt,removeListener:pt,removeAllListeners:zt,emit:ft,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*Et.call(gt),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Mt)/1e3}};function Vt(e,t){return"production"===Ht.env.NODE_ENV?function(){return null}:function(){return e.apply(void 0,arguments)||t.apply(void 0,arguments)}}function yt(){return yt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yt.apply(null,arguments)}function Lt(e){return Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lt(e)}function bt(e){return e&&"object"===Lt(e)&&e.constructor===Object}function Ct(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?yt({},e):e;return bt(e)&&bt(t)&&Object.keys(t).forEach((function(a){"__proto__"!==a&&(bt(t[a])&&a in e?r[a]=Ct(e[a],t[a],n):r[a]=t[a])})),r}var St,Tt={exports:{}},wt={exports:{}},xt={};var Rt,Ot,At,kt,_t,Pt,Nt,Ft,Dt,It,Bt,jt,Ut,Wt,Gt,$t={};function qt(){return Ot||(Ot=1,"production"===Ht.env.NODE_ENV?wt.exports=function(){if(St)return xt;St=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,i=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,s=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,u=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,z=e?Symbol.for("react.fundamental"):60117,f=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case i:case h:case r:case c:case a:case d:return e;default:switch(e=e&&e.$$typeof){case o:case s:case v:case u:case l:return e;default:return m}}case n:return m}}}function M(e){return E(e)===h}return xt.AsyncMode=i,xt.ConcurrentMode=h,xt.ContextConsumer=o,xt.ContextProvider=l,xt.Element=t,xt.ForwardRef=s,xt.Fragment=r,xt.Lazy=v,xt.Memo=u,xt.Portal=n,xt.Profiler=c,xt.StrictMode=a,xt.Suspense=d,xt.isAsyncMode=function(e){return M(e)||E(e)===i},xt.isConcurrentMode=M,xt.isContextConsumer=function(e){return E(e)===o},xt.isContextProvider=function(e){return E(e)===l},xt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},xt.isForwardRef=function(e){return E(e)===s},xt.isFragment=function(e){return E(e)===r},xt.isLazy=function(e){return E(e)===v},xt.isMemo=function(e){return E(e)===u},xt.isPortal=function(e){return E(e)===n},xt.isProfiler=function(e){return E(e)===c},xt.isStrictMode=function(e){return E(e)===a},xt.isSuspense=function(e){return E(e)===d},xt.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===h||e===c||e===a||e===d||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===u||e.$$typeof===l||e.$$typeof===o||e.$$typeof===s||e.$$typeof===z||e.$$typeof===f||e.$$typeof===g||e.$$typeof===p)},xt.typeOf=E,xt}():wt.exports=(Rt||(Rt=1,"production"!==Ht.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,i=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,s=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,u=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,z=e?Symbol.for("react.fundamental"):60117,f=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:var p=e.type;switch(p){case i:case h:case r:case c:case a:case d:return p;default:var z=p&&p.$$typeof;switch(z){case o:case s:case v:case u:case l:return z;default:return m}}case n:return m}}}var M=i,H=h,V=o,y=l,L=t,b=s,C=r,S=v,T=u,w=n,x=c,R=a,O=d,A=!1;function k(e){return E(e)===h}$t.AsyncMode=M,$t.ConcurrentMode=H,$t.ContextConsumer=V,$t.ContextProvider=y,$t.Element=L,$t.ForwardRef=b,$t.Fragment=C,$t.Lazy=S,$t.Memo=T,$t.Portal=w,$t.Profiler=x,$t.StrictMode=R,$t.Suspense=O,$t.isAsyncMode=function(e){return A||(A=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),k(e)||E(e)===i},$t.isConcurrentMode=k,$t.isContextConsumer=function(e){return E(e)===o},$t.isContextProvider=function(e){return E(e)===l},$t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},$t.isForwardRef=function(e){return E(e)===s},$t.isFragment=function(e){return E(e)===r},$t.isLazy=function(e){return E(e)===v},$t.isMemo=function(e){return E(e)===u},$t.isPortal=function(e){return E(e)===n},$t.isProfiler=function(e){return E(e)===c},$t.isStrictMode=function(e){return E(e)===a},$t.isSuspense=function(e){return E(e)===d},$t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===h||e===c||e===a||e===d||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===u||e.$$typeof===l||e.$$typeof===o||e.$$typeof===s||e.$$typeof===z||e.$$typeof===f||e.$$typeof===g||e.$$typeof===p)},$t.typeOf=E}()),$t)),wt.exports}
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).MyLibrary={},e.jsxRuntime,e.React,e.ReactDOM)}(this,(function(e,t,n,r){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function c(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var l=a(n),o=c(n),i=c(r),h=a(r),s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},s.apply(this,arguments)};function d(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function m(e,t,n,r){return new(n||(n=Promise))((function(a,c){function l(e){try{i(r.next(e))}catch(e){c(e)}}function o(e){try{i(r.throw(e))}catch(e){c(e)}}function i(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,o)}i((r=r.apply(e,t||[])).next())}))}function u(e,t){var n,r,a,c={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return l.next=o(0),l.throw=o(1),l.return=o(2),"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function o(o){return function(i){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;l&&(l=0,o[0]&&(c=0)),c;)try{if(n=1,r&&(a=2&o[0]?r.return:o[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;switch(r=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!(a=c.trys,(a=a.length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){c.label=o[1];break}if(6===o[0]&&c.label<a[1]){c.label=a[1],a=o;break}if(a&&c.label<a[2]){c.label=a[2],c.ops.push(o);break}a[2]&&c.ops.pop(),c.trys.pop();continue}o=t.call(e,c)}catch(e){o=[6,e],r=0}finally{n=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,i])}}}function v(e,t,n){if(n||2===arguments.length)for(var r,a=0,c=t.length;a<c;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}function p(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===n&&r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}"function"==typeof SuppressedError&&SuppressedError;var z="CodeCitation-module_pillButton__pugFh",f="CodeCitation-module_citationWrapper__goB2r",g="CodeCitation-module_citationContent__fFlqE",E="CodeCitation-module_citationContainerTitle__Dt0Bq";function M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach((function(t){M(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function T(e){return function t(){for(var n=this,r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return a.length>=e.length?e.apply(this,a):function(){for(var e=arguments.length,r=new Array(e),c=0;c<e;c++)r[c]=arguments[c];return t.apply(n,[].concat(a,r))}}}function w(e){return{}.toString.call(e).includes("Object")}function x(e){return"function"==typeof e}p('@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;700&display=swap");.CodeCitation-module_pillButton__pugFh{align-items:center;background-color:#1e2135;border:1px solid #344054;border-radius:6px;color:#fff;cursor:pointer;display:flex;font-family:Plus Jakarta Sans,sans-serif;font-family:Montserrat,sans-serif;font-size:12px;font-weight:550;gap:6px;justify-content:space-between;line-height:18px;margin:8px 4px;padding:4px 8px;width:fit-content}.CodeCitation-module_citationWrapper__goB2r{display:flex;justify-content:center;margin-top:8px}.CodeCitation-module_citationContent__fFlqE{background-color:#111827;border-radius:12px;color:#fff;min-height:42rem;padding:12px;width:32rem}.CodeCitation-module_bookHeader__LxVTS{display:flex;justify-content:space-between;margin-bottom:24px}.CodeCitation-module_bookInfo__45kX0{display:flex;gap:16px}.CodeCitation-module_bookCover__AGca3{height:auto;object-fit:cover;width:40px}.CodeCitation-module_title__GgfpM{font-family:serif;font-size:1.25rem;font-weight:700}.CodeCitation-module_author__IyoJH{font-family:serif;font-size:1rem;font-weight:500}.CodeCitation-module_scrollContainer__iSbL4{background-color:#f2f0f0;border-radius:8px;color:#181b1f;font-family:Times New Roman,Times,serif;font-size:14.4px;height:100%;line-height:1.4;overflow-y:auto;padding:40px;position:relative}.CodeCitation-module_spineLeft__8goHj,.CodeCitation-module_spineRight__HG-aa{bottom:0;opacity:.5;pointer-events:none;position:absolute;top:0;width:16px;z-index:0}.CodeCitation-module_spineLeft__8goHj{background:linear-gradient(90deg,#000 0,#0009 40%,#0003 70%,#0000);box-shadow:4px 0 8px #0000001a;right:5px}.CodeCitation-module_spineRight__HG-aa{background:linear-gradient(270deg,#000 0,#000000b3 40%,#0006 70%,#0000);box-shadow:-4px 0 8px #0000001a;right:20px}.CodeCitation-module_quoteParagraph__-3mva{margin-bottom:1rem;text-align:justify}.CodeCitation-module_indent__KfIxR{text-indent:1rem}.CodeCitation-module_pageNumber__eUsN9{color:#374151;font-weight:500;padding:.5rem;text-align:center}.CodeCitation-module_citationContainerTitle__Dt0Bq{font-family:Plus Jakarta Sans,sans-serif}');var R=T((function(e,t){throw new Error(e[t]||e.default)}))({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),O={changes:function(e,t){return w(t)||R("changeType"),Object.keys(t).some((function(t){return n=e,r=t,!Object.prototype.hasOwnProperty.call(n,r);var n,r}))&&R("changeField"),t},selector:function(e){x(e)||R("selectorType")},handler:function(e){x(e)||w(e)||R("handlerType"),w(e)&&Object.values(e).some((function(e){return!x(e)}))&&R("handlersType")},initial:function(e){var t;e||R("initialIsRequired"),w(e)||R("initialType"),t=e,Object.keys(t).length||R("initialContent")}};function A(e,t){return x(t)?t(e.current):t}function k(e,t){return e.current=S(S({},e.current),t),t}function _(e,t,n){return x(t)?t(e.current):Object.keys(n).forEach((function(n){var r;return null===(r=t[n])||void 0===r?void 0:r.call(t,e.current[n])})),n}var P={create:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};O.initial(e),O.handler(t);var n={current:e},r=T(_)(n,t),a=T(k)(n),c=T(O.changes)(e),l=T(A)(n);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return O.selector(e),e(n.current)},function(e){!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight((function(e,t){return t(e)}),e)}}(r,a,c,l)(e)}]}};var N={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},F=function(e){return function t(){for(var n=this,r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return a.length>=e.length?e.apply(this,a):function(){for(var e=arguments.length,r=new Array(e),c=0;c<e;c++)r[c]=arguments[c];return t.apply(n,[].concat(a,r))}}}((function(e,t){throw new Error(e[t]||e.default)}))(N),D={config:function(e){var t;return e||F("configIsRequired"),t=e,{}.toString.call(t).includes("Object")||F("configType"),e.urls?(console.warn(N.deprecation),{paths:{vs:e.urls.monacoBase}}):e}};function I(e,t){return Object.keys(t).forEach((function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],I(e[n],t[n]))})),V(V({},e),t)}var B={type:"cancelation",msg:"operation is manually canceled"};function j(e){var t=!1,n=new Promise((function(n,r){e.then((function(e){return t?r(B):n(e)})),e.catch(r)}));return n.cancel=function(){return t=!0},n}var U,W,G=P.create({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}),$=(W=2,function(e){if(Array.isArray(e))return e}(U=G)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,a=!1,c=void 0;try{for(var l,o=e[Symbol.iterator]();!(r=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(e){a=!0,c=e}finally{try{r||null==o.return||o.return()}finally{if(a)throw c}}return n}}(U,W)||function(e,t){if(e){if("string"==typeof e)return L(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(e,t):void 0}}(U,W)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),q=$[0],Y=$[1];function K(e){return document.body.appendChild(e)}function X(e){var t,n,r=q((function(e){return{config:e.config,reject:e.reject}})),a=(t="".concat(r.config.paths.vs,"/loader.js"),n=document.createElement("script"),t&&(n.src=t),n);return a.onload=function(){return e()},a.onerror=r.reject,a}function Q(){var e=q((function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}})),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],(function(t){J(t),e.resolve(t)}),(function(t){e.reject(t)}))}function J(e){q().monaco||Y({monaco:e})}var Z=new Promise((function(e,t){return Y({resolve:e,reject:t})})),ee={config:function(e){var t=D.config(e),n=t.monaco,r=y(t,["monaco"]);Y((function(e){return{config:I(e.config,r),monaco:n}}))},init:function(){var e=q((function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}}));if(!e.isInitialized){if(Y({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),j(Z);if(window.monaco&&window.monaco.editor)return J(window.monaco),e.resolve(window.monaco),j(Z);!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight((function(e,t){return t(e)}),e)}}(K,X)(Q)}return j(Z)},__getMonacoInstance:function(){return q((function(e){return e.monaco}))}},te={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},ne={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}};var re=function({children:e}){return l.default.createElement("div",{style:ne.container},e)},ae=re;var ce=function({width:e,height:t,isEditorReady:n,loading:r,_ref:a,className:c,wrapperProps:o}){return l.default.createElement("section",{style:{...te.wrapper,width:e,height:t},...o},!n&&l.default.createElement(ae,null,r),l.default.createElement("div",{ref:a,style:{...te.fullWidth,...!n&&te.hide},className:c}))},le=n.memo(ce);var oe=function(e){n.useEffect(e,[])};var ie=function(e,t,r=!0){let a=n.useRef(!0);n.useEffect(a.current||!r?()=>{a.current=!1}:e,t)};function he(){}function se(e,t,n,r){return function(e,t){return e.editor.getModel(de(e,t))}(e,r)||function(e,t,n,r){return e.editor.createModel(t,n,r?de(e,r):void 0)}(e,t,n,r)}function de(e,t){return e.Uri.parse(t)}var me=function({original:e,modified:t,language:r,originalLanguage:a,modifiedLanguage:c,originalModelPath:o,modifiedModelPath:i,keepCurrentOriginalModel:h=!1,keepCurrentModifiedModel:s=!1,theme:d="light",loading:m="Loading...",options:u={},height:v="100%",width:p="100%",className:z,wrapperProps:f={},beforeMount:g=he,onMount:E=he}){let[M,H]=n.useState(!1),[V,y]=n.useState(!0),L=n.useRef(null),b=n.useRef(null),C=n.useRef(null),S=n.useRef(E),T=n.useRef(g),w=n.useRef(!1);oe((()=>{let e=ee.init();return e.then((e=>(b.current=e)&&y(!1))).catch((e=>"cancelation"!==e?.type&&console.error("Monaco initialization: error:",e))),()=>L.current?function(){let e=L.current?.getModel();h||e?.original?.dispose(),s||e?.modified?.dispose(),L.current?.dispose()}():e.cancel()})),ie((()=>{if(L.current&&b.current){let t=L.current.getOriginalEditor(),n=se(b.current,e||"",a||r||"text",o||"");n!==t.getModel()&&t.setModel(n)}}),[o],M),ie((()=>{if(L.current&&b.current){let e=L.current.getModifiedEditor(),n=se(b.current,t||"",c||r||"text",i||"");n!==e.getModel()&&e.setModel(n)}}),[i],M),ie((()=>{let e=L.current.getModifiedEditor();e.getOption(b.current.editor.EditorOption.readOnly)?e.setValue(t||""):t!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),e.pushUndoStop())}),[t],M),ie((()=>{L.current?.getModel()?.original.setValue(e||"")}),[e],M),ie((()=>{let{original:e,modified:t}=L.current.getModel();b.current.editor.setModelLanguage(e,a||r||"text"),b.current.editor.setModelLanguage(t,c||r||"text")}),[r,a,c],M),ie((()=>{b.current?.editor.setTheme(d)}),[d],M),ie((()=>{L.current?.updateOptions(u)}),[u],M);let x=n.useCallback((()=>{if(!b.current)return;T.current(b.current);let n=se(b.current,e||"",a||r||"text",o||""),l=se(b.current,t||"",c||r||"text",i||"");L.current?.setModel({original:n,modified:l})}),[r,t,c,e,a,o,i]),R=n.useCallback((()=>{!w.current&&C.current&&(L.current=b.current.editor.createDiffEditor(C.current,{automaticLayout:!0,...u}),x(),b.current?.editor.setTheme(d),H(!0),w.current=!0)}),[u,d,x]);return n.useEffect((()=>{M&&S.current(L.current,b.current)}),[M]),n.useEffect((()=>{!V&&!M&&R()}),[V,M,R]),l.default.createElement(le,{width:p,height:v,isEditorReady:M,loading:m,_ref:C,className:z,wrapperProps:f})};n.memo(me);var ue=function(e){let t=n.useRef();return n.useEffect((()=>{t.current=e}),[e]),t.current},ve=new Map;var pe,ze,fe=function({defaultValue:e,defaultLanguage:t,defaultPath:r,value:a,language:c,path:o,theme:i="light",line:h,loading:s="Loading...",options:d={},overrideServices:m={},saveViewState:u=!0,keepCurrentModel:v=!1,width:p="100%",height:z="100%",className:f,wrapperProps:g={},beforeMount:E=he,onMount:M=he,onChange:H,onValidate:V=he}){let[y,L]=n.useState(!1),[b,C]=n.useState(!0),S=n.useRef(null),T=n.useRef(null),w=n.useRef(null),x=n.useRef(M),R=n.useRef(E),O=n.useRef(),A=n.useRef(a),k=ue(o),_=n.useRef(!1),P=n.useRef(!1);oe((()=>{let e=ee.init();return e.then((e=>(S.current=e)&&C(!1))).catch((e=>"cancelation"!==e?.type&&console.error("Monaco initialization: error:",e))),()=>T.current?(O.current?.dispose(),v?u&&ve.set(o,T.current.saveViewState()):T.current.getModel()?.dispose(),void T.current.dispose()):e.cancel()})),ie((()=>{let n=se(S.current,e||a||"",t||c||"",o||r||"");n!==T.current?.getModel()&&(u&&ve.set(k,T.current?.saveViewState()),T.current?.setModel(n),u&&T.current?.restoreViewState(ve.get(o)))}),[o],y),ie((()=>{T.current?.updateOptions(d)}),[d],y),ie((()=>{!T.current||void 0===a||(T.current.getOption(S.current.editor.EditorOption.readOnly)?T.current.setValue(a):a!==T.current.getValue()&&(P.current=!0,T.current.executeEdits("",[{range:T.current.getModel().getFullModelRange(),text:a,forceMoveMarkers:!0}]),T.current.pushUndoStop(),P.current=!1))}),[a],y),ie((()=>{let e=T.current?.getModel();e&&c&&S.current?.editor.setModelLanguage(e,c)}),[c],y),ie((()=>{void 0!==h&&T.current?.revealLine(h)}),[h],y),ie((()=>{S.current?.editor.setTheme(i)}),[i],y);let N=n.useCallback((()=>{if(w.current&&S.current&&!_.current){R.current(S.current);let n=o||r,l=se(S.current,a||e||"",t||c||"",n||"");T.current=S.current?.editor.create(w.current,{model:l,automaticLayout:!0,...d},m),u&&T.current.restoreViewState(ve.get(n)),S.current.editor.setTheme(i),void 0!==h&&T.current.revealLine(h),L(!0),_.current=!0}}),[e,t,r,a,c,o,d,m,u,i,h]);return n.useEffect((()=>{y&&x.current(T.current,S.current)}),[y]),n.useEffect((()=>{!b&&!y&&N()}),[b,y,N]),A.current=a,n.useEffect((()=>{y&&H&&(O.current?.dispose(),O.current=T.current?.onDidChangeModelContent((e=>{P.current||H(T.current.getValue(),e)})))}),[y,H]),n.useEffect((()=>{if(y){let e=S.current.editor.onDidChangeMarkers((e=>{let t=T.current.getModel()?.uri;if(t&&e.find((e=>e.path===t.path))){let e=S.current.editor.getModelMarkers({resource:t});V?.(e)}}));return()=>{e?.dispose()}}return()=>{}}),[y,V]),l.default.createElement(le,{width:p,height:z,isEditorReady:y,loading:s,_ref:w,className:f,wrapperProps:g})},ge=n.memo(fe);function Ee(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Me(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var He,Ve=function(){if(ze)return pe;function e(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach((n=>{const r=t[n],a=typeof r;"object"!==a&&"function"!==a||Object.isFrozen(r)||e(r)})),t}ze=1;class t{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function r(e,...t){const n=Object.create(null);for(const t in e)n[t]=e[t];return t.forEach((function(e){for(const t in e)n[t]=e[t]})),n}const a=e=>!!e.scope;class c{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=n(e)}openNode(e){if(!a(e))return;const t=((e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map(((e,t)=>`${e}${"_".repeat(t+1)}`))].join(" ")}return`${t}${e}`})(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){a(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const l=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class o{constructor(){this.rootNode=l(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=l({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach((t=>this._walk(e,t))),e.closeNode(t)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{o._collapse(e)})))}}class i extends o{constructor(e){super(),this.options=e}addText(e){""!==e&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){return new c(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function h(e){return e?"string"==typeof e?e:e.source:null}function s(e){return u("(?=",e,")")}function d(e){return u("(?:",e,")*")}function m(e){return u("(?:",e,")?")}function u(...e){const t=e.map((e=>h(e))).join("");return t}function v(...e){const t=function(e){const t=e[e.length-1];return"object"==typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}(e),n="("+(t.capture?"":"?:")+e.map((e=>h(e))).join("|")+")";return n}function p(e){return new RegExp(e.toString()+"|").exec("").length-1}const z=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function f(e,{joinWith:t}){let n=0;return e.map((e=>{n+=1;const t=n;let r=h(e),a="";for(;r.length>0;){const e=z.exec(r);if(!e){a+=r;break}a+=r.substring(0,e.index),r=r.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?a+="\\"+String(Number(e[1])+t):(a+=e[0],"("===e[0]&&n++)}return a})).map((e=>`(${e})`)).join(t)}const g="[a-zA-Z]\\w*",E="[a-zA-Z_]\\w*",M="\\b\\d+(\\.\\d+)?",H="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",V="\\b(0b[01]+)",y={begin:"\\\\[\\s\\S]",relevance:0},L={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[y]},b={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[y]},C=function(e,t,n={}){const a=r({scope:"comment",begin:e,end:t,contains:[]},n);a.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const c=v("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return a.contains.push({begin:u(/[ ]+/,"(",c,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),a},S=C("//","$"),T=C("/\\*","\\*/"),w=C("#","$"),x={scope:"number",begin:M,relevance:0},R={scope:"number",begin:H,relevance:0},O={scope:"number",begin:V,relevance:0},A={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[y,{begin:/\[/,end:/\]/,relevance:0,contains:[y]}]},k={scope:"title",begin:g,relevance:0},_={scope:"title",begin:E,relevance:0},P={begin:"\\.\\s*"+E,relevance:0};var N=Object.freeze({__proto__:null,APOS_STRING_MODE:L,BACKSLASH_ESCAPE:y,BINARY_NUMBER_MODE:O,BINARY_NUMBER_RE:V,COMMENT:C,C_BLOCK_COMMENT_MODE:T,C_LINE_COMMENT_MODE:S,C_NUMBER_MODE:R,C_NUMBER_RE:H,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})},HASH_COMMENT_MODE:w,IDENT_RE:g,MATCH_NOTHING_RE:/\b\B/,METHOD_GUARD:P,NUMBER_MODE:x,NUMBER_RE:M,PHRASAL_WORDS_MODE:{begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},QUOTE_STRING_MODE:b,REGEXP_MODE:A,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=u(t,/.*\b/,e.binary,/\b.*/)),r({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},TITLE_MODE:k,UNDERSCORE_IDENT_RE:E,UNDERSCORE_TITLE_MODE:_});function F(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function D(e,t){void 0!==e.className&&(e.scope=e.className,delete e.className)}function I(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=F,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function B(e,t){Array.isArray(e.illegal)&&(e.illegal=v(...e.illegal))}function j(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function U(e,t){void 0===e.relevance&&(e.relevance=1)}const W=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach((t=>{delete e[t]})),e.keywords=n.keywords,e.begin=u(n.beforeMatch,s(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},G=["of","and","for","in","not","or","if","then","parent","list","value"];function $(e,t,n="keyword"){const r=Object.create(null);return"string"==typeof e?a(n,e.split(" ")):Array.isArray(e)?a(n,e):Object.keys(e).forEach((function(n){Object.assign(r,$(e[n],t,n))})),r;function a(e,n){t&&(n=n.map((e=>e.toLowerCase()))),n.forEach((function(t){const n=t.split("|");r[n[0]]=[e,q(n[0],n[1])]}))}}function q(e,t){return t?Number(t):function(e){return G.includes(e.toLowerCase())}(e)?0:1}const Y={},K=e=>{console.error(e)},X=(e,...t)=>{console.log(`WARN: ${e}`,...t)},Q=(e,t)=>{Y[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),Y[`${e}/${t}`]=!0)},J=new Error;function Z(e,t,{key:n}){let r=0;const a=e[n],c={},l={};for(let e=1;e<=t.length;e++)l[e+r]=a[e],c[e+r]=!0,r+=p(t[e-1]);e[n]=l,e[n]._emit=c,e[n]._multi=!0}function ee(e){!function(e){e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,delete e.scope)}(e),"string"==typeof e.beginScope&&(e.beginScope={_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope}),function(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw K("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),J;if("object"!=typeof e.beginScope||null===e.beginScope)throw K("beginScope must be object"),J;Z(e,e.begin,{key:"beginScope"}),e.begin=f(e.begin,{joinWith:""})}}(e),function(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw K("skip, excludeEnd, returnEnd not compatible with endScope: {}"),J;if("object"!=typeof e.endScope||null===e.endScope)throw K("endScope must be object"),J;Z(e,e.end,{key:"endScope"}),e.end=f(e.end,{joinWith:""})}}(e)}function te(e){function t(t,n){return new RegExp(h(t),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(n?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=p(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map((e=>e[1]));this.matcherRe=t(f(e,{joinWith:"|"}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const n=t.findIndex(((e,t)=>t>0&&void 0!==e)),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class a{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new n;return this.rules.slice(e).forEach((([e,n])=>t.addRule(e,n))),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=r(e.classNameAliases||{}),function n(c,l){const o=c;if(c.isCompiled)return o;[D,j,ee,W].forEach((e=>e(c,l))),e.compilerExtensions.forEach((e=>e(c,l))),c.__beforeBegin=null,[I,B,U].forEach((e=>e(c,l))),c.isCompiled=!0;let i=null;return"object"==typeof c.keywords&&c.keywords.$pattern&&(c.keywords=Object.assign({},c.keywords),i=c.keywords.$pattern,delete c.keywords.$pattern),i=i||/\w+/,c.keywords&&(c.keywords=$(c.keywords,e.case_insensitive)),o.keywordPatternRe=t(i,!0),l&&(c.begin||(c.begin=/\B|\b/),o.beginRe=t(o.begin),c.end||c.endsWithParent||(c.end=/\B|\b/),c.end&&(o.endRe=t(o.end)),o.terminatorEnd=h(o.end)||"",c.endsWithParent&&l.terminatorEnd&&(o.terminatorEnd+=(c.end?"|":"")+l.terminatorEnd)),c.illegal&&(o.illegalRe=t(c.illegal)),c.contains||(c.contains=[]),c.contains=[].concat(...c.contains.map((function(e){return function(e){e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function(t){return r(e,{variants:null},t)})));if(e.cachedVariants)return e.cachedVariants;if(ne(e))return r(e,{starts:e.starts?r(e.starts):null});if(Object.isFrozen(e))return r(e);return e}("self"===e?c:e)}))),c.contains.forEach((function(e){n(e,o)})),c.starts&&n(c.starts,l),o.matcher=function(e){const t=new a;return e.contains.forEach((e=>t.addRule(e.begin,{rule:e,type:"begin"}))),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(o),o}(e)}function ne(e){return!!e&&(e.endsWithParent||ne(e.starts))}class re extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const ae=n,ce=r,le=Symbol("nomatch"),oe=function(n){const r=Object.create(null),a=Object.create(null),c=[];let l=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",h={disableAutodetect:!0,name:"Plain text",contains:[]};let p={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:i};function z(e){return p.noHighlightRe.test(e)}function f(e,t,n){let r="",a="";"object"==typeof t?(r=e,n=t.ignoreIllegals,a=t.language):(Q("10.7.0","highlight(lang, code, ...args) has been deprecated."),Q("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),a=e,r=t),void 0===n&&(n=!0);const c={code:r,language:a};C("before:highlight",c);const l=c.result?c.result:g(c.language,c.code,n);return l.code=c.code,C("after:highlight",l),l}function g(e,n,a,c){const i=Object.create(null);function h(){if(!C.keywords)return void T.addText(w);let e=0;C.keywordPatternRe.lastIndex=0;let t=C.keywordPatternRe.exec(w),n="";for(;t;){n+=w.substring(e,t.index);const a=V.case_insensitive?t[0].toLowerCase():t[0],c=(r=a,C.keywords[r]);if(c){const[e,r]=c;if(T.addText(n),n="",i[a]=(i[a]||0)+1,i[a]<=7&&(x+=r),e.startsWith("_"))n+=t[0];else{const n=V.classNameAliases[e]||e;d(t[0],n)}}else n+=t[0];e=C.keywordPatternRe.lastIndex,t=C.keywordPatternRe.exec(w)}var r;n+=w.substring(e),T.addText(n)}function s(){null!=C.subLanguage?function(){if(""===w)return;let e=null;if("string"==typeof C.subLanguage){if(!r[C.subLanguage])return void T.addText(w);e=g(C.subLanguage,w,!0,S[C.subLanguage]),S[C.subLanguage]=e._top}else e=E(w,C.subLanguage.length?C.subLanguage:null);C.relevance>0&&(x+=e.relevance),T.__addSublanguage(e._emitter,e.language)}():h(),w=""}function d(e,t){""!==e&&(T.startScope(t),T.addText(e),T.endScope())}function m(e,t){let n=1;const r=t.length-1;for(;n<=r;){if(!e._emit[n]){n++;continue}const r=V.classNameAliases[e[n]]||e[n],a=t[n];r?d(a,r):(w=a,h(),w=""),n++}}function u(e,t){return e.scope&&"string"==typeof e.scope&&T.openNode(V.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(d(w,V.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),w=""):e.beginScope._multi&&(m(e.beginScope,t),w="")),C=Object.create(e,{parent:{value:C}}),C}function v(e,n,r){let a=function(e,t){const n=e&&e.exec(t);return n&&0===n.index}(e.endRe,r);if(a){if(e["on:end"]){const r=new t(e);e["on:end"](n,r),r.isMatchIgnored&&(a=!1)}if(a){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return v(e.parent,n,r)}function z(e){return 0===C.matcher.regexIndex?(w+=e[0],1):(A=!0,0)}function f(e){const t=e[0],r=n.substring(e.index),a=v(C,e,r);if(!a)return le;const c=C;C.endScope&&C.endScope._wrap?(s(),d(t,C.endScope._wrap)):C.endScope&&C.endScope._multi?(s(),m(C.endScope,e)):c.skip?w+=t:(c.returnEnd||c.excludeEnd||(w+=t),s(),c.excludeEnd&&(w=t));do{C.scope&&T.closeNode(),C.skip||C.subLanguage||(x+=C.relevance),C=C.parent}while(C!==a.parent);return a.starts&&u(a.starts,e),c.returnEnd?0:t.length}let M={};function H(r,c){const o=c&&c[0];if(w+=r,null==o)return s(),0;if("begin"===M.type&&"end"===c.type&&M.index===c.index&&""===o){if(w+=n.slice(c.index,c.index+1),!l){const t=new Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=M.rule,t}return 1}if(M=c,"begin"===c.type)return function(e){const n=e[0],r=e.rule,a=new t(r),c=[r.__beforeBegin,r["on:begin"]];for(const t of c)if(t&&(t(e,a),a.isMatchIgnored))return z(n);return r.skip?w+=n:(r.excludeBegin&&(w+=n),s(),r.returnBegin||r.excludeBegin||(w=n)),u(r,e),r.returnBegin?0:n.length}(c);if("illegal"===c.type&&!a){const e=new Error('Illegal lexeme "'+o+'" for mode "'+(C.scope||"<unnamed>")+'"');throw e.mode=C,e}if("end"===c.type){const e=f(c);if(e!==le)return e}if("illegal"===c.type&&""===o)return w+="\n",1;if(O>1e5&&O>3*c.index){throw new Error("potential infinite loop, way more iterations than matches")}return w+=o,o.length}const V=y(e);if(!V)throw K(o.replace("{}",e)),new Error('Unknown language: "'+e+'"');const L=te(V);let b="",C=c||L;const S={},T=new p.__emitter(p);!function(){const e=[];for(let t=C;t!==V;t=t.parent)t.scope&&e.unshift(t.scope);e.forEach((e=>T.openNode(e)))}();let w="",x=0,R=0,O=0,A=!1;try{if(V.__emitTokens)V.__emitTokens(n,T);else{for(C.matcher.considerAll();;){O++,A?A=!1:C.matcher.considerAll(),C.matcher.lastIndex=R;const e=C.matcher.exec(n);if(!e)break;const t=H(n.substring(R,e.index),e);R=e.index+t}H(n.substring(R))}return T.finalize(),b=T.toHTML(),{language:e,value:b,relevance:x,illegal:!1,_emitter:T,_top:C}}catch(t){if(t.message&&t.message.includes("Illegal"))return{language:e,value:ae(n),illegal:!0,relevance:0,_illegalBy:{message:t.message,index:R,context:n.slice(R-100,R+100),mode:t.mode,resultSoFar:b},_emitter:T};if(l)return{language:e,value:ae(n),illegal:!1,relevance:0,errorRaised:t,_emitter:T,_top:C};throw t}}function E(e,t){t=t||p.languages||Object.keys(r);const n=function(e){const t={value:ae(e),illegal:!1,relevance:0,_top:h,_emitter:new p.__emitter(p)};return t._emitter.addText(e),t}(e),a=t.filter(y).filter(b).map((t=>g(t,e,!1)));a.unshift(n);const c=a.sort(((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(y(e.language).supersetOf===t.language)return 1;if(y(t.language).supersetOf===e.language)return-1}return 0})),[l,o]=c,i=l;return i.secondBest=o,i}function M(e){let t=null;const n=function(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const n=p.languageDetectRe.exec(t);if(n){const t=y(n[1]);return t||(X(o.replace("{}",n[1])),X("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}return t.split(/\s+/).find((e=>z(e)||y(e)))}(e);if(z(n))return;if(C("before:highlightElement",{el:e,language:n}),e.dataset.highlighted)return void console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e);if(e.children.length>0&&(p.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(e)),p.throwUnescapedHTML)){throw new re("One of your code blocks includes unescaped HTML.",e.innerHTML)}t=e;const r=t.textContent,c=n?f(r,{language:n,ignoreIllegals:!0}):E(r);e.innerHTML=c.value,e.dataset.highlighted="yes",function(e,t,n){const r=t&&a[t]||n;e.classList.add("hljs"),e.classList.add(`language-${r}`)}(e,n,c.language),e.result={language:c.language,re:c.relevance,relevance:c.relevance},c.secondBest&&(e.secondBest={language:c.secondBest.language,relevance:c.secondBest.relevance}),C("after:highlightElement",{el:e,result:c,text:r})}let H=!1;function V(){if("loading"===document.readyState)return H||window.addEventListener("DOMContentLoaded",(function(){V()}),!1),void(H=!0);document.querySelectorAll(p.cssSelector).forEach(M)}function y(e){return e=(e||"").toLowerCase(),r[e]||r[a[e]]}function L(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach((e=>{a[e.toLowerCase()]=t}))}function b(e){const t=y(e);return t&&!t.disableAutodetect}function C(e,t){const n=e;c.forEach((function(e){e[n]&&e[n](t)}))}Object.assign(n,{highlight:f,highlightAuto:E,highlightAll:V,highlightElement:M,highlightBlock:function(e){return Q("10.7.0","highlightBlock will be removed entirely in v12.0"),Q("10.7.0","Please use highlightElement now."),M(e)},configure:function(e){p=ce(p,e)},initHighlighting:()=>{V(),Q("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:function(){V(),Q("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:function(e,t){let a=null;try{a=t(n)}catch(t){if(K("Language definition for '{}' could not be registered.".replace("{}",e)),!l)throw t;K(t),a=h}a.name||(a.name=e),r[e]=a,a.rawDefinition=t.bind(null,n),a.aliases&&L(a.aliases,{languageName:e})},unregisterLanguage:function(e){delete r[e];for(const t of Object.keys(a))a[t]===e&&delete a[t]},listLanguages:function(){return Object.keys(r)},getLanguage:y,registerAliases:L,autoDetection:b,inherit:ce,addPlugin:function(e){!function(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{e["before:highlightBlock"](Object.assign({block:t.el},t))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{e["after:highlightBlock"](Object.assign({block:t.el},t))})}(e),c.push(e)},removePlugin:function(e){const t=c.indexOf(e);-1!==t&&c.splice(t,1)}}),n.debugMode=function(){l=!1},n.safeMode=function(){l=!0},n.versionString="11.11.1",n.regex={concat:u,lookahead:s,either:v,optional:m,anyNumberOfTimes:d};for(const t in N)"object"==typeof N[t]&&e(N[t]);return Object.assign(n,N),n},ie=oe({});return ie.newInstance=()=>oe({}),pe=ie,ie.HighlightJS=ie,ie.default=ie,pe}(),ye=Ee(Ve),Le=function(e){return Object.entries(e).map((function(e){var t=e[0],n=e[1];return"".concat(t.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})),": ").concat(n,";")})).join("\n")},be=function(e,t,n){var r=n?"dark":"light",a=JSON.stringify(e).replace(/[^a-zA-Z0-9]/g,"").slice(0,20);return"".concat(r,"-severity-").concat(t,"-").concat(a)};e.DiagnosticSeverity=void 0,(He=e.DiagnosticSeverity||(e.DiagnosticSeverity={}))[He.Error=0]="Error",He[He.Warning=1]="Warning",He[He.Information=2]="Information",He[He.Hint=3]="Hint";var Ce=function(e){var r=e.startIndex,a=e.endIndex,c=e.language,l=e.editorHeight,o=e.editorWidth,i=e.code,h=e.isHighlightingEnabled,s=e.isDarkModeEnabled,d=e.openHighlightedCodeDetails,m=e.highlightCodeStatsLine;e.setHighlightCodeStatsLine;var u=e.highlightCodeStatsVariable;e.setHighlightCodeStatsVariable,e.setHighlightIndexes;var v=e.isExpanded,p=e.highlightIndexes,z=e.diagnostics,f=e.diagnosticStylesBySeverity,g=ye.highlightAuto(i).language,E=n.useRef(null),M=n.useRef([]);n.useRef([]);var H=n.useRef([]),V=n.useMemo((function(){return r}),[r]),y=n.useMemo((function(){return a}),[a]),L=n.useState(null),b=L[0],C=L[1],S=n.useState(null),T=S[0],w=S[1],x=n.useRef([]),R=n.useMemo((function(){return f&&"object"==typeof f&&Object.entries(f).map((function(e){var t=e[0],n=e[1],r=[];return n.style&&r.push(".".concat(be(n.style,+t,!0)," {\n").concat(Le(n.style),"\n}")),n.lightModeStyle&&r.push(".".concat(be(n.lightModeStyle,+t,!1)," {\n").concat(Le(n.lightModeStyle),"\n}")),r.join("\n")})).join("\n")}),[f]);n.useEffect((function(){return function(){var e;(null===(e=E.current)||void 0===e?void 0:e._resizeObserver)&&E.current._resizeObserver.disconnect()}}),[]),n.useEffect((function(){if(h&&b&&E.current&&T){var e=b.start,t=b.end;if(O(E.current,e,t,m,u),-1===r&&z&&z.length>0){var n=z[0].range,a=n.lineStart,c=n.lineEnd;O(E.current,a,c,m,u)}}}),[b,T,h,m,u]),n.useEffect((function(){var e,t,n;if(T&&E.current&&h){var r=E.current;if(p&&(null===(e=Object.keys(p))||void 0===e?void 0:e.length)>0&&-1!==(null==p?void 0:p.startIndex)&&-1!==(null==p?void 0:p.endIndex)){var a=null==p?void 0:p.startIndex,c=null==p?void 0:p.endIndex,l=r.deltaDecorations(M.current,[{range:new T.Range(a,1,c,1),options:{isWholeLine:!0,className:"myLineHighlight"}}]);M.current=l}if(m&&(null===(t=Object.keys(m))||void 0===t?void 0:t.length)>0&&-1!==(null==m?void 0:m.startIndex)&&-1!==(null==m?void 0:m.endIndex)&&(null==m?void 0:m.name)){var o=null==m?void 0:m.startIndex,i=null==m?void 0:m.endIndex;l=r.deltaDecorations(M.current,[{range:new T.Range(o,1,i,1),options:{isWholeLine:!0,className:"myLineHighlight"}}]);M.current=l}if(u&&(null===(n=Object.keys(u))||void 0===n?void 0:n.length)>0&&-1!==(null==u?void 0:u.startIndex)&&-1!==(null==u?void 0:u.endIndex)&&(null==m?void 0:m.name)){var s=null==u?void 0:u.startIndex,d=null==u?void 0:u.endIndex;l=r.deltaDecorations(H.current,[{range:new T.Range(s,1,d,1),options:{isWholeLine:!0,className:"myLineHighlight"}}]);H.current=l}}}),[r,a,h,T,m,JSON.stringify(u)]),n.useEffect((function(){if(T&&E.current&&(null==z?void 0:z.length)&&f){var e=E.current,t=z.map((function(e){var t,n,r=function(e,t,n){var r=null==n?void 0:n[e];if(!r)return"myLineHighlight";if(!t){if(r.lightModeStyle)return be(r.lightModeStyle,e,!1);if(r.style)return be(r.style,e,!0);if(r.lightModeClassName)return r.lightModeClassName;if(r.className)return r.className}if(t){if(r.style)return be(r.style,e,!0);if(r.className)return r.className;if(r.lightModeStyle)return be(r.lightModeStyle,e,!1);if(r.lightModeClassName)return r.lightModeClassName}return"myLineHighlight"}(e.severity,null==s||s,f);return{range:new T.Range(e.range.lineStart,null!==(t=e.range.columnStart)&&void 0!==t?t:1,e.range.lineEnd,null!==(n=e.range.columnEnd)&&void 0!==n?n:1),options:{className:r,isWholeLine:void 0===e.range.columnStart}}}));x.current=e.deltaDecorations(x.current,t)}}),[z,f,T,s]);var O=n.useCallback((function(e,t,n,r,a){var c,l;if(T&&e&&h){var o=e.getModel();o&&(t=Math.max(-1,t),(n=Math.min(n,o.getLineCount()))<t&&(n=t),requestAnimationFrame((function(){e.revealRangeInCenterIfOutsideViewport(new T.Range(t,1,n,1),T.editor.ScrollType.Smooth),e.setSelection(new T.Range(t,1,n+1,1))})),r&&-1!==(null==r?void 0:r.startIndex)&&-1!==(null==r?void 0:r.endIndex)&&requestAnimationFrame((function(){e.revealRangeInCenterIfOutsideViewport(new T.Range(null==r?void 0:r.startIndex,1,null==r?void 0:r.endIndex,1),T.editor.ScrollType.Smooth),e.setSelection(new T.Range(null==r?void 0:r.startIndex,1,(null==r?void 0:r.endIndex)+1,1))})),0===(null===(c=Object.keys(a))||void 0===c?void 0:c.length)&&e.getContribution("editor.contrib.findController").getState().change({isRevealed:!1},!1),(null===(l=Object.keys(a))||void 0===l?void 0:l.length)>0&&(requestAnimationFrame((function(){e.revealRangeInCenterIfOutsideViewport(new T.Range(null==a?void 0:a.startIndex,1,null==a?void 0:a.endIndex,1),T.editor.ScrollType.Smooth),e.setSelection(new T.Range(null==a?void 0:a.startIndex,1,(null==a?void 0:a.endIndex)+1,1))})),e.trigger("keyboard","actions.find"),e.getAction("actions.find").run(),e.getContribution("editor.contrib.findController").getState().change({searchString:(null==a?void 0:a.variableName)||"",isRevealed:!0},!1)))}}),[T,h,r,a,null==m?void 0:m.startIndex,null==m?void 0:m.endIndex,u]);n.useEffect((function(){if(E.current&&T&&h){var e=E.current,t=e.onDidLayoutChange((function(){if(O(e,r,a,m,u),-1===r&&z&&z.length>0){var t=z[0].range,n=t.lineStart,c=t.lineEnd;O(e,n,c,m,u)}}));return function(){return t.dispose()}}}),[O,r,a,h,null==m?void 0:m.startIndex,null==m?void 0:m.endIndex,u,v]);var A=n.useCallback((function(e,t){O(e,V,y),E.current=e,w(t),C({start:V,end:y});var n=e.getContainerDomNode(),r=new ResizeObserver((function(){e.layout()}));if(r.observe(n),E.current._resizeObserver=r,h){e.getLayoutInfo();var a=e.getDomNode(),c=document.createElement("div");null==a||a.appendChild(c);var l=function(){var t=e.getTopForLineNumber(V)-e.getScrollTop();c.style.top="".concat(t,"px")};e.onDidScrollChange(l),l()}}),[r,a,h,d]);return t.jsxs(t.Fragment,{children:[t.jsx(ge,{height:l,width:o,defaultLanguage:g||c,defaultValue:i,theme:s?"vs-dark":"vs-light",onMount:A,beforeMount:function(e){e.languages.typescript.javascriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0})},options:{minimap:{enabled:!0},overviewRulerLanes:3,fontFamily:"Plus Jakarta Sans, sans-serif",scrollBeyondLastLine:!1,readOnly:!0,smoothScrolling:!0,automaticLayout:!0,lineDecorationsWidth:10,padding:{top:20,bottom:20}}}),t.jsxs("style",{children:[R,"\n .myLineHighlight {\n background-color: rgba(0, 122, 204, 0.3);\n }\n "]})]})},Se=function(){return t.jsx("svg",s({width:"100%",height:"100%",fill:"#000000",viewBox:"-1 0 19 19",xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg"},{children:t.jsx("path",{d:"M16.417 9.583A7.917 7.917 0 1 1 8.5 1.666a7.917 7.917 0 0 1 7.917 7.917zM5.85 3.309a6.833 6.833 0 1 0 2.65-.534 6.787 6.787 0 0 0-2.65.534zm2.654 1.336A1.136 1.136 0 1 1 7.37 5.78a1.136 1.136 0 0 1 1.135-1.136zm.792 9.223V8.665a.792.792 0 1 0-1.583 0v5.203a.792.792 0 0 0 1.583 0z"})}))},Te=function(){return t.jsxs("svg",s({width:"100%",height:"100%",viewBox:"0 0 128 128",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",className:"iconify iconify--noto",preserveAspectRatio:"xMidYMid meet"},{children:[t.jsx("path",{d:"M37.41 41.95c-9.71 12.48-9.54 34.65 2.87 45.64c14.09 12.47 33.92 12.34 46.39.87c14.95-13.76 14.09-36.66.87-49.63c-13.29-13.04-37.04-13.72-50.13 3.12z",fill:"#fcc11a"}),t.jsx("path",{d:"M53 37.67c-3.84-1.7-8.04 2.93-9.87 6.09c-1.83 3.17-3.53 9.38.37 10.97c3.9 1.58 6.7-1.1 9.51-5.73c2.79-4.63 4.38-9.38-.01-11.33z",fill:"#fee269"}),t.jsx("path",{d:"M63 20.27c-.93 1.74-.62 3.08 1.23 3.52c1.85.44 13.36 2.31 14.33 2.37c1.41.09 1.93-.97 1.76-2.2c-.18-1.23-2.99-18.46-3.25-20.04S75.14.76 73.55 2.87S63.7 18.96 63 20.27z",fill:"#ffa722"}),t.jsx("path",{d:"M92.8 32.23c-1.81.56-1.76 1.67-.79 3.08c.97 1.41 7.65 11.6 8.26 12.31c.62.7 1.67.88 2.55-.18c.88-1.05 11.86-16.45 12.66-17.41c1.32-1.58.53-3.25-1.49-2.73c-1.54.41-20.05 4.58-21.19 4.93z",fill:"#ffa722"}),t.jsx("path",{d:"M106.6 61.86c-1.3-.74-2.99-.53-3.43 1.14c-.44 1.67-2.37 13.8-2.55 14.86s.62 2.11 1.93 1.85s19.45-2.95 20.66-3.25c2.11-.53 2.81-2.64.62-4.22c-1.42-1.03-16-9.68-17.23-10.38z",fill:"#ffa722"}),t.jsx("path",{d:"M92.09 90.6c1.4-.75 2.64-.18 2.99 1.41c.35 1.58 4.22 17.76 4.84 20.75c.31 1.5-1.41 2.73-2.81 1.85c-1.41-.88-16.69-11.53-17.67-12.4c-1.41-1.23-.43-2.51.26-3.16c1.4-1.33 11.07-7.74 12.39-8.45z",fill:"#ffa722"}),t.jsx("path",{d:"M49.54 99.48c-1.77-.17-2.29 1.41-2.02 2.81c.26 1.41 2.9 19.24 3.08 20.57c.26 1.93 2.29 2.73 3.6.79s10.35-16.4 11.08-17.76c1.32-2.46.35-2.99-.97-3.6c-1.31-.61-12.92-2.63-14.77-2.81z",fill:"#ffa722"}),t.jsx("path",{d:"M24.23 79c1.23-2.02 2.81-1.49 3.96.44c.78 1.32 7.38 10.2 8 11.16c.62.97.88 2.81-1.05 3.25c-1.95.45-17.68 4.58-20.14 5.02c-2.46.44-3.87-1.49-2.29-3.6c.92-1.24 10.82-15.12 11.52-16.27z",fill:"#ffa722"}),t.jsx("path",{d:"M20.89 63.7c2.25 1 3.31.64 3.78-.97c.62-2.11 2.46-11.78 2.55-13.98c.06-1.43-.53-2.81-2.73-2.46S6.47 48.85 4.45 49.55c-2.35.82-2.18 3.4-.62 4.22c1.85.97 15.47 9.23 17.06 9.93z",fill:"#ffa722"}),t.jsx("path",{d:"M48.23 26.78c1.27-1.01.88-2.46-.26-3.25c-1.14-.79-15.26-11-17.05-12.4c-1.58-1.23-3.52-.79-2.99 2.02c.38 2.02 4.88 19.7 5.19 20.92c.35 1.41 1.41 2.11 2.64 1.23c1.21-.87 11.15-7.46 12.47-8.52z",fill:"#ffa722"})]}))},we=function(e){var r=e.darkMode,a=e.onToggle,c=e.toggleFullscreen,l=e.handleOpenFileDetailSection,o=e.showFullscreenIcon,i=e.showFileSummaryIButton,h=n.useState(!1),d=h[0],m=h[1];return t.jsxs("div",s({style:xe.container},{children:[t.jsxs("div",s({style:{position:"relative",display:"inline-block"},onMouseEnter:function(){return m(!0)},onMouseLeave:function(){return m(!1)}},{children:[i?t.jsx("button",s({onClick:function(e){l(e)},style:{background:"transparent",color:"white",border:"none",borderRadius:"50%",width:"24px",height:"24px",fontWeight:"bold",cursor:"pointer",marginRight:"1rem",fontSize:"16px",zIndex:1e3,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"auto",padding:0}},{children:t.jsx(Se,{})})):t.jsx(t.Fragment,{}),d&&t.jsx("div",s({style:{position:"absolute",zIndex:1001,bottom:"125%",left:"50%",transform:"translateX(-50%)",backgroundColor:"#555",color:"#fff",padding:"5px 8px",borderRadius:"6px",fontSize:"12px",textAlign:"center",whiteSpace:"nowrap",opacity:1,transition:"opacity 0.3s"}},{children:"Click to see file summary"}))]})),t.jsxs("label",s({className:"theme-switch",style:xe.switch},{children:[t.jsx("input",{type:"checkbox",checked:r,onChange:a,onClick:a,style:xe.input}),t.jsx("div",s({style:s(s({},xe.slider),{backgroundColor:r?"#444":"#f7f7f7"}),onClick:a},{children:t.jsx("div",s({style:s(s({},xe.thumb),{transform:r?"translateX(22px)":"translateX(0)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:13,backgroundColor:r?"#444":"#f7f7f7"})},{children:r?"🌙":t.jsx(Te,{})}))}))]})),o?t.jsx("button",s({onClick:function(e){return c(e)},style:{background:"transparent",border:"none",padding:"7px 6px",borderRadius:"6px",cursor:"pointer",fontSize:"1.5rem",color:"black",transition:"background 0.3s"},title:"Toggle fullscreen"},{children:"⛶"})):t.jsx(t.Fragment,{})]}))},xe={container:{display:"flex",alignItems:"center",gap:8},icon:{fontSize:20,transition:"transform 0.3s ease"},switch:{position:"relative",display:"inline-block",width:44,height:24},input:{opacity:0,width:0,height:0},slider:{position:"absolute",cursor:"pointer",top:0,left:0,right:0,bottom:0,transition:"0.4s",borderRadius:20},thumb:{position:"absolute",height:19,width:19,backgroundColor:"white",borderRadius:"50%",top:2,left:2,transition:"transform 0.3s ease"}},Re={black:"#000",white:"#fff"},Oe="#e57373",Ae="#f44336",ke="#d32f2f",_e="#ff4081",Pe="#f50057",Ne="#c51162",Fe="#7986cb",De="#3f51b5",Ie="#303f9f",Be="#64b5f6",je="#2196f3",Ue="#1976d2",We="#81c784",Ge="#4caf50",$e="#388e3c",qe="#ffb74d",Ye="#ff9800",Ke="#f57c00",Xe={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},Qe="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function Je(){throw new Error("setTimeout has not been defined")}function Ze(){throw new Error("clearTimeout has not been defined")}var et=Je,tt=Ze;function nt(e){if(et===setTimeout)return setTimeout(e,0);if((et===Je||!et)&&setTimeout)return et=setTimeout,setTimeout(e,0);try{return et(e,0)}catch(t){try{return et.call(null,e,0)}catch(t){return et.call(this,e,0)}}}"function"==typeof Qe.setTimeout&&(et=setTimeout),"function"==typeof Qe.clearTimeout&&(tt=clearTimeout);var rt,at=[],ct=!1,lt=-1;function ot(){ct&&rt&&(ct=!1,rt.length?at=rt.concat(at):lt=-1,at.length&&it())}function it(){if(!ct){var e=nt(ot);ct=!0;for(var t=at.length;t;){for(rt=at,at=[];++lt<t;)rt&&rt[lt].run();lt=-1,t=at.length}rt=null,ct=!1,function(e){if(tt===clearTimeout)return clearTimeout(e);if((tt===Ze||!tt)&&clearTimeout)return tt=clearTimeout,clearTimeout(e);try{return tt(e)}catch(t){try{return tt.call(null,e)}catch(t){return tt.call(this,e)}}}(e)}}function ht(e,t){this.fun=e,this.array=t}ht.prototype.run=function(){this.fun.apply(null,this.array)};function st(){}var dt=st,mt=st,ut=st,vt=st,pt=st,zt=st,ft=st;var gt=Qe.performance||{},Et=gt.now||gt.mozNow||gt.msNow||gt.oNow||gt.webkitNow||function(){return(new Date).getTime()};var Mt=new Date;var Ht={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];at.push(new ht(e,t)),1!==at.length||ct||nt(it)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:dt,addListener:mt,once:ut,off:vt,removeListener:pt,removeAllListeners:zt,emit:ft,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*Et.call(gt),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Mt)/1e3}};function Vt(e,t){return"production"===Ht.env.NODE_ENV?function(){return null}:function(){return e.apply(void 0,arguments)||t.apply(void 0,arguments)}}function yt(){return yt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yt.apply(null,arguments)}function Lt(e){return Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lt(e)}function bt(e){return e&&"object"===Lt(e)&&e.constructor===Object}function Ct(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?yt({},e):e;return bt(e)&&bt(t)&&Object.keys(t).forEach((function(a){"__proto__"!==a&&(bt(t[a])&&a in e?r[a]=Ct(e[a],t[a],n):r[a]=t[a])})),r}var St,Tt={exports:{}},wt={exports:{}},xt={};var Rt,Ot,At,kt,_t,Pt,Nt,Ft,Dt,It,Bt,jt,Ut,Wt,Gt,$t={};function qt(){return Ot||(Ot=1,"production"===Ht.env.NODE_ENV?wt.exports=function(){if(St)return xt;St=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,i=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,s=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,u=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,z=e?Symbol.for("react.fundamental"):60117,f=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case i:case h:case r:case c:case a:case d:return e;default:switch(e=e&&e.$$typeof){case o:case s:case v:case u:case l:return e;default:return m}}case n:return m}}}function M(e){return E(e)===h}return xt.AsyncMode=i,xt.ConcurrentMode=h,xt.ContextConsumer=o,xt.ContextProvider=l,xt.Element=t,xt.ForwardRef=s,xt.Fragment=r,xt.Lazy=v,xt.Memo=u,xt.Portal=n,xt.Profiler=c,xt.StrictMode=a,xt.Suspense=d,xt.isAsyncMode=function(e){return M(e)||E(e)===i},xt.isConcurrentMode=M,xt.isContextConsumer=function(e){return E(e)===o},xt.isContextProvider=function(e){return E(e)===l},xt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},xt.isForwardRef=function(e){return E(e)===s},xt.isFragment=function(e){return E(e)===r},xt.isLazy=function(e){return E(e)===v},xt.isMemo=function(e){return E(e)===u},xt.isPortal=function(e){return E(e)===n},xt.isProfiler=function(e){return E(e)===c},xt.isStrictMode=function(e){return E(e)===a},xt.isSuspense=function(e){return E(e)===d},xt.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===h||e===c||e===a||e===d||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===u||e.$$typeof===l||e.$$typeof===o||e.$$typeof===s||e.$$typeof===z||e.$$typeof===f||e.$$typeof===g||e.$$typeof===p)},xt.typeOf=E,xt}():wt.exports=(Rt||(Rt=1,"production"!==Ht.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,i=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,s=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,u=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,z=e?Symbol.for("react.fundamental"):60117,f=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:var p=e.type;switch(p){case i:case h:case r:case c:case a:case d:return p;default:var z=p&&p.$$typeof;switch(z){case o:case s:case v:case u:case l:return z;default:return m}}case n:return m}}}var M=i,H=h,V=o,y=l,L=t,b=s,C=r,S=v,T=u,w=n,x=c,R=a,O=d,A=!1;function k(e){return E(e)===h}$t.AsyncMode=M,$t.ConcurrentMode=H,$t.ContextConsumer=V,$t.ContextProvider=y,$t.Element=L,$t.ForwardRef=b,$t.Fragment=C,$t.Lazy=S,$t.Memo=T,$t.Portal=w,$t.Profiler=x,$t.StrictMode=R,$t.Suspense=O,$t.isAsyncMode=function(e){return A||(A=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),k(e)||E(e)===i},$t.isConcurrentMode=k,$t.isContextConsumer=function(e){return E(e)===o},$t.isContextProvider=function(e){return E(e)===l},$t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},$t.isForwardRef=function(e){return E(e)===s},$t.isFragment=function(e){return E(e)===r},$t.isLazy=function(e){return E(e)===v},$t.isMemo=function(e){return E(e)===u},$t.isPortal=function(e){return E(e)===n},$t.isProfiler=function(e){return E(e)===c},$t.isStrictMode=function(e){return E(e)===a},$t.isSuspense=function(e){return E(e)===d},$t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===h||e===c||e===a||e===d||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===u||e.$$typeof===l||e.$$typeof===o||e.$$typeof===s||e.$$typeof===z||e.$$typeof===f||e.$$typeof===g||e.$$typeof===p)},$t.typeOf=E}()),$t)),wt.exports}
2
2
  /*
3
3
  object-assign
4
4
  (c) Sindre Sorhus
@@ -1 +1 @@
1
- {"version":3,"file":"CodeEditor.d.ts","sourceRoot":"","sources":["../../../../../src/features/CodeCitation/_components/CodeEditor.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAI5F,oBAAY,kBAAkB;IAAG,KAAK,IAAI;IAAE,OAAO,IAAI;IAAE,WAAW,IAAI;IAAE,IAAI,IAAI;CAAE;AAEpF,UAAU,eAAe;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,qBAAqB,EAAE,OAAO,CAAC;IAC/B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,0BAA0B,CAAC,EAAE,GAAG,CAAA;IAChC,sBAAsB,CAAC,EAAE,GAAG,CAAA;IAC5B,yBAAyB,CAAC,EAAE,GAAG,CAAA;IAC/B,0BAA0B,EAAE,GAAG,CAAA;IAC/B,6BAA6B,EAAE,GAAG,CAAA;IAClC,mBAAmB,CAAC,EAAE,GAAG,CAAA;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB,gBAAgB,EAAE,GAAG,CAAA;IACrB,WAAW,CAAC,EAAE,WAAW,EAAE,CAAC;IAC5B,0BAA0B,CAAC,EAAE,2BAA2B,CAAC;CAC5D;AAED,QAAA,MAAM,UAAU,wVAmBb,eAAe,4CAofjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"CodeEditor.d.ts","sourceRoot":"","sources":["../../../../../src/features/CodeCitation/_components/CodeEditor.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAI5F,oBAAY,kBAAkB;IAAG,KAAK,IAAI;IAAE,OAAO,IAAI;IAAE,WAAW,IAAI;IAAE,IAAI,IAAI;CAAE;AAEpF,UAAU,eAAe;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,qBAAqB,EAAE,OAAO,CAAC;IAC/B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,0BAA0B,CAAC,EAAE,GAAG,CAAA;IAChC,sBAAsB,CAAC,EAAE,GAAG,CAAA;IAC5B,yBAAyB,CAAC,EAAE,GAAG,CAAA;IAC/B,0BAA0B,EAAE,GAAG,CAAA;IAC/B,6BAA6B,EAAE,GAAG,CAAA;IAClC,mBAAmB,CAAC,EAAE,GAAG,CAAA;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB,gBAAgB,EAAE,GAAG,CAAA;IACrB,WAAW,CAAC,EAAE,WAAW,EAAE,CAAC;IAC5B,0BAA0B,CAAC,EAAE,2BAA2B,CAAC;CAC5D;AAED,QAAA,MAAM,UAAU,wVAmBb,eAAe,4CAkfjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-llm-studio/citation",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
4
4
  "author": "Devesh Patel",
5
5
  "description": "",
6
6
  "license": "MIT",