/usr/share/grafana/public/app/plugins/datasource/grafana-postgresql-datasource/dist
(globalThis.webpackChunkgrafana_postgresql_datasource=globalThis.webpackChunkgrafana_postgresql_datasource||[]).push([[493],{45:(e,t,r)=>{"use strict";r.d(t,{X:()=>o});var n=r(6089),s=r(5959),i=(r(7781),r(2007));const o=({children:e})=>{const t=(0,i.useStyles2)(a);return s.createElement("div",{className:t.root},e)},a=e=>({root:(0,n.css)({display:"flex",flexWrap:"wrap",alignItems:"center",gap:e.spacing(3),minHeight:e.spacing(4)})})},110:(e,t,r)=>{"use strict";const n=r(7715);e.exports=(e,t,r)=>n(e,t,"<",r)},122:e=>{"use strict";e.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}},258:(e,t,r)=>{"use strict";r.d(t,{M:()=>o});var n=r(6089),s=r(2007),i=r(5959);const o=({children:e})=>{const t=(0,s.useStyles2)(l),r=i.Children.map(e,(e=>(0,i.isValidElement)(e)&&e.props.invalid?(0,i.cloneElement)(e,{className:(0,n.cx)(e.props.className,t.invalidChild)}):e));return i.createElement("div",{className:t.root},r)},a=["","base","hovered","invalid","focused"],l=()=>({root:(0,n.css)({display:"flex","> *":{"&:not(:first-child)":{marginLeft:-1},"&:first-child":{borderTopRightRadius:0,borderBottomRightRadius:0},"&:last-child":{borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:first-child):not(:last-child)":{borderRadius:0},position:"relative",zIndex:a.indexOf("base"),"&:hover":{zIndex:a.indexOf("hovered")},"&:focus-within":{zIndex:a.indexOf("focused")}}}),invalidChild:(0,n.css)({zIndex:a.indexOf("invalid")})})},284:(e,t,r)=>{"use strict";const n=r(2839);e.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))},362:(e,t,r)=>{"use strict";const n=r(4708),s=r(4256),{safeRe:i,t:o}=r(5750);e.exports=(e,t)=>{if(e instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){const n=t.includePrerelease?i[o.COERCERTLFULL]:i[o.COERCERTL];let s;for(;(s=n.exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&s.index+s[0].length===r.index+r[0].length||(r=s),n.lastIndex=s.index+s[1].length+s[2].length;n.lastIndex=-1}else r=e.match(t.includePrerelease?i[o.COERCEFULL]:i[o.COERCE]);if(null===r)return null;const a=r[2],l=r[3]||"0",u=r[4]||"0",E=t.includePrerelease&&r[5]?`-${r[5]}`:"",c=t.includePrerelease&&r[6]?`+${r[6]}`:"";return s(`${a}.${l}.${u}${E}${c}`,t)}},792:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},n.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;var s=r(5959),i=r(1316);function o(e,t,r){void 0===t&&(t=[]),void 0===r&&(r={loading:!1});var o=(0,s.useRef)(0),a=(0,i.A)(),l=(0,s.useState)(r),u=l[0],E=l[1],c=(0,s.useCallback)((function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var s=++o.current;return u.loading||E((function(e){return n(n({},e),{loading:!0})})),e.apply(void 0,t).then((function(e){return a()&&s===o.current&&E({value:e,loading:!1}),e}),(function(e){return a()&&s===o.current&&E({error:e,loading:!1}),e}))}),t);return[u,c]}},1034:(e,t,r)=>{"use strict";const n=r(4708);e.exports=(e,t)=>new n(e,t).major},1064:e=>{"use strict";const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},1173:(e,t,r)=>{"use strict";const n=r(7565);e.exports=(e,t)=>e.sort(((e,r)=>n(r,e,t)))},1316:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(5959);function s(){var e=(0,n.useRef)(!1),t=(0,n.useCallback)((function(){return e.current}),[]);return(0,n.useEffect)((function(){return e.current=!0,function(){e.current=!1}}),[]),t}},1409:(e,t,r)=>{"use strict";const n=r(3440);e.exports=(e,t,r)=>0===n(e,t,r)},1427:e=>{"use strict";const t=/^[0-9]+$/,r=(e,r)=>{if("number"==typeof e&&"number"==typeof r)return e===r?0:e<r?-1:1;const n=t.test(e),s=t.test(r);return n&&s&&(e=+e,r=+r),e===r?0:n&&!s?-1:s&&!n?1:e<r?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}},1443:(e,t,r)=>{"use strict";r.r(t),r.d(t,{AND:()=>T,AS:()=>p,ASC:()=>E,BY:()=>l,COMPARISON_OPERATORS:()=>A,DESC:()=>u,EQUALS:()=>I,FROM:()=>s,GROUP:()=>o,LIMIT:()=>c,LOGICAL_OPERATORS:()=>h,NOT_EQUALS:()=>g,OR:()=>R,ORDER:()=>a,SCHEMA:()=>m,SELECT:()=>n,STD_OPERATORS:()=>f,WHERE:()=>i,WITH:()=>d,conf:()=>S,language:()=>N});r(2007),r(7781);const n="select",s="from",i="where",o="group",a="order",l="by",u="desc",E="asc",c="limit",d="with",p="as",m="schema",T="AND",R="OR",h=[T,R],I="=",g="!=",A=[I,g],f=[...A],S={comments:{lineComment:"--",blockComment:["/*","*/"]},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:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ABORT","ABSOLUTE","ACTION","ADA","ADD","AFTER","ALL","ALLOCATE","ALTER","ALWAYS","ANALYZE","AND","ANY","ARE","AS","ASC","ASSERTION","AT","ATTACH","AUTHORIZATION","AUTOINCREMENT","AVG","BACKUP","BEFORE","BEGIN","BETWEEN","BIT","BIT_LENGTH","BOTH","BREAK","BROWSE","BULK","BY","CASCADE","CASCADED","CASE","CAST","CATALOG","CHAR","CHARACTER","CHARACTER_LENGTH","CHAR_LENGTH","CHECK","CHECKPOINT","CLOSE","CLUSTERED","COALESCE","COLLATE","COLLATION","COLUMN","COMMIT","COMPUTE","CONFLICT","CONNECT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTAINS","CONTAINSTABLE","CONTINUE","CONVERT","CORRESPONDING","COUNT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATE","DAY","DBCC","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DENY","DESC","DESCRIBE","DESCRIPTOR","DETACH","DIAGNOSTICS","DISCONNECT","DISK","DISTINCT","DISTRIBUTED","DO","DOMAIN","DOUBLE","DROP","DUMP","EACH","ELSE","END","END-EXEC","ERRLVL","ESCAPE","EXCEPT","EXCEPTION","EXCLUDE","EXCLUSIVE","EXEC","EXECUTE","EXISTS","EXIT","EXPLAIN","EXTERNAL","EXTRACT","FAIL","FALSE","FETCH","FILE","FILLFACTOR","FILTER","FIRST","FLOAT","FOLLOWING","FOR","FOREIGN","FORTRAN","FOUND","FREETEXT","FREETEXTTABLE","FROM","FULL","FUNCTION","GENERATED","GET","GLOB","GLOBAL","GO","GOTO","GRANT","GROUP","GROUPS","HAVING","HOLDLOCK","HOUR","IDENTITY","IDENTITYCOL","IDENTITY_INSERT","IF","IGNORE","IMMEDIATE","IN","INCLUDE","INDEX","INDEXED","INDICATOR","INITIALLY","INNER","INPUT","INSENSITIVE","INSERT","INSTEAD","INT","INTEGER","INTERSECT","INTERVAL","INTO","IS","ISNULL","ISOLATION","JOIN","KEY","KILL","LANGUAGE","LAST","LEADING","LEFT","LEVEL","LIKE","LIMIT","LINENO","LOAD","LOCAL","LOWER","MATCH","MATERIALIZED","MAX","MERGE","MIN","MINUTE","MODULE","MONTH","NAMES","NATIONAL","NATURAL","NCHAR","NEXT","NO","NOCHECK","NONCLUSTERED","NONE","NOT","NOTHING","NOTNULL","NULL","NULLIF","NULLS","NUMERIC","OCTET_LENGTH","OF","OFF","OFFSET","OFFSETS","ON","ONLY","OPEN","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","OPTION","OR","ORDER","OTHERS","OUTER","OUTPUT","OVER","OVERLAPS","PAD","PARTIAL","PARTITION","PASCAL","PERCENT","PIVOT","PLAN","POSITION","PRAGMA","PRECEDING","PRECISION","PREPARE","PRESERVE","PRIMARY","PRINT","PRIOR","PRIVILEGES","PROC","PROCEDURE","PUBLIC","QUERY","RAISE","RAISERROR","RANGE","READ","READTEXT","REAL","RECONFIGURE","RECURSIVE","REFERENCES","REGEXP","REINDEX","RELATIVE","RELEASE","RENAME","REPLACE","REPLICATION","RESTORE","RESTRICT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","ROLLBACK","ROW","ROWCOUNT","ROWGUIDCOL","ROWS","RULE","SAVE","SAVEPOINT","SCHEMA","SCROLL","SECOND","SECTION","SECURITYAUDIT","SELECT","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","SESSION","SESSION_USER","SET","SETUSER","SHUTDOWN","SIZE","SMALLINT","SOME","SPACE","SQL","SQLCA","SQLCODE","SQLERROR","SQLSTATE","SQLWARNING","STATISTICS","SUBSTRING","SUM","SYSTEM_USER","TABLE","TABLESAMPLE","TEMP","TEMPORARY","TEXTSIZE","THEN","TIES","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TOP","TRAILING","TRAN","TRANSACTION","TRANSLATE","TRANSLATION","TRIGGER","TRIM","TRUE","TRUNCATE","TRY_CONVERT","TSEQUAL","UNBOUNDED","UNION","UNIQUE","UNKNOWN","UNPIVOT","UPDATE","UPDATETEXT","UPPER","USAGE","USE","USER","USING","VACUUM","VALUE","VALUES","VARCHAR","VARYING","VIEW","VIRTUAL","WAITFOR","WHEN","WHENEVER","WHERE","WHILE","WINDOW","WITH","WITHIN GROUP","WITHOUT","WORK","WRITE","WRITETEXT","YEAR","ZONE"],operators:["EXCEPT","INTERSECT","UNION","APPLY","CROSS","FULL","INNER","JOIN","LEFT","OUTER","RIGHT","CONTAINS","FREETEXT","IS","NULL","PIVOT","UNPIVOT","MATCHED"],logicalOperators:["ALL","AND","ANY","BETWEEN","EXISTS","IN","LIKE","NOT","OR","SOME"],comparisonOperators:["<>",">","<",">=","<=","=","!=","&","~","^","%"],builtinFunctions:["AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","SUM","STDEV","STDEVP","VAR","VARP","CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","COLLATE","COLLATIONPROPERTY","TERTIARY_WEIGHTS","FEDERATION_FILTERING_VALUE","CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE","ASYMKEY_ID","ASYMKEYPROPERTY","CERTPROPERTY","CERT_ID","CRYPT_GEN_RANDOM","DECRYPTBYASYMKEY","DECRYPTBYCERT","DECRYPTBYKEY","DECRYPTBYKEYAUTOASYMKEY","DECRYPTBYKEYAUTOCERT","DECRYPTBYPASSPHRASE","ENCRYPTBYASYMKEY","ENCRYPTBYCERT","ENCRYPTBYKEY","ENCRYPTBYPASSPHRASE","HASHBYTES","IS_OBJECTSIGNED","KEY_GUID","KEY_ID","KEY_NAME","SIGNBYASYMKEY","SIGNBYCERT","SYMKEYPROPERTY","VERIFYSIGNEDBYCERT","VERIFYSIGNEDBYASYMKEY","CURSOR_STATUS","DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY","CURRENT_TIMESTAMP","DATEADD","DATEDIFF","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","CHOOSE","COALESCE","IIF","NULLIF","ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASE_PRINCIPAL_ID","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","OBJECT_DEFINITION","OBJECT_ID","OBJECT_NAME","OBJECT_SCHEMA_NAME","OBJECTPROPERTY","OBJECTPROPERTYEX","ORIGINAL_DB_NAME","PARSENAME","SCHEMA_ID","SCHEMA_NAME","SCOPE_IDENTITY","SERVERPROPERTY","STATS_DATE","TYPE_ID","TYPE_NAME","TYPEPROPERTY","DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","HAS_DBACCESS","HAS_PERMS_BY_NAME","IS_MEMBER","IS_ROLEMEMBER","IS_SRVROLEMEMBER","LOGINPROPERTY","ORIGINAL_LOGIN","PERMISSIONS","PWDENCRYPT","PWDCOMPARE","SESSION_USER","SESSIONPROPERTY","SUSER_ID","SUSER_NAME","SUSER_SID","SUSER_SNAME","SYSTEM_USER","USER","USER_ID","USER_NAME","ASCII","CHAR","CHARINDEX","CONCAT","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STUFF","SUBSTRING","UNICODE","UPPER","BINARY_CHECKSUM","CHECKSUM","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","ERROR_LINE","ERROR_NUMBER","ERROR_MESSAGE","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GETANSINULL","GET_FILESTREAM_TRANSACTION_CONTEXT","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","XACT_STATE","TEXTPTR","TEXTVALID","COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE","CHANGETABLE","CHANGE_TRACKING_CONTEXT","CHANGE_TRACKING_CURRENT_VERSION","CHANGE_TRACKING_IS_COLUMN_IN_MASK","CHANGE_TRACKING_MIN_VALID_VERSION","CONTAINSTABLE","FREETEXTTABLE","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","FILETABLEROOTPATH","GETFILENAMESPACEPATH","GETPATHLOCATOR","PATHNAME","GET_TRANSMISSION_STATUS"],builtinVariables:["@@DATEFIRST","@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION","@@CURSOR_ROWS","@@FETCH_STATUS","@@DATEFIRST","@@PROCID","@@ERROR","@@IDENTITY","@@ROWCOUNT","@@TRANCOUNT","@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACKET_ERRORS","@@PACK_RECEIVED","@@PACK_SENT","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE"],pseudoColumns:["$ACTION","$IDENTITY","$ROWGUID","$PARTITION"],tokenizer:{root:[{include:"@templateVariables"},{include:"@macros"},{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},{include:"@schemaTable"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$|<|>|=|!|%|&|+|\|-|*|/|~|^]+/,{cases:{"@operators":"operator","@comparisonOperators":"operator","@logicalOperators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@keywords":"keyword","@default":"identifier"}}]],templateVariables:[[/\$[a-zA-Z0-9]+/,"variable"]],macros:[[/\$__[a-zA-Z0-9-_]+/,"type"]],schemaTable:[[/(\w+)\./,"identifier"],[/(\w+\.\w+)/,"identifier"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/\[/,{token:"identifier.quote",next:"@bracketedIdentifier"}],[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],bracketedIdentifier:[[/[^\]]+/,"identifier"],[/]]/,"identifier"],[/]/,{token:"identifier.quote",next:"@pop"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i,"keyword"],[/BEGIN\s+TRY\b/i,{token:"keyword.try"}],[/END\s+TRY\b/i,{token:"keyword.try"}],[/BEGIN\s+CATCH\b/i,{token:"keyword.catch"}],[/END\s+CATCH\b/i,{token:"keyword.catch"}],[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]]}}},1882:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||r.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},2008:(e,t,r)=>{"use strict";const n=r(2839),s=r(9264),{ANY:i}=s,o=r(3238),a=r(3440),l=[new s(">=0.0.0-0")],u=[new s(">=0.0.0")],E=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===i){if(1===t.length&&t[0].semver===i)return!0;e=r.includePrerelease?l:u}if(1===t.length&&t[0].semver===i){if(r.includePrerelease)return!0;t=u}const n=new Set;let s,E,p,m,T,R,h;for(const t of e)">"===t.operator||">="===t.operator?s=c(s,t,r):"<"===t.operator||"<="===t.operator?E=d(E,t,r):n.add(t.semver);if(n.size>1)return null;if(s&&E){if(p=a(s.semver,E.semver,r),p>0)return null;if(0===p&&(">="!==s.operator||"<="!==E.operator))return null}for(const e of n){if(s&&!o(e,String(s),r))return null;if(E&&!o(e,String(E),r))return null;for(const n of t)if(!o(e,String(n),r))return!1;return!0}let I=!(!E||r.includePrerelease||!E.semver.prerelease.length)&&E.semver,g=!(!s||r.includePrerelease||!s.semver.prerelease.length)&&s.semver;I&&1===I.prerelease.length&&"<"===E.operator&&0===I.prerelease[0]&&(I=!1);for(const e of t){if(h=h||">"===e.operator||">="===e.operator,R=R||"<"===e.operator||"<="===e.operator,s)if(g&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===g.major&&e.semver.minor===g.minor&&e.semver.patch===g.patch&&(g=!1),">"===e.operator||">="===e.operator){if(m=c(s,e,r),m===e&&m!==s)return!1}else if(">="===s.operator&&!o(s.semver,String(e),r))return!1;if(E)if(I&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===I.major&&e.semver.minor===I.minor&&e.semver.patch===I.patch&&(I=!1),"<"===e.operator||"<="===e.operator){if(T=d(E,e,r),T===e&&T!==E)return!1}else if("<="===E.operator&&!o(E.semver,String(e),r))return!1;if(!e.operator&&(E||s)&&0!==p)return!1}return!(s&&R&&!E&&0!==p)&&(!(E&&h&&!s&&0!==p)&&(!g&&!I))},c=(e,t,r)=>{if(!e)return t;const n=a(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},d=(e,t,r)=>{if(!e)return t;const n=a(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let s=!1;e:for(const n of e.set){for(const e of t.set){const t=E(n,e,r);if(s=s||null!==t,t)continue e}if(s)return!1}return!0}},2074:e=>{"use strict";const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},2083:(e,t,r)=>{"use strict";const n=r(3440);e.exports=(e,t,r)=>n(e,t,r)<0},2215:(e,t,r)=>{"use strict";const n=r(4708),s=r(2839),i=r(9308);e.exports=(e,t)=>{e=new s(e,t);let r=new n("0.0.0");if(e.test(r))return r;if(r=new n("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t<e.set.length;++t){const s=e.set[t];let o=null;s.forEach((e=>{const t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":o&&!i(t,o)||(o=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!o||r&&!i(r,o)||(r=o)}return r&&e.test(r)?r:null}},2366:(e,t,r)=>{"use strict";const n=r(4708),s=r(2839);e.exports=(e,t,r)=>{let i=null,o=null,a=null;try{a=new s(t,r)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(i&&1!==o.compare(e)||(i=e,o=new n(i,r)))})),i}},2479:(e,t,r)=>{"use strict";const n=r(4708);e.exports=(e,t,r,s,i)=>{"string"==typeof r&&(i=s,s=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,s,i).version}catch(e){return null}}},2827:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(6089),s=r(5959),i=(r(7781),r(2007));const o=({className:e,...t})=>{const r=(0,i.useStyles2)(a);return s.createElement(i.Button,{...t,className:(0,n.cx)(e,r.button)})},a=e=>({button:(0,n.css)({paddingLeft:e.spacing(1.5),paddingRight:e.spacing(1.5)})})},2839:(e,t,r)=>{"use strict";const n=/\s+/g;class s{constructor(e,t){if(t=o(t),e instanceof s)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new s(e.raw,t);if(e instanceof a)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(n," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!h(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&I(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&T)|(this.options.loose&&R))+":"+e,r=i.get(t);if(r)return r;const n=this.options.loose,s=n?E[c.HYPHENRANGELOOSE]:E[c.HYPHENRANGE];e=e.replace(s,y(this.options.includePrerelease)),l("hyphen replace",e),e=e.replace(E[c.COMPARATORTRIM],d),l("comparator trim",e),e=e.replace(E[c.TILDETRIM],p),l("tilde trim",e),e=e.replace(E[c.CARETTRIM],m),l("caret trim",e);let o=e.split(" ").map((e=>A(e,this.options))).join(" ").split(/\s+/).map((e=>P(e,this.options)));n&&(o=o.filter((e=>(l("loose invalid filter",e,this.options),!!e.match(E[c.COMPARATORLOOSE]))))),l("range list",o);const u=new Map,I=o.map((e=>new a(e,this.options)));for(const e of I){if(h(e))return[e];u.set(e.value,e)}u.size>1&&u.has("")&&u.delete("");const g=[...u.values()];return i.set(t,g),g}intersects(e,t){if(!(e instanceof s))throw new TypeError("a Range is required");return this.set.some((r=>g(r,t)&&e.set.some((e=>g(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(w(this.set[t],e,this.options))return!0;return!1}}e.exports=s;const i=new(r(122)),o=r(9547),a=r(9264),l=r(1064),u=r(4708),{safeRe:E,t:c,comparatorTrimReplace:d,tildeTrimReplace:p,caretTrimReplace:m}=r(5750),{FLAG_INCLUDE_PRERELEASE:T,FLAG_LOOSE:R}=r(2074),h=e=>"<0.0.0-0"===e.value,I=e=>""===e.value,g=(e,t)=>{let r=!0;const n=e.slice();let s=n.pop();for(;r&&n.length;)r=n.every((e=>s.intersects(e,t))),s=n.pop();return r},A=(e,t)=>(e=e.replace(E[c.BUILD],""),l("comp",e,t),e=O(e,t),l("caret",e),e=S(e,t),l("tildes",e),e=L(e,t),l("xrange",e),e=_(e,t),l("stars",e),e),f=e=>!e||"x"===e.toLowerCase()||"*"===e,S=(e,t)=>e.trim().split(/\s+/).map((e=>N(e,t))).join(" "),N=(e,t)=>{const r=t.loose?E[c.TILDELOOSE]:E[c.TILDE];return e.replace(r,((t,r,n,s,i)=>{let o;return l("tilde",e,t,r,n,s,i),f(r)?o="":f(n)?o=`>=${r}.0.0 <${+r+1}.0.0-0`:f(s)?o=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:i?(l("replaceTilde pr",i),o=`>=${r}.${n}.${s}-${i} <${r}.${+n+1}.0-0`):o=`>=${r}.${n}.${s} <${r}.${+n+1}.0-0`,l("tilde return",o),o}))},O=(e,t)=>e.trim().split(/\s+/).map((e=>v(e,t))).join(" "),v=(e,t)=>{l("caret",e,t);const r=t.loose?E[c.CARETLOOSE]:E[c.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,s,i,o)=>{let a;return l("caret",e,t,r,s,i,o),f(r)?a="":f(s)?a=`>=${r}.0.0${n} <${+r+1}.0.0-0`:f(i)?a="0"===r?`>=${r}.${s}.0${n} <${r}.${+s+1}.0-0`:`>=${r}.${s}.0${n} <${+r+1}.0.0-0`:o?(l("replaceCaret pr",o),a="0"===r?"0"===s?`>=${r}.${s}.${i}-${o} <${r}.${s}.${+i+1}-0`:`>=${r}.${s}.${i}-${o} <${r}.${+s+1}.0-0`:`>=${r}.${s}.${i}-${o} <${+r+1}.0.0-0`):(l("no pr"),a="0"===r?"0"===s?`>=${r}.${s}.${i}${n} <${r}.${s}.${+i+1}-0`:`>=${r}.${s}.${i}${n} <${r}.${+s+1}.0-0`:`>=${r}.${s}.${i} <${+r+1}.0.0-0`),l("caret return",a),a}))},L=(e,t)=>(l("replaceXRanges",e,t),e.split(/\s+/).map((e=>C(e,t))).join(" ")),C=(e,t)=>{e=e.trim();const r=t.loose?E[c.XRANGELOOSE]:E[c.XRANGE];return e.replace(r,((r,n,s,i,o,a)=>{l("xRange",e,r,n,s,i,o,a);const u=f(s),E=u||f(i),c=E||f(o),d=c;return"="===n&&d&&(n=""),a=t.includePrerelease?"-0":"",u?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&d?(E&&(i=0),o=0,">"===n?(n=">=",E?(s=+s+1,i=0,o=0):(i=+i+1,o=0)):"<="===n&&(n="<",E?s=+s+1:i=+i+1),"<"===n&&(a="-0"),r=`${n+s}.${i}.${o}${a}`):E?r=`>=${s}.0.0${a} <${+s+1}.0.0-0`:c&&(r=`>=${s}.${i}.0${a} <${s}.${+i+1}.0-0`),l("xRange return",r),r}))},_=(e,t)=>(l("replaceStars",e,t),e.trim().replace(E[c.STAR],"")),P=(e,t)=>(l("replaceGTE0",e,t),e.trim().replace(E[t.includePrerelease?c.GTE0PRE:c.GTE0],"")),y=e=>(t,r,n,s,i,o,a,l,u,E,c,d)=>`${r=f(n)?"":f(s)?`>=${n}.0.0${e?"-0":""}`:f(i)?`>=${n}.${s}.0${e?"-0":""}`:o?`>=${r}`:`>=${r}${e?"-0":""}`} ${l=f(u)?"":f(E)?`<${+u+1}.0.0-0`:f(c)?`<${u}.${+E+1}.0-0`:d?`<=${u}.${E}.${c}-${d}`:e?`<${u}.${E}.${+c+1}-0`:`<=${l}`}`.trim(),w=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(l(e[r].semver),e[r].semver!==a.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}},2961:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(5959);const s=({grow:e,shrink:t})=>n.createElement("div",{style:{display:"block",flexGrow:e,flexShrink:t}})},3090:(e,t,r)=>{"use strict";const n=r(5750),s=r(2074),i=r(4708),o=r(1427),a=r(4256),l=r(9881),u=r(8854),E=r(2479),c=r(4952),d=r(1034),p=r(9406),m=r(5229),T=r(6513),R=r(3440),h=r(7618),I=r(5699),g=r(7565),A=r(3559),f=r(1173),S=r(9308),N=r(2083),O=r(1409),v=r(6031),L=r(3833),C=r(4624),_=r(4991),P=r(362),y=r(9264),w=r(2839),D=r(3238),M=r(3327),$=r(6988),b=r(2366),U=r(2215),F=r(4892),x=r(7715),k=r(7379),B=r(110),G=r(284),X=r(8285),Y=r(2008);e.exports={parse:a,valid:l,clean:u,inc:E,diff:c,major:d,minor:p,patch:m,prerelease:T,compare:R,rcompare:h,compareLoose:I,compareBuild:g,sort:A,rsort:f,gt:S,lt:N,eq:O,neq:v,gte:L,lte:C,cmp:_,coerce:P,Comparator:y,Range:w,satisfies:D,toComparators:M,maxSatisfying:$,minSatisfying:b,minVersion:U,validRange:F,outside:x,gtr:k,ltr:B,intersects:G,simplifyRange:X,subset:Y,SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:s.SEMVER_SPEC_VERSION,RELEASE_TYPES:s.RELEASE_TYPES,compareIdentifiers:o.compareIdentifiers,rcompareIdentifiers:o.rcompareIdentifiers}},3238:(e,t,r)=>{"use strict";const n=r(2839);e.exports=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)}},3327:(e,t,r)=>{"use strict";const n=r(2839);e.exports=(e,t)=>new n(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},3440:(e,t,r)=>{"use strict";const n=r(4708);e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},3559:(e,t,r)=>{"use strict";const n=r(7565);e.exports=(e,t)=>e.sort(((e,r)=>n(e,r,t)))},3769:(e,t,r)=>{"use strict";r.d(t,{D:()=>i});var n=r(5959),s=r(5910);const i=({children:e})=>n.createElement(s.C,{gap:.5,direction:"column"},e)},3833:(e,t,r)=>{"use strict";const n=r(3440);e.exports=(e,t,r)=>n(e,t,r)>=0},4221:(e,t,r)=>{"use strict";var n=r(1882),s={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var r,i,o,a,l,u,E=!1;t||(t={}),r=t.debug||!1;try{if(o=n(),a=document.createRange(),l=document.getSelection(),(u=document.createElement("span")).textContent=e,u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=s[t.format]||s.default;window.clipboardData.setData(i,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))})),document.body.appendChild(u),a.selectNodeContents(u),l.addRange(a),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");E=!0}catch(n){r&&console.error("unable to copy using execCommand: ",n),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),E=!0}catch(n){r&&console.error("unable to copy using clipboardData: ",n),r&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(a):l.removeAllRanges()),u&&document.body.removeChild(u),o()}return E}},4256:(e,t,r)=>{"use strict";const n=r(4708);e.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}},4326:(e,t,r)=>{"use strict";r.d(t,{c:()=>o});var n=r(6089),s=r(5959),i=(r(7781),r(2007));const o=e=>{var t;const{label:r,optional:n,tooltip:o,tooltipInteractive:l,children:u,width:E,...c}=e,d=(0,i.useStyles2)(a,E),p=(null==c?void 0:c.htmlFor)||(null==(t=i.ReactUtils)?void 0:t.getChildId(u)),m=s.createElement(s.Fragment,null,s.createElement("label",{className:d.label,htmlFor:p},r,n&&s.createElement("span",{className:d.optional}," - optional"),o&&s.createElement(i.Tooltip,{placement:"top",content:o,theme:"info",interactive:l},s.createElement(i.Icon,{tabIndex:0,name:"info-circle",size:"sm",className:d.icon}))),s.createElement(i.Space,{v:.5}));return s.createElement("div",{className:d.root},s.createElement(i.Field,{className:d.field,label:m,...c},u))},a=(e,t)=>({root:(0,n.css)({minWidth:e.spacing(null!=t?t:0)}),label:(0,n.css)({fontSize:12,fontWeight:e.typography.fontWeightMedium}),optional:(0,n.css)({fontStyle:"italic",color:e.colors.text.secondary}),field:(0,n.css)({marginBottom:0}),icon:(0,n.css)({color:e.colors.text.secondary,marginLeft:e.spacing(1),":hover":{color:e.colors.text.primary}})})},4364:(e,t,r)=>{"use strict";r.d(t,{W:()=>o});var n=r(6089),s=r(5959),i=(r(7781),r(2007));function o({label:e,...t}){const[r]=(0,s.useState)((()=>Math.random().toString(16).slice(2))),n=(0,i.useStyles2)(u),o={SelectContainer:a,ValueContainer:l,SingleValue:l};return s.createElement("div",{className:n.root},e&&s.createElement("label",{className:n.label,htmlFor:r},e,":"," "),s.createElement(i.Select,{openMenuOnFocus:!0,inputId:r,...t,components:o}))}const a=e=>{const{children:t}=e,r=(0,i.useStyles2)(u);return s.createElement(i.SelectContainer,{...e,className:(0,n.cx)(e.className,r.container)},t)},l=e=>{const{className:t,children:r}=e,o=(0,i.useStyles2)(u);return s.createElement("div",{className:(0,n.cx)(t,o.valueContainer)},r)},u=e=>({root:(0,n.css)({display:"flex",fontSize:12,alignItems:"center"}),label:(0,n.css)({color:e.colors.text.secondary,whiteSpace:"nowrap"}),container:(0,n.css)({background:"none",borderColor:"transparent"}),valueContainer:(0,n.css)({display:"flex",alignItems:"center",flex:"initial",color:e.colors.text.secondary,fontSize:12})})},4519:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(4221),s=r.n(n),i=r(5959),o=r(1316);const a=function(e){void 0===e&&(e={});var t=(0,i.useState)(e),r=t[0],n=t[1];return[r,(0,i.useCallback)((function(e){n((function(t){return Object.assign({},t,e instanceof Function?e(t):e)}))}),[])]};const l=function(){var e=(0,o.A)(),t=a({value:void 0,error:void 0,noUserInteraction:!0}),r=t[0],n=t[1];return[r,(0,i.useCallback)((function(t){var r,i;if(e())try{if("string"!=typeof t&&"number"!=typeof t){var o=new Error("Cannot copy typeof "+typeof t+" to clipboard, must be a string");return void n({value:t,error:o,noUserInteraction:!0})}if(""===t){o=new Error("Cannot copy empty string to clipboard.");return void n({value:t,error:o,noUserInteraction:!0})}i=t.toString(),r=s()(i),n({value:i,error:void 0,noUserInteraction:r})}catch(o){n({value:i,error:o,noUserInteraction:r})}}),[])]}},4624:(e,t,r)=>{"use strict";const n=r(3440);e.exports=(e,t,r)=>n(e,t,r)<=0},4708:(e,t,r)=>{"use strict";const n=r(1064),{MAX_LENGTH:s,MAX_SAFE_INTEGER:i}=r(2074),{safeRe:o,t:a}=r(5750),l=r(9547),{compareIdentifiers:u}=r(1427);class E{constructor(e,t){if(t=l(t),e instanceof E){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>s)throw new TypeError(`version is longer than ${s} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?o[a.LOOSE]:o[a.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<i)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(n("SemVer.compare",this.version,this.options,e),!(e instanceof E)){if("string"==typeof e&&e===this.version)return 0;e=new E(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof E||(e=new E(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof E||(e=new E(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],s=e.prerelease[t];if(n("prerelease compare",t,r,s),void 0===r&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===r)return-1;if(r!==s)return u(r,s)}while(++t)}compareBuild(e){e instanceof E||(e=new E(e,this.options));let t=0;do{const r=this.build[t],s=e.build[t];if(n("build compare",t,r,s),void 0===r&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===r)return-1;if(r!==s)return u(r,s)}while(++t)}inc(e,t,r){if(e.startsWith("pre")){if(!t&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(t){const e=`-${t}`.match(this.options.loose?o[a.PRERELEASELOOSE]:o[a.PRERELEASE]);if(!e||e[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(r)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=E},4889:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>d});var n=r(5959);let s;s="undefined"!=typeof window?window:"undefined"!=typeof self?self:r.g;let i=null,o=null;const a=s.clearTimeout,l=s.setTimeout,u=s.cancelAnimationFrame||s.mozCancelAnimationFrame||s.webkitCancelAnimationFrame,E=s.requestAnimationFrame||s.mozRequestAnimationFrame||s.webkitRequestAnimationFrame;function c(e){let t,r,n,a,l,u,E;const c="undefined"!=typeof document&&document.attachEvent;if(!c){u=function(e){const t=e.__resizeTriggers__,r=t.firstElementChild,n=t.lastElementChild,s=r.firstElementChild;n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight,s.style.width=r.offsetWidth+1+"px",s.style.height=r.offsetHeight+1+"px",r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight},l=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},E=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;u(this),this.__resizeRAF__&&i(this.__resizeRAF__),this.__resizeRAF__=o((function(){l(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(r){r.call(t,e)})))}))};let e=!1,s="";n="animationstart";const c="Webkit Moz O ms".split(" ");let d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let r=0;r<c.length;r++)if(void 0!==t.style[c[r]+"AnimationName"]){p=c[r],s="-"+p.toLowerCase()+"-",n=d[r],e=!0;break}}r="resizeanim",t="@"+s+"keyframes "+r+" { from { opacity: 0; } to { opacity: 0; } } ",a=s+"animation: 1ms "+r+"; "}return{addResizeListener:function(i,o){if(c)i.attachEvent("onresize",o);else{if(!i.__resizeTriggers__){const o=i.ownerDocument,l=s.getComputedStyle(i);l&&"static"===l.position&&(i.style.position="relative"),function(r){if(!r.getElementById("detectElementResize")){const n=(t||"")+".resize-triggers { "+(a||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',s=r.head||r.getElementsByTagName("head")[0],i=r.createElement("style");i.id="detectElementResize",i.type="text/css",null!=e&&i.setAttribute("nonce",e),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(r.createTextNode(n)),s.appendChild(i)}}(o),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=o.createElement("div")).className="resize-triggers";const c=o.createElement("div");c.className="expand-trigger",c.appendChild(o.createElement("div"));const d=o.createElement("div");d.className="contract-trigger",i.__resizeTriggers__.appendChild(c),i.__resizeTriggers__.appendChild(d),i.appendChild(i.__resizeTriggers__),u(i),i.addEventListener("scroll",E,!0),n&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===r&&u(i)},i.__resizeTriggers__.addEventListener(n,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(o)}},removeResizeListener:function(e,t){if(c)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",E,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(n,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}null==u||null==E?(i=a,o=function(e){return l(e,20)}):(i=function([e,t]){u(e),a(t)},o=function(e){const t=E((function(){a(r),e()})),r=l((function(){u(t),e()}),20);return[t,r]});class d extends n.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._didLogDeprecationWarning=!1,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:r}=this.props;if(this._parentNode){const n=window.getComputedStyle(this._parentNode)||{},s=parseFloat(n.paddingLeft||"0"),i=parseFloat(n.paddingRight||"0"),o=parseFloat(n.paddingTop||"0"),a=parseFloat(n.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),u=l.height-o-a,E=l.width-s-i;if(!e&&this.state.height!==u||!t&&this.state.width!==E){this.setState({height:u,width:E});const e=()=>{this._didLogDeprecationWarning||(this._didLogDeprecationWarning=!0,console.warn("scaledWidth and scaledHeight parameters have been deprecated; use width and height instead"))};"function"==typeof r&&r({height:u,width:E,get scaledHeight(){return e(),u},get scaledWidth(){return e(),E}})}}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const r=t.ownerDocument.defaultView.ResizeObserver;null!=r?(this._resizeObserver=new r((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=c(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:r,disableHeight:s=!1,disableWidth:i=!1,doNotBailOutOnEmptyChildren:o=!1,nonce:a,onResize:l,style:u={},tagName:E="div",...c}=this.props,{height:d,width:p}=this.state,m={overflow:"visible"},T={};let R=!1;return s||(0===d&&(R=!0),m.height=0,T.height=d,T.scaledHeight=d),i||(0===p&&(R=!0),m.width=0,T.width=p,T.scaledWidth=p),o&&(R=!1),(0,n.createElement)(E,{ref:this._setRef,style:{...m,...u},...c},!R&&e(T))}}},4892:(e,t,r)=>{"use strict";const n=r(2839);e.exports=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}}},4952:(e,t,r)=>{"use strict";const n=r(4256);e.exports=(e,t)=>{const r=n(e,null,!0),s=n(t,null,!0),i=r.compare(s);if(0===i)return null;const o=i>0,a=o?r:s,l=o?s:r,u=!!a.prerelease.length;if(!!l.prerelease.length&&!u){if(!l.patch&&!l.minor)return"major";if(0===l.compareMain(a))return l.minor&&!l.patch?"minor":"patch"}const E=u?"pre":"";return r.major!==s.major?E+"major":r.minor!==s.minor?E+"minor":r.patch!==s.patch?E+"patch":"prerelease"}},4991:(e,t,r)=>{"use strict";const n=r(1409),s=r(6031),i=r(9308),o=r(3833),a=r(2083),l=r(4624);e.exports=(e,t,r,u)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,u);case"!=":return s(e,r,u);case">":return i(e,r,u);case">=":return o(e,r,u);case"<":return a(e,r,u);case"<=":return l(e,r,u);default:throw new TypeError(`Invalid operator: ${t}`)}}},5229:(e,t,r)=>{"use strict";const n=r(4708);e.exports=(e,t)=>new n(e,t).patch},5489:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(5959),s=r(792);function i(e,t){void 0===t&&(t=[]);var r=(0,s.A)(e,t,{loading:!0}),i=r[0],o=r[1];return(0,n.useEffect)((function(){o()}),[o]),i}},5699:(e,t,r)=>{"use strict";const n=r(3440);e.exports=(e,t)=>n(e,t,!0)},5750:(e,t,r)=>{"use strict";const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:i}=r(2074),o=r(1064),a=(t=e.exports={}).re=[],l=t.safeRe=[],u=t.src=[],E=t.safeSrc=[],c=t.t={};let d=0;const p="[a-zA-Z0-9-]",m=[["\\s",1],["\\d",i],[p,s]],T=(e,t,r)=>{const n=(e=>{for(const[t,r]of m)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e})(t),s=d++;o(e,s,t),c[e]=s,u[s]=t,E[s]=n,a[s]=new RegExp(t,r?"g":void 0),l[s]=new RegExp(n,r?"g":void 0)};T("NUMERICIDENTIFIER","0|[1-9]\\d*"),T("NUMERICIDENTIFIERLOOSE","\\d+"),T("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),T("MAINVERSION",`(${u[c.NUMERICIDENTIFIER]})\\.(${u[c.NUMERICIDENTIFIER]})\\.(${u[c.NUMERICIDENTIFIER]})`),T("MAINVERSIONLOOSE",`(${u[c.NUMERICIDENTIFIERLOOSE]})\\.(${u[c.NUMERICIDENTIFIERLOOSE]})\\.(${u[c.NUMERICIDENTIFIERLOOSE]})`),T("PRERELEASEIDENTIFIER",`(?:${u[c.NONNUMERICIDENTIFIER]}|${u[c.NUMERICIDENTIFIER]})`),T("PRERELEASEIDENTIFIERLOOSE",`(?:${u[c.NONNUMERICIDENTIFIER]}|${u[c.NUMERICIDENTIFIERLOOSE]})`),T("PRERELEASE",`(?:-(${u[c.PRERELEASEIDENTIFIER]}(?:\\.${u[c.PRERELEASEIDENTIFIER]})*))`),T("PRERELEASELOOSE",`(?:-?(${u[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[c.PRERELEASEIDENTIFIERLOOSE]})*))`),T("BUILDIDENTIFIER",`${p}+`),T("BUILD",`(?:\\+(${u[c.BUILDIDENTIFIER]}(?:\\.${u[c.BUILDIDENTIFIER]})*))`),T("FULLPLAIN",`v?${u[c.MAINVERSION]}${u[c.PRERELEASE]}?${u[c.BUILD]}?`),T("FULL",`^${u[c.FULLPLAIN]}$`),T("LOOSEPLAIN",`[v=\\s]*${u[c.MAINVERSIONLOOSE]}${u[c.PRERELEASELOOSE]}?${u[c.BUILD]}?`),T("LOOSE",`^${u[c.LOOSEPLAIN]}$`),T("GTLT","((?:<|>)?=?)"),T("XRANGEIDENTIFIERLOOSE",`${u[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),T("XRANGEIDENTIFIER",`${u[c.NUMERICIDENTIFIER]}|x|X|\\*`),T("XRANGEPLAIN",`[v=\\s]*(${u[c.XRANGEIDENTIFIER]})(?:\\.(${u[c.XRANGEIDENTIFIER]})(?:\\.(${u[c.XRANGEIDENTIFIER]})(?:${u[c.PRERELEASE]})?${u[c.BUILD]}?)?)?`),T("XRANGEPLAINLOOSE",`[v=\\s]*(${u[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[c.XRANGEIDENTIFIERLOOSE]})(?:${u[c.PRERELEASELOOSE]})?${u[c.BUILD]}?)?)?`),T("XRANGE",`^${u[c.GTLT]}\\s*${u[c.XRANGEPLAIN]}$`),T("XRANGELOOSE",`^${u[c.GTLT]}\\s*${u[c.XRANGEPLAINLOOSE]}$`),T("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),T("COERCE",`${u[c.COERCEPLAIN]}(?:$|[^\\d])`),T("COERCEFULL",u[c.COERCEPLAIN]+`(?:${u[c.PRERELEASE]})?`+`(?:${u[c.BUILD]})?(?:$|[^\\d])`),T("COERCERTL",u[c.COERCE],!0),T("COERCERTLFULL",u[c.COERCEFULL],!0),T("LONETILDE","(?:~>?)"),T("TILDETRIM",`(\\s*)${u[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",T("TILDE",`^${u[c.LONETILDE]}${u[c.XRANGEPLAIN]}$`),T("TILDELOOSE",`^${u[c.LONETILDE]}${u[c.XRANGEPLAINLOOSE]}$`),T("LONECARET","(?:\\^)"),T("CARETTRIM",`(\\s*)${u[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",T("CARET",`^${u[c.LONECARET]}${u[c.XRANGEPLAIN]}$`),T("CARETLOOSE",`^${u[c.LONECARET]}${u[c.XRANGEPLAINLOOSE]}$`),T("COMPARATORLOOSE",`^${u[c.GTLT]}\\s*(${u[c.LOOSEPLAIN]})$|^$`),T("COMPARATOR",`^${u[c.GTLT]}\\s*(${u[c.FULLPLAIN]})$|^$`),T("COMPARATORTRIM",`(\\s*)${u[c.GTLT]}\\s*(${u[c.LOOSEPLAIN]}|${u[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",T("HYPHENRANGE",`^\\s*(${u[c.XRANGEPLAIN]})\\s+-\\s+(${u[c.XRANGEPLAIN]})\\s*$`),T("HYPHENRANGELOOSE",`^\\s*(${u[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[c.XRANGEPLAINLOOSE]})\\s*$`),T("STAR","(<|>)?=?\\s*\\*"),T("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),T("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},6031:(e,t,r)=>{"use strict";const n=r(3440);e.exports=(e,t,r)=>0!==n(e,t,r)},6199:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(5959);function s(e,t,r){void 0===t&&(t=0),void 0===r&&(r=[]);var s=function(e,t){void 0===t&&(t=0);var r=(0,n.useRef)(!1),s=(0,n.useRef)(),i=(0,n.useRef)(e),o=(0,n.useCallback)((function(){return r.current}),[]),a=(0,n.useCallback)((function(){r.current=!1,s.current&&clearTimeout(s.current),s.current=setTimeout((function(){r.current=!0,i.current()}),t)}),[t]),l=(0,n.useCallback)((function(){r.current=null,s.current&&clearTimeout(s.current)}),[]);return(0,n.useEffect)((function(){i.current=e}),[e]),(0,n.useEffect)((function(){return a(),l}),[t]),[o,l,a]}(e,t),i=s[0],o=s[1],a=s[2];return(0,n.useEffect)(a,r),[i,o]}},6513:(e,t,r)=>{"use strict";const n=r(4256);e.exports=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}},6988:(e,t,r)=>{"use strict";const n=r(4708),s=r(2839);e.exports=(e,t,r)=>{let i=null,o=null,a=null;try{a=new s(t,r)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(i&&-1!==o.compare(e)||(i=e,o=new n(i,r)))})),i}},7088:(e,t,r)=>{"use strict";r.d(t,{o:()=>o});var n=r(2007),s=r(5959),i=r(5910);const o=s.forwardRef((function({items:e,renderItem:t,onChange:r},o){return s.createElement(i.C,null,e.map(((n,i)=>s.createElement("div",{key:i},t(n,(t=>((t,n)=>{const s=[...e];s[t]=n,r(s)})(i,t)),(()=>(t=>{const n=[...e];n.splice(t,1),r(n)})(i)))))),s.createElement(n.Button,{ref:o,onClick:()=>{const t=[...e,{}];r(t)},variant:"secondary",size:"md",icon:"plus","aria-label":"Add",type:"button"}))}))},7379:(e,t,r)=>{"use strict";const n=r(7715);e.exports=(e,t,r)=>n(e,t,">",r)},7565:(e,t,r)=>{"use strict";const n=r(4708);e.exports=(e,t,r)=>{const s=new n(e,r),i=new n(t,r);return s.compare(i)||s.compareBuild(i)}},7618:(e,t,r)=>{"use strict";const n=r(3440);e.exports=(e,t,r)=>n(t,e,r)},7715:(e,t,r)=>{"use strict";const n=r(4708),s=r(9264),{ANY:i}=s,o=r(2839),a=r(3238),l=r(9308),u=r(2083),E=r(4624),c=r(3833);e.exports=(e,t,r,d)=>{let p,m,T,R,h;switch(e=new n(e,d),t=new o(t,d),r){case">":p=l,m=E,T=u,R=">",h=">=";break;case"<":p=u,m=c,T=l,R="<",h="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,d))return!1;for(let r=0;r<t.set.length;++r){const n=t.set[r];let o=null,a=null;if(n.forEach((e=>{e.semver===i&&(e=new s(">=0.0.0")),o=o||e,a=a||e,p(e.semver,o.semver,d)?o=e:T(e.semver,a.semver,d)&&(a=e)})),o.operator===R||o.operator===h)return!1;if((!a.operator||a.operator===R)&&m(e,a.semver))return!1;if(a.operator===h&&T(e,a.semver))return!1}return!0}},8272:(e,t,r)=>{"use strict";r.d(t,{Y:()=>_});var n=r(2007),s=r(5959),i=r(8056),o=r(7781);const a=(e,t,r={})=>({label:e,insertText:e,kind:i.Io.Field,sortText:i.mY.Medium,range:t,...r}),l=()=>[{id:i.X7.SelectKeyword,name:i.X7.SelectKeyword,kind:[i.ng.SelectKeyword]},{id:i.X7.WithKeyword,name:i.X7.WithKeyword,kind:[i.ng.WithKeyword]},{id:i.X7.AfterSelectKeyword,name:i.X7.AfterSelectKeyword,kind:[i.ng.StarWildCard,i.ng.FunctionsWithArguments,i.ng.Columns,i.ng.SelectMacro]},{id:i.X7.AfterSelectFuncFirstArgument,name:i.X7.AfterSelectFuncFirstArgument,kind:[i.ng.Columns]},{id:i.X7.AfterGroupByFunctionArgument,name:i.X7.AfterGroupByFunctionArgument,kind:[i.ng.Columns]},{id:i.X7.AfterWhereFunctionArgument,name:i.X7.AfterWhereFunctionArgument,kind:[i.ng.Columns]},{id:i.X7.AfterSelectArguments,name:i.X7.AfterSelectArguments,kind:[i.ng.Columns]},{id:i.X7.AfterFromKeyword,name:i.X7.AfterFromKeyword,kind:[i.ng.Schemas,i.ng.Tables,i.ng.TableMacro]},{id:i.X7.AfterSchema,name:i.X7.AfterSchema,kind:[i.ng.Tables,i.ng.TableMacro]},{id:i.X7.SelectAlias,name:i.X7.SelectAlias,kind:[i.ng.Columns,i.ng.FunctionsWithArguments]},{id:i.X7.FromKeyword,name:i.X7.FromKeyword,kind:[i.ng.FromKeyword]},{id:i.X7.AfterFrom,name:i.X7.AfterFrom,kind:[i.ng.WhereKeyword,i.ng.GroupByKeywords,i.ng.OrderByKeywords,i.ng.LimitKeyword]},{id:i.X7.AfterTable,name:i.X7.AfterTable,kind:[i.ng.WhereKeyword,i.ng.GroupByKeywords,i.ng.OrderByKeywords,i.ng.LimitKeyword]},{id:i.X7.WhereKeyword,name:i.X7.WhereKeyword,kind:[i.ng.Columns,i.ng.FilterMacro,i.ng.TemplateVariables]},{id:i.X7.WhereComparisonOperator,name:i.X7.WhereComparisonOperator,kind:[i.ng.ComparisonOperators]},{id:i.X7.WhereValue,name:i.X7.WhereValue,kind:[i.ng.FilterMacro,i.ng.TemplateVariables]},{id:i.X7.AfterWhereValue,name:i.X7.AfterWhereValue,kind:[i.ng.LogicalOperators,i.ng.GroupByKeywords,i.ng.OrderByKeywords,i.ng.LimitKeyword,i.ng.Columns,i.ng.TemplateVariables]},{id:i.X7.AfterGroupByKeywords,name:i.X7.AfterGroupByKeywords,kind:[i.ng.GroupMacro,i.ng.Columns]},{id:i.X7.AfterGroupBy,name:i.X7.AfterGroupBy,kind:[i.ng.OrderByKeywords,i.ng.LimitKeyword]},{id:i.X7.AfterOrderByKeywords,name:i.X7.AfterOrderByKeywords,kind:[i.ng.Columns]},{id:i.X7.AfterOrderByFunction,name:i.X7.AfterOrderByFunction,kind:[i.ng.SortOrderDirectionKeyword,i.ng.LimitKeyword]},{id:i.X7.AfterOrderByDirection,name:i.X7.AfterOrderByDirection,kind:[i.ng.LimitKeyword]},{id:i.X7.AfterIsOperator,name:i.X7.AfterOrderByDirection,kind:[i.ng.NotKeyword,i.ng.NullValue,i.ng.BoolValues]},{id:i.X7.AfterIsNotOperator,name:i.X7.AfterOrderByDirection,kind:[i.ng.NullValue,i.ng.BoolValues]}];class u{constructor(e,t,r,n,s){this.type=e,this.value=t,this.range=r,this.previous=n,this.next=s}isKeyword(){return this.type===i.ks.Keyword}isWhiteSpace(){return this.type===i.ks.Whitespace}isParenthesis(){return this.type===i.ks.Parenthesis}isIdentifier(){return this.type===i.ks.Identifier}isString(){return this.type===i.ks.String}isNumber(){return this.type===i.ks.Number}isDoubleQuotedString(){return this.type===i.ks.Type}isVariable(){return this.type===i.ks.Variable}isFunction(){return this.type===i.ks.Function}isOperator(){return this.type===i.ks.Operator}isTemplateVariable(){return this.type===i.ks.Variable}is(e,t){const r=this.type===e;return void 0!==t?r&&E(e,this,t):r}getPreviousNonWhiteSpaceToken(){let e=this.previous;for(;null!=e;){if(!e.isWhiteSpace())return e;e=e.previous}return null}getPreviousOfType(e,t){let r=this.previous;for(;null!=r;){const n=r.type===e;if(void 0!==t?n&&E(e,r,t):n)return r;r=r.previous}return null}getPreviousUntil(e,t,r){let n=[],s=this.previous;for(;null!=s;){if(t.some((e=>e===(null==s?void 0:s.type)))){s=s.previous;continue}const i=s.type===e;if(void 0!==r?i&&E(e,s,r):i)return n;s.isWhiteSpace()||n.push(s),s=s.previous}return n}getNextUntil(e,t,r){let n=[],s=this.next;for(;null!=s;){if(t.some((e=>e===(null==s?void 0:s.type)))){s=s.next;continue}const i=s.type===e;if(void 0!==r?i&&E(e,s,r):i)return n;s.isWhiteSpace()||n.push(s),s=s.next}return n}getPreviousKeyword(){let e=this.previous;for(;null!=e;){if(e.isKeyword())return e;e=e.previous}return null}getNextNonWhiteSpaceToken(){let e=this.next;for(;null!=e;){if(!e.isWhiteSpace())return e;e=e.next}return null}getNextOfType(e,t){let r=this.next;for(;null!=r;){const n=r.type===e;if(void 0!==t?n&&E(e,r,t):n)return r;r=r.next}return null}}function E(e,t,r){return e===i.ks.Keyword||e===i.ks.Operator?t.value.toLowerCase()===r.toString().toLowerCase():t.value===r}var c=r(1443);const d=e=>{const t=(e=>{var t;return null!=(t=null==e?void 0:e.getPreviousOfType(i.ks.Keyword,c.SELECT))?t:null})(e);return null==t?void 0:t.getNextOfType(i.ks.Keyword,c.FROM)},p=e=>{var t;const r=d(e),n=null==r?void 0:r.getNextNonWhiteSpaceToken();return(null==n?void 0:n.isVariable())||(null==n?void 0:n.isKeyword())&&(null==(t=n.next)?void 0:t.is(i.ks.Parenthesis,"("))?null:n},m=e=>{const t=null==e?void 0:e.value.split(".");return 1===(null==t?void 0:t.length)?{table:t[0]}:2===(null==t?void 0:t.length)?{schema:t[0],table:t[1]}:null},T={id:"editor.action.triggerSuggest",title:""};var R=r(6373),h=r(8531);const I=(e,t,r)=>()=>[{id:i.ng.SelectKeyword,name:i.ng.SelectKeyword,suggestions:(e,t)=>Promise.resolve([{label:"SELECT <column>",insertText:"SELECT $0",insertTextRules:i._E.InsertAsSnippet,kind:i.Io.Snippet,command:T,sortText:i.mY.Medium},{label:"SELECT <column> FROM <table>",insertText:"SELECT $2 FROM $1",insertTextRules:i._E.InsertAsSnippet,kind:i.Io.Snippet,command:T,sortText:i.mY.Medium}])},{id:i.ng.TemplateVariables,name:i.ng.TemplateVariables,suggestions:(e,t)=>{const r=(0,h.getTemplateSrv)();return r?Promise.resolve(r.getVariables().map((e=>{const t=`$${e.name}`,n=r.replace(t);return{label:t,detail:`(Template Variable) ${n}`,kind:i.Io.Snippet,documentation:`(Template Variable) ${n}`,insertText:`\\$${e.name} `,insertTextRules:i._E.InsertAsSnippet,command:T,sortText:i.mY.Low}}))):Promise.resolve([])}},{id:i.ng.SelectMacro,name:i.ng.SelectMacro,suggestions:(e,t)=>Promise.resolve([...r.list().filter((e=>e.type===i.hh.Value||e.type===i.hh.Column)).map(g)])},{id:i.ng.TableMacro,name:i.ng.TableMacro,suggestions:(e,t)=>Promise.resolve([...r.list().filter((e=>e.type===i.hh.Table)).map(g)])},{id:i.ng.GroupMacro,name:i.ng.GroupMacro,suggestions:(e,t)=>Promise.resolve([...r.list().filter((e=>e.type===i.hh.Group)).map(g)])},{id:i.ng.FilterMacro,name:i.ng.FilterMacro,suggestions:(e,t)=>Promise.resolve([...r.list().filter((e=>e.type===i.hh.Filter)).map(g)])},{id:i.ng.WithKeyword,name:i.ng.WithKeyword,suggestions:(e,t)=>Promise.resolve([{label:"WITH <alias> AS ( ... )",insertText:"WITH $1 AS ( $2 )",insertTextRules:i._E.InsertAsSnippet,kind:i.Io.Snippet,command:T,sortText:i.mY.Medium}])},{id:i.ng.StarWildCard,name:i.ng.StarWildCard,suggestions:(e,t)=>Promise.resolve([{label:"*",insertText:"* $0",insertTextRules:i._E.InsertAsSnippet,kind:i.Io.Field,command:T,sortText:i.mY.High}])},{id:i.ng.FunctionsWithArguments,name:i.ng.FunctionsWithArguments,suggestions:(t,r)=>Promise.resolve([...e.list().map((e=>({label:e.name,insertText:`${e.name}($0)`,documentation:e.description,insertTextRules:i._E.InsertAsSnippet,kind:i.Io.Function,command:T,sortText:i.mY.MediumLow})))])},{id:i.ng.FunctionsWithoutArguments,name:i.ng.FunctionsWithoutArguments,suggestions:(t,r)=>Promise.resolve([...e.list().map((e=>({label:e.name,insertText:`${e.name}()`,documentation:e.description,insertTextRules:i._E.InsertAsSnippet,kind:i.Io.Function,command:T,sortText:i.mY.MediumHigh})))])},{id:i.ng.FromKeyword,name:i.ng.FromKeyword,suggestions:(e,t)=>Promise.resolve([{label:"FROM",insertText:"FROM $0",command:T,insertTextRules:i._E.InsertAsSnippet,kind:i.Io.Keyword}])},{id:i.ng.Schemas,name:i.ng.Schemas,suggestions:(e,t)=>Promise.resolve([])},{id:i.ng.Tables,name:i.ng.Tables,suggestions:(e,t)=>Promise.resolve([])},{id:i.ng.Columns,name:i.ng.Columns,suggestions:(e,t)=>Promise.resolve([])},{id:i.ng.LogicalOperators,name:i.ng.LogicalOperators,suggestions:(e,r)=>Promise.resolve(t.list().filter((e=>e.type===i.hu.Logical)).map((e=>({label:e.operator,insertText:`${e.operator} `,documentation:e.description,command:T,sortText:i.mY.MediumHigh,kind:i.Io.Operator}))))},{id:i.ng.WhereKeyword,name:i.ng.WhereKeyword,suggestions:(e,t)=>Promise.resolve([{label:"WHERE",insertText:"WHERE ",command:T,sortText:i.mY.MediumHigh,kind:i.Io.Keyword}])},{id:i.ng.ComparisonOperators,name:i.ng.ComparisonOperators,suggestions:(e,r)=>Promise.resolve([...t.list().filter((e=>e.type===i.hu.Comparison)).map((e=>({label:e.operator,insertText:`${e.operator} `,documentation:e.description,command:T,sortText:i.mY.MediumHigh,kind:i.Io.Operator}))),{label:"IN (...)",insertText:"IN ( $0 )",command:T,sortText:i.mY.Medium,kind:i.Io.Operator,insertTextRules:i._E.InsertAsSnippet},{label:"NOT IN (...)",insertText:"NOT IN ( $0 )",command:T,sortText:i.mY.Medium,kind:i.Io.Operator,insertTextRules:i._E.InsertAsSnippet},{label:"IS",insertText:"IS",command:T,sortText:i.mY.Medium,kind:i.Io.Operator},{label:"IS NOT",insertText:"IS NOT",command:T,sortText:i.mY.Medium,kind:i.Io.Operator}])},{id:i.ng.GroupByKeywords,name:i.ng.GroupByKeywords,suggestions:(e,t)=>Promise.resolve([{label:"GROUP BY",insertText:"GROUP BY ",command:T,sortText:i.mY.MediumHigh,kind:i.Io.Keyword}])},{id:i.ng.OrderByKeywords,name:i.ng.OrderByKeywords,suggestions:(e,t)=>Promise.resolve([{label:"ORDER BY",insertText:"ORDER BY ",command:T,sortText:i.mY.Medium,kind:i.Io.Keyword},{label:"ORDER BY(ascending)",insertText:"ORDER BY $1 ASC ",command:T,sortText:i.mY.MediumLow,kind:i.Io.Snippet,insertTextRules:i._E.InsertAsSnippet},{label:"ORDER BY(descending)",insertText:"ORDER BY $1 DESC",command:T,sortText:i.mY.MediumLow,kind:i.Io.Snippet,insertTextRules:i._E.InsertAsSnippet}])},{id:i.ng.LimitKeyword,name:i.ng.LimitKeyword,suggestions:(e,t)=>Promise.resolve([{label:"LIMIT",insertText:"LIMIT ",command:T,sortText:i.mY.MediumLow,kind:i.Io.Keyword}])},{id:i.ng.SortOrderDirectionKeyword,name:i.ng.SortOrderDirectionKeyword,suggestions:(e,t)=>Promise.resolve([c.ASC,c.DESC].map((e=>({label:e,insertText:`${e} `,command:T,kind:i.Io.Keyword}))))},{id:i.ng.NotKeyword,name:i.ng.NotKeyword,suggestions:()=>Promise.resolve([{label:"NOT",insertText:"NOT",command:T,kind:i.Io.Keyword,sortText:i.mY.High}])},{id:i.ng.BoolValues,name:i.ng.BoolValues,suggestions:()=>Promise.resolve(["TRUE","FALSE"].map((e=>({label:e,insertText:`${e}`,command:T,kind:i.Io.Keyword,sortText:i.mY.Medium}))))},{id:i.ng.NullValue,name:i.ng.NullValue,suggestions:()=>Promise.resolve(["NULL"].map((e=>({label:e,insertText:`${e}`,command:T,kind:i.Io.Keyword,sortText:i.mY.Low}))))}];function g(e){return{label:e.name,insertText:`${"\\"+e.text}${A(e.args)} `,insertTextRules:i._E.InsertAsSnippet,kind:i.Io.Snippet,documentation:e.description,command:T}}function A(e){return e?"(".concat(e.map(((e,t)=>`\${${t}:${e}}`)).join(", ")).concat(")"):"()"}function f(){return[{id:i.X7.SelectKeyword,name:i.X7.SelectKeyword,resolve:(e,t,r,n)=>Boolean(null===e||e.isWhiteSpace()&&null===e.previous||e.is(i.ks.Keyword,c.SELECT)||e.is(i.ks.Keyword,c.SELECT)&&null===e.previous||n||e.isIdentifier()&&(n||null===(null==e?void 0:e.previous))||e.isIdentifier()&&c.SELECT.startsWith(e.value.toLowerCase()))},{id:i.X7.WithKeyword,name:i.X7.WithKeyword,resolve:(e,t,r,n)=>Boolean(null===e||e.isWhiteSpace()&&null===e.previous||e.is(i.ks.Keyword,c.WITH)&&null===e.previous||e.isIdentifier()&&c.WITH.toLowerCase().startsWith(e.value.toLowerCase()))},{id:i.X7.AfterSelectKeyword,name:i.X7.AfterSelectKeyword,resolve:(e,t,r,n)=>Boolean((null==r?void 0:r.value.toLowerCase())===c.SELECT)},{id:i.X7.AfterSelectArguments,name:i.X7.AfterSelectArguments,resolve:(e,t,r,n)=>Boolean((null==t?void 0:t.value.toLowerCase())===c.SELECT&&","===(null==r?void 0:r.value))},{id:i.X7.AfterSelectFuncFirstArgument,name:i.X7.AfterSelectFuncFirstArgument,resolve:(e,t,r,n)=>Boolean(((null==t?void 0:t.value.toLowerCase())===c.SELECT||(null==t?void 0:t.value.toLowerCase())===c.AS)&&((null==r?void 0:r.is(i.ks.Parenthesis,"("))||(null==e?void 0:e.is(i.ks.Parenthesis,"()"))))},{id:i.X7.AfterWhereFunctionArgument,name:i.X7.AfterWhereFunctionArgument,resolve:(e,t,r,n)=>Boolean((null==t?void 0:t.is(i.ks.Keyword,c.WHERE))&&((null==r?void 0:r.is(i.ks.Parenthesis,"("))||(null==e?void 0:e.is(i.ks.Parenthesis,"()"))))},{id:i.X7.AfterGroupBy,name:i.X7.AfterGroupBy,resolve:(e,t,r,n)=>{var s;return Boolean((null==t?void 0:t.is(i.ks.Keyword,c.BY))&&(null==(s=null==t?void 0:t.getPreviousKeyword())?void 0:s.is(i.ks.Keyword,c.GROUP))&&((null==r?void 0:r.isIdentifier())||(null==r?void 0:r.isDoubleQuotedString())||(null==r?void 0:r.is(i.ks.Parenthesis,")"))||(null==r?void 0:r.is(i.ks.Parenthesis,"()"))))}},{id:i.X7.SelectAlias,name:i.X7.SelectAlias,resolve:(e,t,r,n)=>","===(null==r?void 0:r.value)&&(null==t?void 0:t.value.toLowerCase())===c.AS},{id:i.X7.FromKeyword,name:i.X7.FromKeyword,resolve:(e,t,r,n)=>Boolean((null==t?void 0:t.value.toLowerCase())===c.SELECT&&","!==(null==r?void 0:r.value)||((null==e?void 0:e.isKeyword())||(null==e?void 0:e.isIdentifier()))&&c.FROM.toLowerCase().startsWith(e.value.toLowerCase()))},{id:i.X7.AfterFromKeyword,name:i.X7.AfterFromKeyword,resolve:(e,t,r,n)=>Boolean(!(null==e?void 0:e.value.includes("."))&&(null==r?void 0:r.value.toLowerCase())===c.FROM)},{id:i.X7.AfterSchema,name:i.X7.AfterSchema,resolve:(e,t,r,n)=>((null==e?void 0:e.isWhiteSpace())&&(null==e?void 0:e.next)&&(r=(e=null==e?void 0:e.previous).getPreviousNonWhiteSpaceToken()),Boolean((null==e?void 0:e.isIdentifier())&&(null==e?void 0:e.value.endsWith("."))&&(null==r?void 0:r.value.toLowerCase())===c.FROM))},{id:i.X7.AfterFrom,name:i.X7.AfterFrom,resolve:(e,t,r,n)=>Boolean((null==t?void 0:t.value.toLowerCase())===c.FROM&&(null==r?void 0:r.isDoubleQuotedString())||(null==t?void 0:t.value.toLowerCase())===c.FROM&&(null==r?void 0:r.isIdentifier())||(null==t?void 0:t.value.toLowerCase())===c.FROM&&(null==r?void 0:r.isVariable()))},{id:i.X7.AfterTable,name:i.X7.AfterTable,resolve:(e,t,r,n)=>Boolean((null==t?void 0:t.value.toLowerCase())===c.FROM&&((null==r?void 0:r.isVariable())||""!==(null==r?void 0:r.value)&&(null==r?void 0:r.value.toLowerCase())!==c.FROM))},{id:i.X7.WhereKeyword,name:i.X7.WhereKeyword,resolve:(e,t,r,n)=>Boolean((null==t?void 0:t.value.toLowerCase())===c.WHERE&&((null==r?void 0:r.isKeyword())||(null==r?void 0:r.is(i.ks.Parenthesis,"("))||(null==r?void 0:r.is(i.ks.Operator,c.AND))))},{id:i.X7.WhereComparisonOperator,name:i.X7.WhereComparisonOperator,resolve:(e,t,r,n)=>{var s;return Boolean((null==t?void 0:t.value.toLowerCase())===c.WHERE&&!(null==(s=null==r?void 0:r.getPreviousNonWhiteSpaceToken())?void 0:s.isOperator())&&!(null==e?void 0:e.is(i.ks.Delimiter,"."))&&!(null==e?void 0:e.isParenthesis())&&((null==r?void 0:r.isIdentifier())||(null==r?void 0:r.isDoubleQuotedString())))}},{id:i.X7.WhereValue,name:i.X7.WhereValue,resolve:(e,t,r,n)=>Boolean((null==t?void 0:t.value.toLowerCase())===c.WHERE&&(null==r?void 0:r.isOperator()))},{id:i.X7.AfterWhereValue,name:i.X7.AfterWhereValue,resolve:(e,t,r,n)=>{var s,o,a;return Boolean((null==t?void 0:t.value.toLowerCase())===c.WHERE&&((null==r?void 0:r.is(i.ks.Operator,"and"))||(null==r?void 0:r.is(i.ks.Operator,"or"))||(null==r?void 0:r.isString())||(null==r?void 0:r.isNumber())||(null==r?void 0:r.is(i.ks.Parenthesis,")"))||(null==r?void 0:r.is(i.ks.Parenthesis,"()"))||(null==r?void 0:r.isTemplateVariable())||(null==r?void 0:r.is(i.ks.IdentifierQuote))&&(null==(s=r.getPreviousNonWhiteSpaceToken())?void 0:s.is(i.ks.Identifier))&&(null==(a=null==(o=null==r?void 0:r.getPreviousNonWhiteSpaceToken())?void 0:o.getPreviousNonWhiteSpaceToken())?void 0:a.is(i.ks.IdentifierQuote))))}},{id:i.X7.AfterGroupByKeywords,name:i.X7.AfterGroupByKeywords,resolve:(e,t,r,n)=>{var s;return Boolean((null==t?void 0:t.is(i.ks.Keyword,c.BY))&&(null==(s=null==t?void 0:t.getPreviousKeyword())?void 0:s.is(i.ks.Keyword,c.GROUP))&&((null==r?void 0:r.is(i.ks.Keyword,c.BY))||(null==r?void 0:r.is(i.ks.Delimiter,","))))}},{id:i.X7.AfterGroupByFunctionArgument,name:i.X7.AfterGroupByFunctionArgument,resolve:(e,t,r,n)=>{var s;return Boolean((null==t?void 0:t.is(i.ks.Keyword,c.BY))&&(null==(s=null==t?void 0:t.getPreviousKeyword())?void 0:s.is(i.ks.Keyword,c.GROUP))&&((null==r?void 0:r.is(i.ks.Parenthesis,"("))||(null==e?void 0:e.is(i.ks.Parenthesis,"()"))))}},{id:i.X7.AfterOrderByKeywords,name:i.X7.AfterOrderByKeywords,resolve:(e,t,r,n)=>{var s;return Boolean((null==r?void 0:r.is(i.ks.Keyword,c.BY))&&(null==(s=null==r?void 0:r.getPreviousKeyword())?void 0:s.is(i.ks.Keyword,c.ORDER)))}},{id:i.X7.AfterOrderByFunction,name:i.X7.AfterOrderByFunction,resolve:(e,t,r,n)=>{var s,o;return Boolean((null==t?void 0:t.is(i.ks.Keyword,c.BY))&&(null==(s=null==t?void 0:t.getPreviousKeyword())?void 0:s.is(i.ks.Keyword,c.ORDER))&&(null==r?void 0:r.is(i.ks.Parenthesis))&&(null==(o=null==r?void 0:r.getPreviousNonWhiteSpaceToken())?void 0:o.is(i.ks.Function)))}},{id:i.X7.AfterOrderByDirection,name:i.X7.AfterOrderByDirection,resolve:(e,t,r,n)=>Boolean((null==t?void 0:t.is(i.ks.Keyword,c.DESC))||(null==t?void 0:t.is(i.ks.Keyword,c.ASC)))},{id:i.X7.AfterIsOperator,name:i.X7.AfterIsOperator,resolve:(e,t,r,n)=>Boolean(null==r?void 0:r.is(i.ks.Operator,"IS"))},{id:i.X7.AfterIsNotOperator,name:i.X7.AfterIsNotOperator,resolve:(e,t,r,n)=>{var s;return Boolean((null==r?void 0:r.is(i.ks.Operator,"NOT"))&&(null==(s=r.getPreviousNonWhiteSpaceToken())?void 0:s.is(i.ks.Operator,"IS")))}}]}let S={logger:()=>{}},N=()=>{};n.attachDebugger&&n.createLogger&&(S=(0,n.createLogger)("SQLEditor"),N=S.logger,(0,n.attachDebugger)("sqleditor",void 0,S));var O=r(3247);const v={id:"standardSql",extensions:[".sql"],aliases:["sql"],mimetypes:[],loader:()=>Promise.resolve().then(r.bind(r,1443)),completionProvider:O.N};const L=new Map,C=new Map,_=({children:e,onBlur:t,onChange:r,query:i,language:o={id:"sql"},width:a,height:l})=>{const u=(0,s.useRef)(null),E=(0,s.useRef)(),c=function(e){const t=(0,s.useRef)(e);(0,s.useEffect)((()=>{t.current=e}));const r=Boolean(e);return(0,s.useMemo)((()=>r?(...e)=>t.current(...e):void 0),[r])}(r),d=(0,s.useMemo)((()=>{const e=(0,R.A)(),t=`${o.id}-${e}`;return E.current=t,t}),[o.id]);(0,s.useEffect)((()=>()=>{E.current&&C.delete(E.current),N(`Removing instance cache ${E.current}`,!1,C)}),[]);const p=(0,s.useCallback)((()=>{u.current&&u.current.getAction("editor.action.formatDocument").run()}),[]);return s.createElement("div",{style:{width:a}},s.createElement(n.CodeEditor,{height:l||"240px",width:a?a-2+"px":void 0,language:d,value:i,onBlur:e=>{c&&c(e,!1),t&&t(e)},showMiniMap:!1,showLineNumbers:!0,onEditorDidMount:(e,t)=>{u.current=e,e.onDidChangeModelContent((t=>{const r=e.getValue();c&&c(r,!1)})),e.addCommand(t.KeyMod.CtrlCmd|t.KeyCode.Enter,(()=>{const t=e.getValue();c&&c(t,!0)})),e.onKeyUp((t=>{84===t.keyCode&&e.trigger(T.id,T.id,{})})),P(t,o,d)}}),e&&e({formatQuery:p}))},P=async(e,t,r)=>{const n=((e,t)=>{if("sql"!==(null==t?void 0:t.id)&&!t.loader){N(`Loading language '${null==t?void 0:t.id}' from Monaco registry`,!1);const r=e.languages.getLanguages().find((({id:e})=>e===(null==t?void 0:t.id)));if(!r)throw Error(`Unknown Monaco language ${null==t?void 0:t.id}`);return{completionProvider:O.N,...r,...t}}return{...v,...t}})(e,t);if(!n.loader)return;const{language:s,conf:E}=await n.loader(e);if(e.languages.register({id:r}),e.languages.setMonarchTokensProvider(r,{...s}),e.languages.setLanguageConfiguration(r,{...E}),n.formatter&&e.languages.registerDocumentFormattingEditProvider(r,{provideDocumentFormattingEdits:e=>{var r;const n=null==(r=t.formatter)?void 0:r.call(t,e.getValue());return[{range:e.getFullModelRange(),text:n||""}]}}),n.completionProvider){const E=n.completionProvider(e,s);!function(e,t,r){var n;L.has(e)||function(e){L.has(e)||L.set(e,{functions:new o.Registry,operators:new o.Registry,suggestionKinds:new o.Registry(l),positionResolvers:new o.Registry(f),macros:new o.Registry});L.get(e)}(e);const s=L.get(e);C.has(t)||C.set(t,new o.Registry(I(s.functions,s.operators,s.macros)));const a=C.get(t);if(r.supportedFunctions)for(const e of r.supportedFunctions()){s.functions.getIfExists(e.id)||s.functions.register(e)}if(r.supportedOperators)for(const e of r.supportedOperators()){s.operators.getIfExists(e.id)||s.operators.register({...e,name:e.id})}if(r.supportedMacros)for(const e of r.supportedMacros()){s.macros.getIfExists(e.id)||s.macros.register({...e,name:e.id})}if(r.customStatementPlacement)for(const e of r.customStatementPlacement()){const t=s.positionResolvers.getIfExists(e.id);if(t){const r=t.resolve;t.resolve=(...t)=>{const n=e.resolve(...t);if(e.overrideDefault)return n;return r(...t)||n}}else s.positionResolvers.register({...e,id:e.id,name:e.id}),s.suggestionKinds.register({id:e.id,name:e.id,kind:[]})}if(r.customSuggestionKinds)for(const e of r.customSuggestionKinds()){if(null==(n=e.applyTo)||n.forEach((t=>{const r=s.suggestionKinds.getIfExists(t);r&&-1===r.kind.indexOf(e.id)&&r.kind.push(e.id)})),e.overrideDefault){const t=a.get(e.id);if(void 0!==t){t.suggestions=e.suggestionsResolver;continue}}a.register({id:e.id,name:e.id,suggestions:e.suggestionsResolver})}if(r.schemas){const e=a.get(i.ng.Schemas),t=e.suggestions;e.suggestions=async(e,n)=>{const s=await t(e,n);if(!r.schemas)return[...s];const o=(await r.schemas.resolve()).map((e=>{var t;return{label:e.name,insertText:`${null!=(t=e.completion)?t:e.name}.`,command:T,kind:i.Io.Module,sortText:i.mY.High}}));return[...s,...o]}}if(r.tables){const e=a.get(i.ng.Tables),t=e.suggestions;e.suggestions=async(e,n)=>{var s,o,a,l,u;const E=await t(e,n),c=p(e.currentToken),d=(null!=(o=null==(s=r.tables)?void 0:s.parseName)?o:m)(c);return[...E,...(null!=(u=await(null==(l=null==(a=r.tables)?void 0:a.resolve)?void 0:l.call(a,d)))?u:[]).map((e=>{var t;return{label:e.name,insertText:`${null!=(t=e.completion)?t:e.name}${e.completion===e.name?" $0":""}`,insertTextRules:i._E.InsertAsSnippet,command:T,kind:i.Io.Field,sortText:i.mY.MediumHigh}}))]}}if(r.columns){const e=a.get(i.ng.Columns),t=e.suggestions;e.suggestions=async(e,n)=>{var s,o,a;const l=await t(e,n),u=p(e.currentToken);let E;const c=null!=(o=null==(s=r.tables)?void 0:s.parseName)?o:m;u&&u.value&&(E=c(u));let d=[];if(E){const e=await(null==(a=r.columns)?void 0:a.resolve(E));d=e?e.map((e=>{var t;return{label:e.name,insertText:null!=(t=e.completion)?t:e.name,kind:i.Io.Field,sortText:i.mY.High,detail:e.type,documentation:e.description}})):[]}return[...l,...d]}}}(t.id,r,E);const c=L.get(t.id),d=C.get(r),R=async(t,n,s,o)=>{const l=function(e,t,r,n="sql"){var s;let o=null,a=null;const l=e.editor.tokenize(null!=(s=t.getValue())?s:"",n);for(let s=0;s<l.length;s++){const E=l[s];if(!E.length&&a){const e={offset:0,type:i.ks.Whitespace,language:n,_tokenBrand:void 0};E.push(e)}for(let n=0;n<E.length;n++){const i=E[n];let l=E.length>n+1?E[n+1].offset+1:t.getLineLength(s+1)+1;const c={startLineNumber:s+1,startColumn:0===i.offset?0:i.offset+1,endLineNumber:s+1,endColumn:l},d=t.getValueInRange(c),p=new u(i.type,d,c,a,null);e.Range.containsPosition(c,r)&&(o=p),a&&(a.next=p),a=p}}return o}(e,t,n,r),E=function(e,t){var r;const n=null==e?void 0:e.getPreviousNonWhiteSpaceToken(),s=null==e?void 0:e.getPreviousKeyword(),o=null==(r=null==e?void 0:e.getPreviousNonWhiteSpaceToken())?void 0:r.is(i.ks.Operator,"/"),a=t.list(),l=[];for(const t of a)t.resolve(e,null!=s?s:null,null!=n?n:null,Boolean(o))&&l.push(t.id);return 0===l.length?[i.X7.Unknown]:l}(l,c.positionResolvers),p=function(e,t){let r=[];for(let n=0;n<e.length;n++){const s=t.getIfExists(e[n]);s&&(r=r.concat(s.kind))}return r}(E,c.suggestionKinds);N("Statement position",!1,E),N("Suggestion kinds",!1,p);const m={position:n,currentToken:l,statementPosition:E,kind:p,range:e.Range.fromPositions(n)},T=await(async(e,t,r,n,s)=>{let i=[];const o=(null==t?void 0:t.isWhiteSpace())||(null==t?void 0:t.isParenthesis())||(null==t?void 0:t.isIdentifier())&&t.value.endsWith(".")||!(null==t?void 0:t.range)?e.Range.fromPositions(n.position):null==t?void 0:t.range;for(const t of[...new Set(r)]){const r=s.getIfExists(t);if(r){const t=await r.suggestions({...n,range:o},e);i=[...i,...t.map((e=>a(e.label,o,{kind:e.kind,...e})))]}}return Promise.resolve(i)})(e,l,p,m,d);return{suggestions:T}};e.languages.registerCompletionItemProvider(r,{...E,provideCompletionItems:R})}}},8285:(e,t,r)=>{"use strict";const n=r(3238),s=r(3440);e.exports=(e,t,r)=>{const i=[];let o=null,a=null;const l=e.sort(((e,t)=>s(e,t,r)));for(const e of l){n(e,t,r)?(a=e,o||(o=e)):(a&&i.push([o,a]),a=null,o=null)}o&&i.push([o,null]);const u=[];for(const[e,t]of i)e===t?u.push(e):t||e!==l[0]?t?e===l[0]?u.push(`<=${t}`):u.push(`${e} - ${t}`):u.push(`>=${e}`):u.push("*");const E=u.join(" || "),c="string"==typeof t.raw?t.raw:String(t);return E.length<c.length?E:t}},8442:(e,t,r)=>{"use strict";r.d(t,{U:()=>a});var n=r(6089),s=r(5959),i=(r(7781),r(2007)),o=r(5910);const a=({children:e})=>{const t=(0,i.useStyles2)(l);return s.createElement("div",{className:t.root},s.createElement(o.C,{gap:2},e))},l=e=>({root:(0,n.css)({padding:e.spacing(1),backgroundColor:e.colors.background.secondary,borderRadius:e.shape.radius.default})})},8722:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(5959),s=function(){};var i="undefined"!=typeof window;const o=i?n.useLayoutEffect:n.useEffect;var a={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const l=i&&void 0!==window.ResizeObserver?function(){var e=(0,n.useState)(null),t=e[0],r=e[1],s=(0,n.useState)(a),i=s[0],l=s[1],u=(0,n.useMemo)((function(){return new window.ResizeObserver((function(e){if(e[0]){var t=e[0].contentRect,r=t.x,n=t.y,s=t.width,i=t.height,o=t.top,a=t.left,u=t.bottom,E=t.right;l({x:r,y:n,width:s,height:i,top:o,left:a,bottom:u,right:E})}}))}),[]);return o((function(){if(t)return u.observe(t),function(){u.disconnect()}}),[t]),[r,i]}:function(){return[s,a]}},8854:(e,t,r)=>{"use strict";const n=r(4256);e.exports=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},9264:(e,t,r)=>{"use strict";const n=Symbol("SemVer ANY");class s{static get ANY(){return n}constructor(e,t){if(t=i(t),e instanceof s){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),u("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(e){const t=this.options.loose?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new E(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(u("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"==typeof e)try{e=new E(e,this.options)}catch(e){return!1}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof s))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new c(e.value,t).test(this.value):""===e.operator?""===e.value||new c(this.value,t).test(e.semver):(!(t=i(t)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))))))}}e.exports=s;const i=r(9547),{safeRe:o,t:a}=r(5750),l=r(4991),u=r(1064),E=r(4708),c=r(2839)},9308:(e,t,r)=>{"use strict";const n=r(3440);e.exports=(e,t,r)=>n(e,t,r)>0},9406:(e,t,r)=>{"use strict";const n=r(4708);e.exports=(e,t)=>new n(e,t).minor},9547:e=>{"use strict";const t=Object.freeze({loose:!0}),r=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:r},9881:(e,t,r)=>{"use strict";const n=r(4256);e.exports=(e,t)=>{const r=n(e,t);return r?r.version:null}}}]); //# sourceMappingURL=493.js.map
.
Edit
..
Edit
166.js
Edit
172.js
Edit
236.js
Edit
290.js
Edit
30.js
Edit
343.js
Edit
360.js
Edit
360.js.map
Edit
447.js
Edit
450.js
Edit
454.js
Edit
493.js
Edit
493.js.map
Edit
501.js
Edit
540.js
Edit
630.js
Edit
654.js
Edit
685.js
Edit
809.js
Edit
852.js
Edit
855.js
Edit
880.js
Edit
961.js
Edit
CHANGELOG.md
Edit
LICENSE
Edit
README.md
Edit
img
Edit
module.js
Edit
module.js.LICENSE.txt
Edit
module.js.map
Edit
plugin.json
Edit
sql-query-editor.js
Edit
sql-query-editor.js.map
Edit