@infinilabs/discover 0.0.1
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/LICENSE +9 -0
- package/README.md +8 -0
- package/dist/abap-B988NUrV.js +122 -0
- package/dist/abap-obercqiY.cjs +1 -0
- package/dist/apex-B0_UGK1B.cjs +1 -0
- package/dist/apex-BlHPPQK-.js +168 -0
- package/dist/azcli-C7iyZFGk.js +53 -0
- package/dist/azcli-CEoytwx_.cjs +1 -0
- package/dist/bat-Buc0l0C3.js +123 -0
- package/dist/bat-D65OC-jj.cjs +1 -0
- package/dist/bicep-DvD_e5vW.cjs +2 -0
- package/dist/bicep-U66iJ-pV.js +219 -0
- package/dist/cameligo-C9Dwkdmm.js +189 -0
- package/dist/cameligo-DzMHfeEs.cjs +1 -0
- package/dist/chunk-BjqF3vbe.cjs +1 -0
- package/dist/chunk-CIp4IH9D.js +21 -0
- package/dist/classnames-BXjDNQ6Q.cjs +1 -0
- package/dist/classnames-eUba3oot.js +29 -0
- package/dist/clojure-BC7BzAFK.cjs +1 -0
- package/dist/clojure-DDWmWbSx.js +146 -0
- package/dist/coffee-7Sx2S8NH.js +260 -0
- package/dist/coffee-Ca9F0OWZ.cjs +1 -0
- package/dist/common-BeXEy5sz.cjs +18 -0
- package/dist/common-BlOHZJzI.js +64 -0
- package/dist/common-DuYIpe6b.cjs +1 -0
- package/dist/common-Tr1I-HCs.js +6725 -0
- package/dist/cpp-CHjqaSPQ.js +230 -0
- package/dist/cpp-DKy9h6xR.cjs +1 -0
- package/dist/createLucideIcon-239Z-2by.cjs +1 -0
- package/dist/createLucideIcon-BO6TDGE7.js +43 -0
- package/dist/csharp-CkbgT9vH.cjs +1 -0
- package/dist/csharp-jwStnVeK.js +260 -0
- package/dist/csp-C2qFd6iv.cjs +1 -0
- package/dist/csp-DkO8Np0h.js +46 -0
- package/dist/css-BFvwcljm.js +284 -0
- package/dist/css-DCKUCzD6.cjs +3 -0
- package/dist/cssMode-CU2AJQMM.js +1509 -0
- package/dist/cssMode-l7eR8WSG.cjs +4 -0
- package/dist/cypher-122TYSjJ.cjs +1 -0
- package/dist/cypher-DaQ7hFRL.js +212 -0
- package/dist/dart-D8p_2HKP.js +236 -0
- package/dist/dart-DshcPGU8.cjs +1 -0
- package/dist/dist-DCz_Qv0B.js +884 -0
- package/dist/dist-D_2dZQH5.cjs +11 -0
- package/dist/dockerfile-CL8dwZCe.cjs +1 -0
- package/dist/dockerfile-DKWOQrwp.js +191 -0
- package/dist/ecl-DP3PNWGB.js +226 -0
- package/dist/ecl-DVx2J_EE.cjs +1 -0
- package/dist/editor.api-CbUDOph7.js +70302 -0
- package/dist/editor.api-lY2thcaq.cjs +644 -0
- package/dist/elixir-Xgx_1krO.cjs +1 -0
- package/dist/elixir-e9tDp1p1.js +523 -0
- package/dist/filter_label-DRJC3vpe.js +58 -0
- package/dist/filter_label-DssaWGpx.cjs +1 -0
- package/dist/filter_operators-C-TaTcNc.js +70 -0
- package/dist/filter_operators-D0kyB-XI.cjs +1 -0
- package/dist/flow9-C9BjpX8h.js +176 -0
- package/dist/flow9-DR-EyjYV.cjs +1 -0
- package/dist/freemarker2-BTGUjvgA.cjs +3 -0
- package/dist/freemarker2-C6Iq5MB-.js +724 -0
- package/dist/fsharp-BWm_FISn.js +147 -0
- package/dist/fsharp-DaBEigN7.cjs +1 -0
- package/dist/go-Xyq33f0v.cjs +1 -0
- package/dist/go-cmqV0Vy_.js +165 -0
- package/dist/graphql-BkFHHVmI.js +174 -0
- package/dist/graphql-Cj7XAy25.cjs +1 -0
- package/dist/handlebars-B2b1q7PA.cjs +1 -0
- package/dist/handlebars-DGGN9u4Y.js +418 -0
- package/dist/hcl-5I-P7bYX.js +219 -0
- package/dist/hcl-C3dpBsgU.cjs +1 -0
- package/dist/html-RJa-j-qT.js +339 -0
- package/dist/html-qfcUzk8e.cjs +1 -0
- package/dist/htmlMode-CYIxo4hc.cjs +4 -0
- package/dist/htmlMode-DDZ48mdp.js +1520 -0
- package/dist/index.cjs +303 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +72895 -0
- package/dist/index_pattern_select--iGeA3sP.js +93 -0
- package/dist/index_pattern_select-BeN5049F.cjs +1 -0
- package/dist/ini-ChENqKh8.cjs +1 -0
- package/dist/ini-DSIAxBZt.js +94 -0
- package/dist/java-DGeAxsRb.js +173 -0
- package/dist/java-LZ6g7weJ.cjs +1 -0
- package/dist/javascript-CN5gTHH2.js +19 -0
- package/dist/javascript-CZ97a-BN.cjs +1 -0
- package/dist/jsonMode-BZDeJMLL.cjs +10 -0
- package/dist/jsonMode-DraOl-ka.js +1885 -0
- package/dist/julia-BeebccKw.cjs +1 -0
- package/dist/julia-CU4CtsP4.js +414 -0
- package/dist/kotlin-B8NxXJ89.js +183 -0
- package/dist/kotlin-M82nl514.cjs +1 -0
- package/dist/less-B4Q3fV9Y.cjs +2 -0
- package/dist/less-DbeQQzer.js +242 -0
- package/dist/lexon-CXQaaecE.cjs +1 -0
- package/dist/lexon-Cw9JuAKc.js +185 -0
- package/dist/lib-C9j_E-l0.js +47 -0
- package/dist/lib-Chy_6VKj.cjs +1 -0
- package/dist/liquid-BYNEOJvX.cjs +1 -0
- package/dist/liquid-DvB-d2w7.js +205 -0
- package/dist/lodash-C_2NO1eK.cjs +35 -0
- package/dist/lodash-D-qGlPRW.js +3769 -0
- package/dist/lua-CnG8Tpu2.cjs +1 -0
- package/dist/lua-yl5NzA_S.js +200 -0
- package/dist/m3-CVcm-OIn.cjs +1 -0
- package/dist/m3-CdNAqvIX.js +193 -0
- package/dist/markdown-C1h-EuiT.js +262 -0
- package/dist/markdown-DrRHDVSU.cjs +1 -0
- package/dist/mdx-BbiOYPr2.cjs +1 -0
- package/dist/mdx-Fk8VTCUK.js +335 -0
- package/dist/mips-DIWpzGF0.js +128 -0
- package/dist/mips-D_p8UYQb.cjs +1 -0
- package/dist/monaco.contribution-BpuUCejv.cjs +1 -0
- package/dist/monaco.contribution-Cq4QrMn0.js +134 -0
- package/dist/msdax-BiazpDQ1.js +156 -0
- package/dist/msdax-xM1_j20x.cjs +1 -0
- package/dist/mysql-DMsJkSnA.cjs +1 -0
- package/dist/mysql-DphBFJlP.js +168 -0
- package/dist/objective-c-BG02Lrht.cjs +1 -0
- package/dist/objective-c-DWZ8Qpyc.js +144 -0
- package/dist/pascal-BcvlMOdu.js +176 -0
- package/dist/pascal-CnP2Fqes.cjs +1 -0
- package/dist/pascaligo-BzDEm-l_.cjs +1 -0
- package/dist/pascaligo-DHEp4kzh.js +201 -0
- package/dist/perl-USYKPHpO.js +316 -0
- package/dist/perl-nIxw-e4R.cjs +1 -0
- package/dist/pgsql-Buk6XzVf.cjs +1 -0
- package/dist/pgsql-DzPhAh9W.js +158 -0
- package/dist/php-B3sFYUqV.cjs +1 -0
- package/dist/php-PfpSTefE.js +471 -0
- package/dist/pla-CZtnfWl6.cjs +1 -0
- package/dist/pla-DrFOZwDB.js +146 -0
- package/dist/postiats-4OGxVVUT.js +504 -0
- package/dist/postiats-CgJZf83Q.cjs +1 -0
- package/dist/powerquery-D9gzk2Dq.cjs +1 -0
- package/dist/powerquery-_h9-HEnY.js +190 -0
- package/dist/powershell-CZHaQY6z.cjs +1 -0
- package/dist/powershell-nOzcY8gy.js +211 -0
- package/dist/protobuf-DAgxhnea.js +659 -0
- package/dist/protobuf-D_C8Guej.cjs +2 -0
- package/dist/public-1PveQco4.js +1756 -0
- package/dist/public-D1K7oN7t.cjs +3 -0
- package/dist/pug-quEtG4rz.cjs +1 -0
- package/dist/pug-raGZNmZ1.js +300 -0
- package/dist/python-C45c7K7W.js +260 -0
- package/dist/python-CQX8JcT4.cjs +1 -0
- package/dist/qsharp-C2jz5tuo.js +143 -0
- package/dist/qsharp-CX1SSV_j.cjs +1 -0
- package/dist/query_bar_top_row-3UclS1nm.cjs +1 -0
- package/dist/query_bar_top_row-CfV4Iu71.cjs +1 -0
- package/dist/query_bar_top_row-D6a48VTk.js +11 -0
- package/dist/query_bar_top_row-DonV1OzY.js +2930 -0
- package/dist/query_string_input-75waAcWy.js +9 -0
- package/dist/query_string_input-CHG9w1ze.cjs +1 -0
- package/dist/query_string_input-CyPZVKif.js +366 -0
- package/dist/query_string_input-SOULY6dl.cjs +1 -0
- package/dist/r-CXkPcYYf.js +189 -0
- package/dist/r-DpVDQTST.cjs +1 -0
- package/dist/razor-BnoJmj1k.js +525 -0
- package/dist/razor-DYx4yJJn.cjs +1 -0
- package/dist/redis-DsCuCZIT.cjs +1 -0
- package/dist/redis-giKZvbbg.js +123 -0
- package/dist/redshift-qKVxBsP_.js +158 -0
- package/dist/redshift-z5_aUfdC.cjs +1 -0
- package/dist/restructuredtext-D0n4pabr.js +287 -0
- package/dist/restructuredtext-DdXoKocW.cjs +1 -0
- package/dist/ruby-BNrBlpcw.js +527 -0
- package/dist/ruby-Dj0sNBey.cjs +1 -0
- package/dist/rust-D6mpPoli.js +178 -0
- package/dist/rust-DjkW1U4M.cjs +1 -0
- package/dist/sb-BCN0JcpS.cjs +1 -0
- package/dist/sb-DhS9GhXl.js +143 -0
- package/dist/scala-BqxBEpi8.js +551 -0
- package/dist/scala-CyXWhZaJ.cjs +1 -0
- package/dist/scheme-Bh4oGAk3.js +170 -0
- package/dist/scheme-Cs9G6QEE.cjs +1 -0
- package/dist/scss-Byf08jwC.js +417 -0
- package/dist/scss-Fl7taPuq.cjs +3 -0
- package/dist/search_bar-Caqi1NVo.js +1815 -0
- package/dist/search_bar-DyO_WsC5.cjs +1 -0
- package/dist/services-9wPHk1eh.js +2350 -0
- package/dist/services-BPC3fXx4.cjs +7 -0
- package/dist/shard_failure_open_modal_button-BYTThYch.js +199 -0
- package/dist/shard_failure_open_modal_button-Dx8ML4VE.cjs +2 -0
- package/dist/shell-Cw5yNfC4.cjs +1 -0
- package/dist/shell-UoRv_tpG.js +223 -0
- package/dist/solidity-B5t7Lkol.js +147 -0
- package/dist/solidity-BoAzg9X_.cjs +1 -0
- package/dist/sophia-BrXXWhvp.js +147 -0
- package/dist/sophia-L84Jz6Ow.cjs +1 -0
- package/dist/sparql-B8ZTY48u.js +124 -0
- package/dist/sparql-D6lnG7vO.cjs +1 -0
- package/dist/sql-D_74hUL-.js +171 -0
- package/dist/sql-VXdYzIyz.cjs +1 -0
- package/dist/src/App.d.ts +2 -0
- package/dist/src/components/ResultHeader/Info.d.ts +30 -0
- package/dist/src/components/ResultHeader/index.d.ts +13 -0
- package/dist/src/components/context.d.ts +82 -0
- package/dist/src/components/euiicons.d.ts +1 -0
- package/dist/src/components/index.d.ts +8 -0
- package/dist/src/main.d.ts +1 -0
- package/dist/src/utils/request.d.ts +1 -0
- package/dist/src/utils/utils.d.ts +1 -0
- package/dist/st-CxJLwAAK.cjs +1 -0
- package/dist/st-D8Rdx9Bz.js +476 -0
- package/dist/suggestions_component-BBHwbjYT.js +1243 -0
- package/dist/suggestions_component-CF4sehth.cjs +77 -0
- package/dist/swift-ZBC6wQdc.cjs +1 -0
- package/dist/swift-s19Ivx3X.js +213 -0
- package/dist/systemverilog-DoSgAb1I.cjs +1 -0
- package/dist/systemverilog-fA72PnKj.js +298 -0
- package/dist/tcl-B8QLbcxi.js +223 -0
- package/dist/tcl-IXmy-lJ0.cjs +1 -0
- package/dist/tsMode-BrPRpJvb.js +597 -0
- package/dist/tsMode-CNvH6xuC.cjs +11 -0
- package/dist/tsup.config.d.ts +2 -0
- package/dist/twig-CT2RXmm0.cjs +1 -0
- package/dist/twig-Dy7NkzKI.js +388 -0
- package/dist/typescript-BRKHcp4S.js +263 -0
- package/dist/typescript-Bbw9fxuo.cjs +1 -0
- package/dist/typescript-CQjO9XnF.js +3 -0
- package/dist/typescript-D6q4AO2z.cjs +1 -0
- package/dist/typespec-CkKpvaMv.cjs +1 -0
- package/dist/typespec-ndyv0mQx.js +234 -0
- package/dist/vb-DET0NIW-.js +260 -0
- package/dist/vb-R3Kcrzvd.cjs +1 -0
- package/dist/vite.config.d.ts +2 -0
- package/dist/wgsl-D5TeQchR.js +145 -0
- package/dist/wgsl-FTDBzylH.cjs +298 -0
- package/dist/xml-BZjE3dtf.js +136 -0
- package/dist/xml-CxbMIueA.cjs +1 -0
- package/dist/yaml-Di_6aXC4.js +229 -0
- package/dist/yaml-DvaGkWBl.cjs +1 -0
- package/package.json +98 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const e=require(`./chunk-BjqF3vbe.cjs`),t=require(`./createLucideIcon-239Z-2by.cjs`);let n=require(`react`);n=e.a(n);var r=[[`path`,{d:`M2 5h20`,key:`1fs1ex`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`path`,{d:`M9 19h6`,key:`456am0`}]],i=t.t(`list-filter`,r),a=e.r({default:()=>F});function o(e,t){var n=!1,r=!1,i=0;function a(){n&&(n=!1,e()),r&&s()}function o(){y(a)}function s(){var e=Date.now();if(n){if(e-i<b)return;r=!0}else n=!0,r=!1,setTimeout(o,t);i=e}return s}function s(e){return parseFloat(e)||0}function c(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){var r=e[`border-`+n+`-width`];return t+s(r)},0)}function l(e){for(var t=[`top`,`right`,`bottom`,`left`],n={},r=0,i=t;r<i.length;r++){var a=i[r],o=e[`padding-`+a];n[a]=s(o)}return n}function u(e){var t=e.getBBox();return h(0,0,t.width,t.height)}function d(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return D;var r=E(e).getComputedStyle(e),i=l(r),a=i.left+i.right,o=i.top+i.bottom,u=s(r.width),d=s(r.height);if(r.boxSizing===`border-box`&&(Math.round(u+a)!==t&&(u-=c(r,`left`,`right`)+a),Math.round(d+o)!==n&&(d-=c(r,`top`,`bottom`)+o)),!f(e)){var p=Math.round(u+a)-t,m=Math.round(d+o)-n;Math.abs(p)!==1&&(u-=p),Math.abs(m)!==1&&(d-=m)}return h(i.left,i.top,u,d)}function f(e){return e===E(e).document.documentElement}function p(e){return _?O(e)?u(e):d(e):D}function m(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=typeof DOMRectReadOnly<`u`?DOMRectReadOnly:Object,o=Object.create(a.prototype);return T(o,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),o}function h(e,t,n,r){return{x:e,y:t,width:n,height:r}}var g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,F,I=e.n((()=>{g=(function(){if(typeof Map<`u`)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t?(n=r,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,`size`,{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){t===void 0&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()})(),_=typeof window<`u`&&typeof document<`u`&&window.document===document,v=(function(){return typeof global<`u`&&global.Math===Math?global:typeof self<`u`&&self.Math===Math?self:typeof window<`u`&&window.Math===Math?window:Function(`return this`)()})(),y=(function(){return typeof requestAnimationFrame==`function`?requestAnimationFrame.bind(v):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),b=2,x=20,S=[`top`,`right`,`bottom`,`left`,`width`,`height`,`size`,`weight`],C=typeof MutationObserver<`u`,w=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=o(this.refresh.bind(this),x)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){!_||this.connected_||(document.addEventListener(`transitionend`,this.onTransitionEnd_),window.addEventListener(`resize`,this.refresh),C?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener(`DOMSubtreeModified`,this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!_||!this.connected_||(document.removeEventListener(`transitionend`,this.onTransitionEnd_),window.removeEventListener(`resize`,this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener(`DOMSubtreeModified`,this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=t===void 0?``:t;S.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||=new e,this.instance_},e.instance_=null,e}(),T=(function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e}),E=(function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||v}),D=h(0,0,0,0),O=(function(){return typeof SVGGraphicsElement<`u`?function(e){return e instanceof E(e).SVGGraphicsElement}:function(e){return e instanceof E(e).SVGElement&&typeof e.getBBox==`function`}})(),k=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=h(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=p(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),A=function(){function e(e,t){var n=m(t);T(this,{target:e,contentRect:n})}return e}(),j=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new g,typeof e!=`function`)throw TypeError(`The callback provided as parameter 1 is not a function.`);this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw TypeError(`1 argument required, but only 0 present.`);if(!(typeof Element>`u`||!(Element instanceof Object))){if(!(e instanceof E(e).Element))throw TypeError(`parameter 1 is not of type "Element".`);var t=this.observations_;t.has(e)||(t.set(e,new k(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw TypeError(`1 argument required, but only 0 present.`);if(!(typeof Element>`u`||!(Element instanceof Object))){if(!(e instanceof E(e).Element))throw TypeError(`parameter 1 is not of type "Element".`);var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new A(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),M=typeof WeakMap<`u`?new WeakMap:new g,N=function(){function e(t){if(!(this instanceof e))throw TypeError(`Cannot call a class as a function.`);if(!arguments.length)throw TypeError(`1 argument required, but only 0 present.`);var n=new j(t,w.getInstance(),this);M.set(this,n)}return e}(),[`observe`,`unobserve`,`disconnect`].forEach(function(e){N.prototype[e]=function(){var t;return(t=M.get(this))[e].apply(t,arguments)}}),P=(function(){return v.ResizeObserver===void 0?N:v.ResizeObserver})(),F=P}));function L(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ee(e){if(Array.isArray(e))return e}function te(e,t,n){return(t=ue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ne(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function re(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ie(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 ae(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ie(Object(n),!0).forEach(function(t){te(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ie(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function oe(e,t){if(e==null)return{};var n,r,i=se(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function se(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function ce(e,t){return ee(e)||ne(e,t)||de(e,t)||re()}function le(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ue(e){var t=le(e,`string`);return typeof t==`symbol`?t:t+``}function de(e,t){if(e){if(typeof e==`string`)return L(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(e,t):void 0}}function fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pe(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 me(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?pe(Object(n),!0).forEach(function(t){fe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function he(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}}function R(e){return function t(){for(var n=this,r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];return i.length>=e.length?e.apply(this,i):function(){for(var e=arguments.length,r=Array(e),a=0;a<e;a++)r[a]=arguments[a];return t.apply(n,[].concat(i,r))}}}function z(e){return{}.toString.call(e).includes(`Object`)}function ge(e){return!Object.keys(e).length}function B(e){return typeof e==`function`}function _e(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ve(e,t){return z(t)||V(`changeType`),Object.keys(t).some(function(t){return!_e(e,t)})&&V(`changeField`),t}function ye(e){B(e)||V(`selectorType`)}function be(e){B(e)||z(e)||V(`handlerType`),z(e)&&Object.values(e).some(function(e){return!B(e)})&&V(`handlersType`)}function xe(e){e||V(`initialIsRequired`),z(e)||V(`initialType`),ge(e)&&V(`initialContent`)}function Se(e,t){throw Error(e[t]||e.default)}var V=R(Se)({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"}),H={changes:ve,selector:ye,handler:be,initial:xe};function Ce(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};H.initial(e),H.handler(t);var n={current:e},r=R(Ee)(n,t),i=R(Te)(n),a=R(H.changes)(e),o=R(we)(n);function s(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(e){return e};return H.selector(e),e(n.current)}function c(e){he(r,i,a,o)(e)}return[s,c]}function we(e,t){return B(t)?t(e.current):t}function Te(e,t){return e.current=me(me({},e.current),t),t}function Ee(e,t,n){return B(t)?t(e.current):Object.keys(n).forEach(function(n){return t[n]?.call(t,e.current[n])}),n}var De={create:Ce},Oe=De,ke={paths:{vs:`https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs`}};function Ae(e){return function t(){for(var n=this,r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];return i.length>=e.length?e.apply(this,i):function(){for(var e=arguments.length,r=Array(e),a=0;a<e;a++)r[a]=arguments[a];return t.apply(n,[].concat(i,r))}}}function je(e){return{}.toString.call(e).includes(`Object`)}function Me(e){return e||Ie(`configIsRequired`),je(e)||Ie(`configType`),e.urls?(Ne(),{paths:{vs:e.urls.monacoBase}}):e}function Ne(){console.warn(Fe.deprecation)}function Pe(e,t){throw Error(e[t]||e.default)}var Fe={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!
|
|
3
|
+
You are using deprecated way of configuration.
|
|
4
|
+
|
|
5
|
+
Instead of using
|
|
6
|
+
monaco.config({ urls: { monacoBase: '...' } })
|
|
7
|
+
use
|
|
8
|
+
monaco.config({ paths: { vs: '...' } })
|
|
9
|
+
|
|
10
|
+
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
11
|
+
`},Ie=Ae(Pe)(Fe),Le={config:Me},Re=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}};function U(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],U(e[n],t[n]))}),ae(ae({},e),t)}var ze={type:`cancelation`,msg:`operation is manually canceled`};function W(e){var t=!1,n=new Promise(function(n,r){e.then(function(e){return t?r(ze):n(e)}),e.catch(r)});return n.cancel=function(){return t=!0},n}var Be=[`monaco`],Ve=ce(Oe.create({config:ke,isInitialized:!1,resolve:null,reject:null,monaco:null}),2),G=Ve[0],K=Ve[1];function He(e){var t=Le.config(e),n=t.monaco,r=oe(t,Be);K(function(e){return{config:U(e.config,r),monaco:n}})}function Ue(){var e=G(function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}});if(!e.isInitialized){if(K({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),W(q);if(window.monaco&&window.monaco.editor)return Je(window.monaco),e.resolve(window.monaco),W(q);Re(We,Ke)(qe)}return W(q)}function We(e){return document.body.appendChild(e)}function Ge(e){var t=document.createElement(`script`);return e&&(t.src=e),t}function Ke(e){var t=G(function(e){return{config:e.config,reject:e.reject}}),n=Ge(`${t.config.paths.vs}/loader.js`);return n.onload=function(){return e()},n.onerror=t.reject,n}function qe(){var e=G(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){var n=t.m||t;Je(n),e.resolve(n)},function(t){e.reject(t)})}function Je(e){G().monaco||K({monaco:e})}function Ye(){return G(function(e){return e.monaco})}var q=new Promise(function(e,t){return K({resolve:e,reject:t})}),J={config:He,init:Ue,__getMonacoInstance:Ye},Y={wrapper:{display:`flex`,position:`relative`,textAlign:`initial`},fullWidth:{width:`100%`},hide:{display:`none`}},Xe={container:{display:`flex`,height:`100%`,width:`100%`,justifyContent:`center`,alignItems:`center`}};function Ze({children:e}){return n.default.createElement(`div`,{style:Xe.container},e)}var Qe=Ze;function $e({width:e,height:t,isEditorReady:r,loading:i,_ref:a,className:o,wrapperProps:s}){return n.default.createElement(`section`,{style:{...Y.wrapper,width:e,height:t},...s},!r&&n.default.createElement(Qe,null,i),n.default.createElement(`div`,{ref:a,style:{...Y.fullWidth,...!r&&Y.hide},className:o}))}var et=(0,n.memo)($e);function tt(e){(0,n.useEffect)(e,[])}var nt=tt;function rt(e,t,r=!0){let i=(0,n.useRef)(!0);(0,n.useEffect)(i.current||!r?()=>{i.current=!1}:e,t)}var X=rt;function Z(){}function Q(e,t,n,r){return it(e,r)||at(e,t,n,r)}function it(e,t){return e.editor.getModel(ot(e,t))}function at(e,t,n,r){return e.editor.createModel(t,n,r?ot(e,r):void 0)}function ot(e,t){return e.Uri.parse(t)}function st({original:e,modified:t,language:r,originalLanguage:i,modifiedLanguage:a,originalModelPath:o,modifiedModelPath:s,keepCurrentOriginalModel:c=!1,keepCurrentModifiedModel:l=!1,theme:u=`light`,loading:d=`Loading...`,options:f={},height:p=`100%`,width:m=`100%`,className:h,wrapperProps:g={},beforeMount:_=Z,onMount:v=Z}){let[y,b]=(0,n.useState)(!1),[x,S]=(0,n.useState)(!0),C=(0,n.useRef)(null),w=(0,n.useRef)(null),T=(0,n.useRef)(null),E=(0,n.useRef)(v),D=(0,n.useRef)(_),O=(0,n.useRef)(!1);nt(()=>{let e=J.init();return e.then(e=>(w.current=e)&&S(!1)).catch(e=>e?.type!==`cancelation`&&console.error(`Monaco initialization: error:`,e)),()=>C.current?j():e.cancel()}),X(()=>{if(C.current&&w.current){let t=C.current.getOriginalEditor(),n=Q(w.current,e||``,i||r||`text`,o||``);n!==t.getModel()&&t.setModel(n)}},[o],y),X(()=>{if(C.current&&w.current){let e=C.current.getModifiedEditor(),n=Q(w.current,t||``,a||r||`text`,s||``);n!==e.getModel()&&e.setModel(n)}},[s],y),X(()=>{let e=C.current.getModifiedEditor();e.getOption(w.current.editor.EditorOption.readOnly)?e.setValue(t||``):t!==e.getValue()&&(e.executeEdits(``,[{range:e.getModel().getFullModelRange(),text:t||``,forceMoveMarkers:!0}]),e.pushUndoStop())},[t],y),X(()=>{C.current?.getModel()?.original.setValue(e||``)},[e],y),X(()=>{let{original:e,modified:t}=C.current.getModel();w.current.editor.setModelLanguage(e,i||r||`text`),w.current.editor.setModelLanguage(t,a||r||`text`)},[r,i,a],y),X(()=>{w.current?.editor.setTheme(u)},[u],y),X(()=>{C.current?.updateOptions(f)},[f],y);let k=(0,n.useCallback)(()=>{if(!w.current)return;D.current(w.current);let n=Q(w.current,e||``,i||r||`text`,o||``),c=Q(w.current,t||``,a||r||`text`,s||``);C.current?.setModel({original:n,modified:c})},[r,t,a,e,i,o,s]),A=(0,n.useCallback)(()=>{!O.current&&T.current&&(C.current=w.current.editor.createDiffEditor(T.current,{automaticLayout:!0,...f}),k(),w.current?.editor.setTheme(u),b(!0),O.current=!0)},[f,u,k]);(0,n.useEffect)(()=>{y&&E.current(C.current,w.current)},[y]),(0,n.useEffect)(()=>{!x&&!y&&A()},[x,y,A]);function j(){let e=C.current?.getModel();c||e?.original?.dispose(),l||e?.modified?.dispose(),C.current?.dispose()}return n.default.createElement(et,{width:m,height:p,isEditorReady:y,loading:d,_ref:T,className:h,wrapperProps:g})}var ct=(0,n.memo)(st);function lt(e){let t=(0,n.useRef)();return(0,n.useEffect)(()=>{t.current=e},[e]),t.current}var ut=lt,$=new Map;function dt({defaultValue:e,defaultLanguage:t,defaultPath:r,value:i,language:a,path:o,theme:s=`light`,line:c,loading:l=`Loading...`,options:u={},overrideServices:d={},saveViewState:f=!0,keepCurrentModel:p=!1,width:m=`100%`,height:h=`100%`,className:g,wrapperProps:_={},beforeMount:v=Z,onMount:y=Z,onChange:b,onValidate:x=Z}){let[S,C]=(0,n.useState)(!1),[w,T]=(0,n.useState)(!0),E=(0,n.useRef)(null),D=(0,n.useRef)(null),O=(0,n.useRef)(null),k=(0,n.useRef)(y),A=(0,n.useRef)(v),j=(0,n.useRef)(),M=(0,n.useRef)(i),N=ut(o),P=(0,n.useRef)(!1),F=(0,n.useRef)(!1);nt(()=>{let e=J.init();return e.then(e=>(E.current=e)&&T(!1)).catch(e=>e?.type!==`cancelation`&&console.error(`Monaco initialization: error:`,e)),()=>D.current?L():e.cancel()}),X(()=>{let n=Q(E.current,e||i||``,t||a||``,o||r||``);n!==D.current?.getModel()&&(f&&$.set(N,D.current?.saveViewState()),D.current?.setModel(n),f&&D.current?.restoreViewState($.get(o)))},[o],S),X(()=>{D.current?.updateOptions(u)},[u],S),X(()=>{!D.current||i===void 0||(D.current.getOption(E.current.editor.EditorOption.readOnly)?D.current.setValue(i):i!==D.current.getValue()&&(F.current=!0,D.current.executeEdits(``,[{range:D.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),D.current.pushUndoStop(),F.current=!1))},[i],S),X(()=>{let e=D.current?.getModel();e&&a&&E.current?.editor.setModelLanguage(e,a)},[a],S),X(()=>{c!==void 0&&D.current?.revealLine(c)},[c],S),X(()=>{E.current?.editor.setTheme(s)},[s],S);let I=(0,n.useCallback)(()=>{if(!(!O.current||!E.current)&&!P.current){A.current(E.current);let n=o||r,l=Q(E.current,i||e||``,t||a||``,n||``);D.current=E.current?.editor.create(O.current,{model:l,automaticLayout:!0,...u},d),f&&D.current.restoreViewState($.get(n)),E.current.editor.setTheme(s),c!==void 0&&D.current.revealLine(c),C(!0),P.current=!0}},[e,t,r,i,a,o,u,d,f,s,c]);(0,n.useEffect)(()=>{S&&k.current(D.current,E.current)},[S]),(0,n.useEffect)(()=>{!w&&!S&&I()},[w,S,I]),M.current=i,(0,n.useEffect)(()=>{S&&b&&(j.current?.dispose(),j.current=D.current?.onDidChangeModelContent(e=>{F.current||b(D.current.getValue(),e)}))},[S,b]),(0,n.useEffect)(()=>{if(S){let e=E.current.editor.onDidChangeMarkers(e=>{let t=D.current.getModel()?.uri;if(t&&e.find(e=>e.path===t.path)){let e=E.current.editor.getModelMarkers({resource:t});x?.(e)}});return()=>{e?.dispose()}}return()=>{}},[S,x]);function L(){j.current?.dispose(),p?f&&$.set(o,D.current.saveViewState()):D.current.getModel()?.dispose(),D.current.dispose()}return n.default.createElement(et,{width:m,height:h,isEditorReady:S,loading:l,_ref:O,className:g,wrapperProps:_})}var ft=(0,n.memo)(dt),pt=ft;Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return pt}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./chunk-BjqF3vbe.cjs`);var t={brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}]},n={defaultToken:``,tokenPostfix:`.dockerfile`,variable:/\${?[\w]+}?/,tokenizer:{root:[{include:`@whitespace`},{include:`@comment`},[/(ONBUILD)(\s+)/,[`keyword`,``]],[/(ENV)(\s+)([\w]+)/,[`keyword`,``,{token:`variable`,next:`@arguments`}]],[/(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|ARG|VOLUME|LABEL|USER|WORKDIR|COPY|CMD|STOPSIGNAL|SHELL|HEALTHCHECK|ENTRYPOINT)/,{token:`keyword`,next:`@arguments`}]],arguments:[{include:`@whitespace`},{include:`@strings`},[/(@variable)/,{cases:{"@eos":{token:`variable`,next:`@popall`},"@default":`variable`}}],[/\\/,{cases:{"@eos":``,"@default":``}}],[/./,{cases:{"@eos":{token:``,next:`@popall`},"@default":``}}]],whitespace:[[/\s+/,{cases:{"@eos":{token:``,next:`@popall`},"@default":``}}]],comment:[[/(^#.*$)/,`comment`,`@popall`]],strings:[[/\\'$/,``,`@popall`],[/\\'/,``],[/'$/,`string`,`@popall`],[/'/,`string`,`@stringBody`],[/"$/,`string`,`@popall`],[/"/,`string`,`@dblStringBody`]],stringBody:[[/[^\\\$']/,{cases:{"@eos":{token:`string`,next:`@popall`},"@default":`string`}}],[/\\./,`string.escape`],[/'$/,`string`,`@popall`],[/'/,`string`,`@pop`],[/(@variable)/,`variable`],[/\\$/,`string`],[/$/,`string`,`@popall`]],dblStringBody:[[/[^\\\$"]/,{cases:{"@eos":{token:`string`,next:`@popall`},"@default":`string`}}],[/\\./,`string.escape`],[/"$/,`string`,`@popall`],[/"/,`string`,`@pop`],[/(@variable)/,`variable`],[/\\$/,`string`],[/$/,`string`,`@popall`]]}};exports.conf=t,exports.language=n;
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
var conf = {
|
|
2
|
+
brackets: [
|
|
3
|
+
["{", "}"],
|
|
4
|
+
["[", "]"],
|
|
5
|
+
["(", ")"]
|
|
6
|
+
],
|
|
7
|
+
autoClosingPairs: [
|
|
8
|
+
{
|
|
9
|
+
open: "{",
|
|
10
|
+
close: "}"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
open: "[",
|
|
14
|
+
close: "]"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
open: "(",
|
|
18
|
+
close: ")"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
open: "\"",
|
|
22
|
+
close: "\""
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
open: "'",
|
|
26
|
+
close: "'"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
surroundingPairs: [
|
|
30
|
+
{
|
|
31
|
+
open: "{",
|
|
32
|
+
close: "}"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
open: "[",
|
|
36
|
+
close: "]"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
open: "(",
|
|
40
|
+
close: ")"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
open: "\"",
|
|
44
|
+
close: "\""
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
open: "'",
|
|
48
|
+
close: "'"
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
}, language = {
|
|
52
|
+
defaultToken: "",
|
|
53
|
+
tokenPostfix: ".dockerfile",
|
|
54
|
+
variable: /\${?[\w]+}?/,
|
|
55
|
+
tokenizer: {
|
|
56
|
+
root: [
|
|
57
|
+
{ include: "@whitespace" },
|
|
58
|
+
{ include: "@comment" },
|
|
59
|
+
[/(ONBUILD)(\s+)/, ["keyword", ""]],
|
|
60
|
+
[/(ENV)(\s+)([\w]+)/, [
|
|
61
|
+
"keyword",
|
|
62
|
+
"",
|
|
63
|
+
{
|
|
64
|
+
token: "variable",
|
|
65
|
+
next: "@arguments"
|
|
66
|
+
}
|
|
67
|
+
]],
|
|
68
|
+
[/(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|ARG|VOLUME|LABEL|USER|WORKDIR|COPY|CMD|STOPSIGNAL|SHELL|HEALTHCHECK|ENTRYPOINT)/, {
|
|
69
|
+
token: "keyword",
|
|
70
|
+
next: "@arguments"
|
|
71
|
+
}]
|
|
72
|
+
],
|
|
73
|
+
arguments: [
|
|
74
|
+
{ include: "@whitespace" },
|
|
75
|
+
{ include: "@strings" },
|
|
76
|
+
[/(@variable)/, { cases: {
|
|
77
|
+
"@eos": {
|
|
78
|
+
token: "variable",
|
|
79
|
+
next: "@popall"
|
|
80
|
+
},
|
|
81
|
+
"@default": "variable"
|
|
82
|
+
} }],
|
|
83
|
+
[/\\/, { cases: {
|
|
84
|
+
"@eos": "",
|
|
85
|
+
"@default": ""
|
|
86
|
+
} }],
|
|
87
|
+
[/./, { cases: {
|
|
88
|
+
"@eos": {
|
|
89
|
+
token: "",
|
|
90
|
+
next: "@popall"
|
|
91
|
+
},
|
|
92
|
+
"@default": ""
|
|
93
|
+
} }]
|
|
94
|
+
],
|
|
95
|
+
whitespace: [[/\s+/, { cases: {
|
|
96
|
+
"@eos": {
|
|
97
|
+
token: "",
|
|
98
|
+
next: "@popall"
|
|
99
|
+
},
|
|
100
|
+
"@default": ""
|
|
101
|
+
} }]],
|
|
102
|
+
comment: [[
|
|
103
|
+
/(^#.*$)/,
|
|
104
|
+
"comment",
|
|
105
|
+
"@popall"
|
|
106
|
+
]],
|
|
107
|
+
strings: [
|
|
108
|
+
[
|
|
109
|
+
/\\'$/,
|
|
110
|
+
"",
|
|
111
|
+
"@popall"
|
|
112
|
+
],
|
|
113
|
+
[/\\'/, ""],
|
|
114
|
+
[
|
|
115
|
+
/'$/,
|
|
116
|
+
"string",
|
|
117
|
+
"@popall"
|
|
118
|
+
],
|
|
119
|
+
[
|
|
120
|
+
/'/,
|
|
121
|
+
"string",
|
|
122
|
+
"@stringBody"
|
|
123
|
+
],
|
|
124
|
+
[
|
|
125
|
+
/"$/,
|
|
126
|
+
"string",
|
|
127
|
+
"@popall"
|
|
128
|
+
],
|
|
129
|
+
[
|
|
130
|
+
/"/,
|
|
131
|
+
"string",
|
|
132
|
+
"@dblStringBody"
|
|
133
|
+
]
|
|
134
|
+
],
|
|
135
|
+
stringBody: [
|
|
136
|
+
[/[^\\\$']/, { cases: {
|
|
137
|
+
"@eos": {
|
|
138
|
+
token: "string",
|
|
139
|
+
next: "@popall"
|
|
140
|
+
},
|
|
141
|
+
"@default": "string"
|
|
142
|
+
} }],
|
|
143
|
+
[/\\./, "string.escape"],
|
|
144
|
+
[
|
|
145
|
+
/'$/,
|
|
146
|
+
"string",
|
|
147
|
+
"@popall"
|
|
148
|
+
],
|
|
149
|
+
[
|
|
150
|
+
/'/,
|
|
151
|
+
"string",
|
|
152
|
+
"@pop"
|
|
153
|
+
],
|
|
154
|
+
[/(@variable)/, "variable"],
|
|
155
|
+
[/\\$/, "string"],
|
|
156
|
+
[
|
|
157
|
+
/$/,
|
|
158
|
+
"string",
|
|
159
|
+
"@popall"
|
|
160
|
+
]
|
|
161
|
+
],
|
|
162
|
+
dblStringBody: [
|
|
163
|
+
[/[^\\\$"]/, { cases: {
|
|
164
|
+
"@eos": {
|
|
165
|
+
token: "string",
|
|
166
|
+
next: "@popall"
|
|
167
|
+
},
|
|
168
|
+
"@default": "string"
|
|
169
|
+
} }],
|
|
170
|
+
[/\\./, "string.escape"],
|
|
171
|
+
[
|
|
172
|
+
/"$/,
|
|
173
|
+
"string",
|
|
174
|
+
"@popall"
|
|
175
|
+
],
|
|
176
|
+
[
|
|
177
|
+
/"/,
|
|
178
|
+
"string",
|
|
179
|
+
"@pop"
|
|
180
|
+
],
|
|
181
|
+
[/(@variable)/, "variable"],
|
|
182
|
+
[/\\$/, "string"],
|
|
183
|
+
[
|
|
184
|
+
/$/,
|
|
185
|
+
"string",
|
|
186
|
+
"@popall"
|
|
187
|
+
]
|
|
188
|
+
]
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
export { conf, language };
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
var conf = {
|
|
2
|
+
comments: {
|
|
3
|
+
lineComment: "//",
|
|
4
|
+
blockComment: ["/*", "*/"]
|
|
5
|
+
},
|
|
6
|
+
brackets: [
|
|
7
|
+
["{", "}"],
|
|
8
|
+
["[", "]"],
|
|
9
|
+
["(", ")"]
|
|
10
|
+
],
|
|
11
|
+
autoClosingPairs: [
|
|
12
|
+
{
|
|
13
|
+
open: "{",
|
|
14
|
+
close: "}"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
open: "[",
|
|
18
|
+
close: "]"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
open: "(",
|
|
22
|
+
close: ")"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
open: "'",
|
|
26
|
+
close: "'",
|
|
27
|
+
notIn: ["string", "comment"]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
open: "\"",
|
|
31
|
+
close: "\"",
|
|
32
|
+
notIn: ["string", "comment"]
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
surroundingPairs: [
|
|
36
|
+
{
|
|
37
|
+
open: "{",
|
|
38
|
+
close: "}"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
open: "[",
|
|
42
|
+
close: "]"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
open: "(",
|
|
46
|
+
close: ")"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
open: "<",
|
|
50
|
+
close: ">"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
open: "'",
|
|
54
|
+
close: "'"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
open: "\"",
|
|
58
|
+
close: "\""
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
}, language = {
|
|
62
|
+
defaultToken: "",
|
|
63
|
+
tokenPostfix: ".ecl",
|
|
64
|
+
ignoreCase: !0,
|
|
65
|
+
brackets: [
|
|
66
|
+
{
|
|
67
|
+
open: "{",
|
|
68
|
+
close: "}",
|
|
69
|
+
token: "delimiter.curly"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
open: "[",
|
|
73
|
+
close: "]",
|
|
74
|
+
token: "delimiter.square"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
open: "(",
|
|
78
|
+
close: ")",
|
|
79
|
+
token: "delimiter.parenthesis"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
open: "<",
|
|
83
|
+
close: ">",
|
|
84
|
+
token: "delimiter.angle"
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
pounds: [
|
|
88
|
+
"append",
|
|
89
|
+
"break",
|
|
90
|
+
"declare",
|
|
91
|
+
"demangle",
|
|
92
|
+
"end",
|
|
93
|
+
"for",
|
|
94
|
+
"getdatatype",
|
|
95
|
+
"if",
|
|
96
|
+
"inmodule",
|
|
97
|
+
"loop",
|
|
98
|
+
"mangle",
|
|
99
|
+
"onwarning",
|
|
100
|
+
"option",
|
|
101
|
+
"set",
|
|
102
|
+
"stored",
|
|
103
|
+
"uniquename"
|
|
104
|
+
].join("|"),
|
|
105
|
+
keywords: /* @__PURE__ */ "__compressed__.after.all.and.any.as.atmost.before.beginc.best.between.case.cluster.compressed.compression.const.counter.csv.default.descend.embed.encoding.encrypt.end.endc.endembed.endmacro.enum.escape.except.exclusive.expire.export.extend.fail.few.fileposition.first.flat.forward.from.full.function.functionmacro.group.grouped.heading.hole.ifblock.import.in.inner.interface.internal.joined.keep.keyed.last.left.limit.linkcounted.literal.little_endian.load.local.locale.lookup.lzw.macro.many.maxcount.maxlength.min skew.module.mofn.multiple.named.namespace.nocase.noroot.noscan.nosort.not.noxpath.of.onfail.only.opt.or.outer.overwrite.packed.partition.penalty.physicallength.pipe.prefetch.quote.record.repeat.retry.return.right.right1.right2.rows.rowset.scan.scope.self.separator.service.shared.skew.skip.smart.soapaction.sql.stable.store.terminator.thor.threshold.timelimit.timeout.token.transform.trim.type.unicodeorder.unordered.unsorted.unstable.update.use.validate.virtual.whole.width.wild.within.wnotrim.xml.xpath".split("."),
|
|
106
|
+
functions: /* @__PURE__ */ "abs.acos.aggregate.allnodes.apply.ascii.asin.assert.asstring.atan.atan2.ave.build.buildindex.case.catch.choose.choosen.choosesets.clustersize.combine.correlation.cos.cosh.count.covariance.cron.dataset.dedup.define.denormalize.dictionary.distribute.distributed.distribution.ebcdic.enth.error.evaluate.event.eventextra.eventname.exists.exp.fail.failcode.failmessage.fetch.fromunicode.fromxml.getenv.getisvalid.global.graph.group.hash.hash32.hash64.hashcrc.hashmd5.having.httpcall.httpheader.if.iff.index.intformat.isvalid.iterate.join.keydiff.keypatch.keyunicode.length.library.limit.ln.loadxml.local.log.loop.map.matched.matchlength.matchposition.matchtext.matchunicode.max.merge.mergejoin.min.nofold.nolocal.nonempty.normalize.nothor.notify.output.parallel.parse.pipe.power.preload.process.project.pull.random.range.rank.ranked.realformat.recordof.regexfind.regexreplace.regroup.rejected.rollup.round.roundup.row.rowdiff.sample.sequential.set.sin.sinh.sizeof.soapcall.sort.sorted.sqrt.stepped.stored.sum.table.tan.tanh.thisnode.topn.tounicode.toxml.transfer.transform.trim.truncate.typeof.ungroup.unicodeorder.variance.wait.which.workunit.xmldecode.xmlencode.xmltext.xmlunicode".split("."),
|
|
107
|
+
typesint: ["integer", "unsigned"].join("|"),
|
|
108
|
+
typesnum: [
|
|
109
|
+
"data",
|
|
110
|
+
"qstring",
|
|
111
|
+
"string",
|
|
112
|
+
"unicode",
|
|
113
|
+
"utf8",
|
|
114
|
+
"varstring",
|
|
115
|
+
"varunicode"
|
|
116
|
+
],
|
|
117
|
+
typesone: [
|
|
118
|
+
"ascii",
|
|
119
|
+
"big_endian",
|
|
120
|
+
"boolean",
|
|
121
|
+
"data",
|
|
122
|
+
"decimal",
|
|
123
|
+
"ebcdic",
|
|
124
|
+
"grouped",
|
|
125
|
+
"integer",
|
|
126
|
+
"linkcounted",
|
|
127
|
+
"pattern",
|
|
128
|
+
"qstring",
|
|
129
|
+
"real",
|
|
130
|
+
"record",
|
|
131
|
+
"rule",
|
|
132
|
+
"set of",
|
|
133
|
+
"streamed",
|
|
134
|
+
"string",
|
|
135
|
+
"token",
|
|
136
|
+
"udecimal",
|
|
137
|
+
"unicode",
|
|
138
|
+
"unsigned",
|
|
139
|
+
"utf8",
|
|
140
|
+
"varstring",
|
|
141
|
+
"varunicode"
|
|
142
|
+
].join("|"),
|
|
143
|
+
operators: [
|
|
144
|
+
"+",
|
|
145
|
+
"-",
|
|
146
|
+
"/",
|
|
147
|
+
":=",
|
|
148
|
+
"<",
|
|
149
|
+
"<>",
|
|
150
|
+
"=",
|
|
151
|
+
">",
|
|
152
|
+
"\\",
|
|
153
|
+
"and",
|
|
154
|
+
"in",
|
|
155
|
+
"not",
|
|
156
|
+
"or"
|
|
157
|
+
],
|
|
158
|
+
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
|
159
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
160
|
+
tokenizer: {
|
|
161
|
+
root: [
|
|
162
|
+
[/@typesint[4|8]/, "type"],
|
|
163
|
+
[/#(@pounds)/, "type"],
|
|
164
|
+
[/@typesone/, "type"],
|
|
165
|
+
[/[a-zA-Z_$][\w-$]*/, { cases: {
|
|
166
|
+
"@functions": "keyword.function",
|
|
167
|
+
"@keywords": "keyword",
|
|
168
|
+
"@operators": "operator"
|
|
169
|
+
} }],
|
|
170
|
+
{ include: "@whitespace" },
|
|
171
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
172
|
+
[/[<>](?!@symbols)/, "@brackets"],
|
|
173
|
+
[/@symbols/, { cases: {
|
|
174
|
+
"@operators": "delimiter",
|
|
175
|
+
"@default": ""
|
|
176
|
+
} }],
|
|
177
|
+
[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?/, "number.float"],
|
|
178
|
+
[/0[xX][0-9a-fA-F_]+/, "number.hex"],
|
|
179
|
+
[/0[bB][01]+/, "number.hex"],
|
|
180
|
+
[/[0-9_]+/, "number"],
|
|
181
|
+
[/[;,.]/, "delimiter"],
|
|
182
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
183
|
+
[
|
|
184
|
+
/"/,
|
|
185
|
+
"string",
|
|
186
|
+
"@string"
|
|
187
|
+
],
|
|
188
|
+
[/'[^\\']'/, "string"],
|
|
189
|
+
[/(')(@escapes)(')/, [
|
|
190
|
+
"string",
|
|
191
|
+
"string.escape",
|
|
192
|
+
"string"
|
|
193
|
+
]],
|
|
194
|
+
[/'/, "string.invalid"]
|
|
195
|
+
],
|
|
196
|
+
whitespace: [
|
|
197
|
+
[/[ \t\v\f\r\n]+/, ""],
|
|
198
|
+
[
|
|
199
|
+
/\/\*/,
|
|
200
|
+
"comment",
|
|
201
|
+
"@comment"
|
|
202
|
+
],
|
|
203
|
+
[/\/\/.*$/, "comment"]
|
|
204
|
+
],
|
|
205
|
+
comment: [
|
|
206
|
+
[/[^\/*]+/, "comment"],
|
|
207
|
+
[
|
|
208
|
+
/\*\//,
|
|
209
|
+
"comment",
|
|
210
|
+
"@pop"
|
|
211
|
+
],
|
|
212
|
+
[/[\/*]/, "comment"]
|
|
213
|
+
],
|
|
214
|
+
string: [
|
|
215
|
+
[/[^\\']+/, "string"],
|
|
216
|
+
[/@escapes/, "string.escape"],
|
|
217
|
+
[/\\./, "string.escape.invalid"],
|
|
218
|
+
[
|
|
219
|
+
/'/,
|
|
220
|
+
"string",
|
|
221
|
+
"@pop"
|
|
222
|
+
]
|
|
223
|
+
]
|
|
224
|
+
}
|
|
225
|
+
};
|
|
226
|
+
export { conf, language };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./chunk-BjqF3vbe.cjs`);var t={comments:{lineComment:`//`,blockComment:[`/*`,`*/`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`'`,close:`'`,notIn:[`string`,`comment`]},{open:`"`,close:`"`,notIn:[`string`,`comment`]}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`<`,close:`>`},{open:`'`,close:`'`},{open:`"`,close:`"`}]},n={defaultToken:``,tokenPostfix:`.ecl`,ignoreCase:!0,brackets:[{open:`{`,close:`}`,token:`delimiter.curly`},{open:`[`,close:`]`,token:`delimiter.square`},{open:`(`,close:`)`,token:`delimiter.parenthesis`},{open:`<`,close:`>`,token:`delimiter.angle`}],pounds:[`append`,`break`,`declare`,`demangle`,`end`,`for`,`getdatatype`,`if`,`inmodule`,`loop`,`mangle`,`onwarning`,`option`,`set`,`stored`,`uniquename`].join(`|`),keywords:`__compressed__.after.all.and.any.as.atmost.before.beginc.best.between.case.cluster.compressed.compression.const.counter.csv.default.descend.embed.encoding.encrypt.end.endc.endembed.endmacro.enum.escape.except.exclusive.expire.export.extend.fail.few.fileposition.first.flat.forward.from.full.function.functionmacro.group.grouped.heading.hole.ifblock.import.in.inner.interface.internal.joined.keep.keyed.last.left.limit.linkcounted.literal.little_endian.load.local.locale.lookup.lzw.macro.many.maxcount.maxlength.min skew.module.mofn.multiple.named.namespace.nocase.noroot.noscan.nosort.not.noxpath.of.onfail.only.opt.or.outer.overwrite.packed.partition.penalty.physicallength.pipe.prefetch.quote.record.repeat.retry.return.right.right1.right2.rows.rowset.scan.scope.self.separator.service.shared.skew.skip.smart.soapaction.sql.stable.store.terminator.thor.threshold.timelimit.timeout.token.transform.trim.type.unicodeorder.unordered.unsorted.unstable.update.use.validate.virtual.whole.width.wild.within.wnotrim.xml.xpath`.split(`.`),functions:`abs.acos.aggregate.allnodes.apply.ascii.asin.assert.asstring.atan.atan2.ave.build.buildindex.case.catch.choose.choosen.choosesets.clustersize.combine.correlation.cos.cosh.count.covariance.cron.dataset.dedup.define.denormalize.dictionary.distribute.distributed.distribution.ebcdic.enth.error.evaluate.event.eventextra.eventname.exists.exp.fail.failcode.failmessage.fetch.fromunicode.fromxml.getenv.getisvalid.global.graph.group.hash.hash32.hash64.hashcrc.hashmd5.having.httpcall.httpheader.if.iff.index.intformat.isvalid.iterate.join.keydiff.keypatch.keyunicode.length.library.limit.ln.loadxml.local.log.loop.map.matched.matchlength.matchposition.matchtext.matchunicode.max.merge.mergejoin.min.nofold.nolocal.nonempty.normalize.nothor.notify.output.parallel.parse.pipe.power.preload.process.project.pull.random.range.rank.ranked.realformat.recordof.regexfind.regexreplace.regroup.rejected.rollup.round.roundup.row.rowdiff.sample.sequential.set.sin.sinh.sizeof.soapcall.sort.sorted.sqrt.stepped.stored.sum.table.tan.tanh.thisnode.topn.tounicode.toxml.transfer.transform.trim.truncate.typeof.ungroup.unicodeorder.variance.wait.which.workunit.xmldecode.xmlencode.xmltext.xmlunicode`.split(`.`),typesint:[`integer`,`unsigned`].join(`|`),typesnum:[`data`,`qstring`,`string`,`unicode`,`utf8`,`varstring`,`varunicode`],typesone:[`ascii`,`big_endian`,`boolean`,`data`,`decimal`,`ebcdic`,`grouped`,`integer`,`linkcounted`,`pattern`,`qstring`,`real`,`record`,`rule`,`set of`,`streamed`,`string`,`token`,`udecimal`,`unicode`,`unsigned`,`utf8`,`varstring`,`varunicode`].join(`|`),operators:[`+`,`-`,`/`,`:=`,`<`,`<>`,`=`,`>`,`\\`,`and`,`in`,`not`,`or`],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/@typesint[4|8]/,`type`],[/#(@pounds)/,`type`],[/@typesone/,`type`],[/[a-zA-Z_$][\w-$]*/,{cases:{"@functions":`keyword.function`,"@keywords":`keyword`,"@operators":`operator`}}],{include:`@whitespace`},[/[{}()\[\]]/,`@brackets`],[/[<>](?!@symbols)/,`@brackets`],[/@symbols/,{cases:{"@operators":`delimiter`,"@default":``}}],[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?/,`number.float`],[/0[xX][0-9a-fA-F_]+/,`number.hex`],[/0[bB][01]+/,`number.hex`],[/[0-9_]+/,`number`],[/[;,.]/,`delimiter`],[/"([^"\\]|\\.)*$/,`string.invalid`],[/"/,`string`,`@string`],[/'[^\\']'/,`string`],[/(')(@escapes)(')/,[`string`,`string.escape`,`string`]],[/'/,`string.invalid`]],whitespace:[[/[ \t\v\f\r\n]+/,``],[/\/\*/,`comment`,`@comment`],[/\/\/.*$/,`comment`]],comment:[[/[^\/*]+/,`comment`],[/\*\//,`comment`,`@pop`],[/[\/*]/,`comment`]],string:[[/[^\\']+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/'/,`string`,`@pop`]]}};exports.conf=t,exports.language=n;
|