debugbar 0.2.2 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +35 -0
- data/app/controllers/debugbar/polling_controller.rb +1 -1
- data/app/helpers/debugbar/tag_helpers.rb +29 -7
- data/lib/debugbar/subscribers/active_job.rb +13 -3
- data/lib/debugbar/version.rb +1 -1
- data/public/debugbar.js +14 -14
- metadata +3 -3
data/public/debugbar.js
CHANGED
@@ -1,27 +1,27 @@
|
|
1
|
-
var $A=Object.defineProperty;var KA=(e,E,t)=>E in e?$A(e,E,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[E]=t;var je=(e,E,t)=>(KA(e,typeof E!="symbol"?E+"":E,t),t);var qE=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fT(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function LR(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(E=>{const t=e[E],T=typeof t;(T==="object"||T==="function")&&!Object.isFrozen(t)&&LR(t)}),e}class _s{constructor(E){E.data===void 0&&(E.data={}),this.data=E.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function uR(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function cE(e,...E){const t=Object.create(null);for(const T in e)t[T]=e[T];return E.forEach(function(T){for(const r in T)t[r]=T[r]}),t}const JA="</span>",Cs=e=>!!e.scope,kA=(e,{prefix:E})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const t=e.split(".");return[`${E}${t.shift()}`,...t.map((T,r)=>`${T}${"_".repeat(r+1)}`)].join(" ")}return`${E}${e}`};class jA{constructor(E,t){this.buffer="",this.classPrefix=t.classPrefix,E.walk(this)}addText(E){this.buffer+=uR(E)}openNode(E){if(!Cs(E))return;const t=kA(E.scope,{prefix:this.classPrefix});this.span(t)}closeNode(E){Cs(E)&&(this.buffer+=JA)}value(){return this.buffer}span(E){this.buffer+=`<span class="${E}">`}}const cs=(e={})=>{const E={children:[]};return Object.assign(E,e),E};class Ur{constructor(){this.rootNode=cs(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(E){this.top.children.push(E)}openNode(E){const t=cs({scope:E});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(E){return this.constructor._walk(E,this.rootNode)}static _walk(E,t){return typeof t=="string"?E.addText(t):t.children&&(E.openNode(t),t.children.forEach(T=>this._walk(E,T)),E.closeNode(t)),E}static _collapse(E){typeof E!="string"&&E.children&&(E.children.every(t=>typeof t=="string")?E.children=[E.children.join("")]:E.children.forEach(t=>{Ur._collapse(t)}))}}class qA extends Ur{constructor(E){super(),this.options=E}addText(E){E!==""&&this.add(E)}startScope(E){this.openNode(E)}endScope(){this.closeNode()}__addSublanguage(E,t){const T=E.root;t&&(T.scope=`language:${t}`),this.add(T)}toHTML(){return new jA(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Bt(e){return e?typeof e=="string"?e:e.source:null}function pR(e){return wE("(?=",e,")")}function QA(e){return wE("(?:",e,")*")}function ZA(e){return wE("(?:",e,")?")}function wE(...e){return e.map(t=>Bt(t)).join("")}function zA(e){const E=e[e.length-1];return typeof E=="object"&&E.constructor===Object?(e.splice(e.length-1,1),E):{}}function hr(...e){return"("+(zA(e).capture?"":"?:")+e.map(T=>Bt(T)).join("|")+")"}function fR(e){return new RegExp(e.toString()+"|").exec("").length-1}function ei(e,E){const t=e&&e.exec(E);return t&&t.index===0}const Ei=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Gr(e,{joinWith:E}){let t=0;return e.map(T=>{t+=1;const r=t;let s=Bt(T),n="";for(;s.length>0;){const R=Ei.exec(s);if(!R){n+=s;break}n+=s.substring(0,R.index),s=s.substring(R.index+R[0].length),R[0][0]==="\\"&&R[1]?n+="\\"+String(Number(R[1])+r):(n+=R[0],R[0]==="("&&t++)}return n}).map(T=>`(${T})`).join(E)}const ti=/\b\B/,PR="[a-zA-Z]\\w*",gr="[a-zA-Z_]\\w*",DR="\\b\\d+(\\.\\d+)?",dR="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",MR="\\b(0b[01]+)",Ti="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ri=(e={})=>{const E=/^#![ ]*\//;return e.binary&&(e.begin=wE(E,/.*\b/,e.binary,/\b.*/)),cE({scope:"meta",begin:E,end:/$/,relevance:0,"on:begin":(t,T)=>{t.index!==0&&T.ignoreMatch()}},e)},Ft={begin:"\\\\[\\s\\S]",relevance:0},si={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Ft]},ni={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Ft]},Ri={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},PT=function(e,E,t={}){const T=cE({scope:"comment",begin:e,end:E,contains:[]},t);T.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const r=hr("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return T.contains.push({begin:wE(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),T},oi=PT("//","$"),Ai=PT("/\\*","\\*/"),ii=PT("#","$"),Si={scope:"number",begin:DR,relevance:0},Oi={scope:"number",begin:dR,relevance:0},ai={scope:"number",begin:MR,relevance:0},Ii={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Ft,{begin:/\[/,end:/\]/,relevance:0,contains:[Ft]}]},Ni={scope:"title",begin:PR,relevance:0},li={scope:"title",begin:gr,relevance:0},_i={begin:"\\.\\s*"+gr,relevance:0},Ci=function(e){return Object.assign(e,{"on:begin":(E,t)=>{t.data._beginMatch=E[1]},"on:end":(E,t)=>{t.data._beginMatch!==E[1]&&t.ignoreMatch()}})};var qt=Object.freeze({__proto__:null,APOS_STRING_MODE:si,BACKSLASH_ESCAPE:Ft,BINARY_NUMBER_MODE:ai,BINARY_NUMBER_RE:MR,COMMENT:PT,C_BLOCK_COMMENT_MODE:Ai,C_LINE_COMMENT_MODE:oi,C_NUMBER_MODE:Oi,C_NUMBER_RE:dR,END_SAME_AS_BEGIN:Ci,HASH_COMMENT_MODE:ii,IDENT_RE:PR,MATCH_NOTHING_RE:ti,METHOD_GUARD:_i,NUMBER_MODE:Si,NUMBER_RE:DR,PHRASAL_WORDS_MODE:Ri,QUOTE_STRING_MODE:ni,REGEXP_MODE:Ii,RE_STARTERS_RE:Ti,SHEBANG:ri,TITLE_MODE:Ni,UNDERSCORE_IDENT_RE:gr,UNDERSCORE_TITLE_MODE:li});function ci(e,E){e.input[e.index-1]==="."&&E.ignoreMatch()}function Li(e,E){e.className!==void 0&&(e.scope=e.className,delete e.className)}function ui(e,E){E&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=ci,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function pi(e,E){Array.isArray(e.illegal)&&(e.illegal=hr(...e.illegal))}function fi(e,E){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Pi(e,E){e.relevance===void 0&&(e.relevance=1)}const Di=(e,E)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},e);Object.keys(e).forEach(T=>{delete e[T]}),e.keywords=t.keywords,e.begin=wE(t.beforeMatch,pR(t.begin)),e.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},e.relevance=0,delete t.beforeMatch},di=["of","and","for","in","not","or","if","then","parent","list","value"],Mi="keyword";function UR(e,E,t=Mi){const T=Object.create(null);return typeof e=="string"?r(t,e.split(" ")):Array.isArray(e)?r(t,e):Object.keys(e).forEach(function(s){Object.assign(T,UR(e[s],E,s))}),T;function r(s,n){E&&(n=n.map(R=>R.toLowerCase())),n.forEach(function(R){const A=R.split("|");T[A[0]]=[s,Ui(A[0],A[1])]})}}function Ui(e,E){return E?Number(E):hi(e)?0:1}function hi(e){return di.includes(e.toLowerCase())}const Ls={},FE=e=>{console.error(e)},us=(e,...E)=>{console.log(`WARN: ${e}`,...E)},KE=(e,E)=>{Ls[`${e}/${E}`]||(console.log(`Deprecated as of ${e}. ${E}`),Ls[`${e}/${E}`]=!0)},iT=new Error;function hR(e,E,{key:t}){let T=0;const r=e[t],s={},n={};for(let R=1;R<=E.length;R++)n[R+T]=r[R],s[R+T]=!0,T+=fR(E[R-1]);e[t]=n,e[t]._emit=s,e[t]._multi=!0}function Gi(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw FE("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),iT;if(typeof e.beginScope!="object"||e.beginScope===null)throw FE("beginScope must be object"),iT;hR(e,e.begin,{key:"beginScope"}),e.begin=Gr(e.begin,{joinWith:""})}}function gi(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw FE("skip, excludeEnd, returnEnd not compatible with endScope: {}"),iT;if(typeof e.endScope!="object"||e.endScope===null)throw FE("endScope must be object"),iT;hR(e,e.end,{key:"endScope"}),e.end=Gr(e.end,{joinWith:""})}}function mi(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function Hi(e){mi(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),Gi(e),gi(e)}function yi(e){function E(n,R){return new RegExp(Bt(n),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(R?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(R,A){A.position=this.position++,this.matchIndexes[this.matchAt]=A,this.regexes.push([A,R]),this.matchAt+=fR(R)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const R=this.regexes.map(A=>A[1]);this.matcherRe=E(Gr(R,{joinWith:"|"}),!0),this.lastIndex=0}exec(R){this.matcherRe.lastIndex=this.lastIndex;const A=this.matcherRe.exec(R);if(!A)return null;const o=A.findIndex((a,I)=>I>0&&a!==void 0),i=this.matchIndexes[o];return A.splice(0,o),Object.assign(A,i)}}class T{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(R){if(this.multiRegexes[R])return this.multiRegexes[R];const A=new t;return this.rules.slice(R).forEach(([o,i])=>A.addRule(o,i)),A.compile(),this.multiRegexes[R]=A,A}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(R,A){this.rules.push([R,A]),A.type==="begin"&&this.count++}exec(R){const A=this.getMatcher(this.regexIndex);A.lastIndex=this.lastIndex;let o=A.exec(R);if(this.resumingScanAtSamePosition()&&!(o&&o.index===this.lastIndex)){const i=this.getMatcher(0);i.lastIndex=this.lastIndex+1,o=i.exec(R)}return o&&(this.regexIndex+=o.position+1,this.regexIndex===this.count&&this.considerAll()),o}}function r(n){const R=new T;return n.contains.forEach(A=>R.addRule(A.begin,{rule:A,type:"begin"})),n.terminatorEnd&&R.addRule(n.terminatorEnd,{type:"end"}),n.illegal&&R.addRule(n.illegal,{type:"illegal"}),R}function s(n,R){const A=n;if(n.isCompiled)return A;[Li,fi,Hi,Di].forEach(i=>i(n,R)),e.compilerExtensions.forEach(i=>i(n,R)),n.__beforeBegin=null,[ui,pi,Pi].forEach(i=>i(n,R)),n.isCompiled=!0;let o=null;return typeof n.keywords=="object"&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),o=n.keywords.$pattern,delete n.keywords.$pattern),o=o||/\w+/,n.keywords&&(n.keywords=UR(n.keywords,e.case_insensitive)),A.keywordPatternRe=E(o,!0),R&&(n.begin||(n.begin=/\B|\b/),A.beginRe=E(A.begin),!n.end&&!n.endsWithParent&&(n.end=/\B|\b/),n.end&&(A.endRe=E(A.end)),A.terminatorEnd=Bt(A.end)||"",n.endsWithParent&&R.terminatorEnd&&(A.terminatorEnd+=(n.end?"|":"")+R.terminatorEnd)),n.illegal&&(A.illegalRe=E(n.illegal)),n.contains||(n.contains=[]),n.contains=[].concat(...n.contains.map(function(i){return bi(i==="self"?n:i)})),n.contains.forEach(function(i){s(i,A)}),n.starts&&s(n.starts,R),A.matcher=r(A),A}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=cE(e.classNameAliases||{}),s(e)}function GR(e){return e?e.endsWithParent||GR(e.starts):!1}function bi(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(E){return cE(e,{variants:null},E)})),e.cachedVariants?e.cachedVariants:GR(e)?cE(e,{starts:e.starts?cE(e.starts):null}):Object.isFrozen(e)?cE(e):e}var Bi="11.9.0";class Fi extends Error{constructor(E,t){super(E),this.name="HTMLInjectionError",this.html=t}}const XT=uR,ps=cE,fs=Symbol("nomatch"),vi=7,gR=function(e){const E=Object.create(null),t=Object.create(null),T=[];let r=!0;const s="Could not find the language '{}', did you forget to load/include a language module?",n={disableAutodetect:!0,name:"Plain text",contains:[]};let R={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:qA};function A(u){return R.noHighlightRe.test(u)}function o(u){let g=u.className+" ";g+=u.parentNode?u.parentNode.className:"";const te=R.languageDetectRe.exec(g);if(te){const ae=k(te[1]);return ae||(us(s.replace("{}",te[1])),us("Falling back to no-highlight mode for this block.",u)),ae?te[1]:"no-highlight"}return g.split(/\s+/).find(ae=>A(ae)||k(ae))}function i(u,g,te){let ae="",Ie="";typeof g=="object"?(ae=u,te=g.ignoreIllegals,Ie=g.language):(KE("10.7.0","highlight(lang, code, ...args) has been deprecated."),KE("10.7.0",`Please use highlight(code, options) instead.
|
2
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),Ie=u,ae=g),te===void 0&&(te=!0);const Pe={code:ae,language:Ie};le("before:highlight",Pe);const ke=Pe.result?Pe.result:a(Pe.language,Pe.code,te);return ke.code=Pe.code,le("after:highlight",ke),ke}function a(u,g,te,ae){const Ie=Object.create(null);function Pe(M,G){return M.keywords[G]}function ke(){if(!_.keywords){f.addText(b);return}let M=0;_.keywordPatternRe.lastIndex=0;let G=_.keywordPatternRe.exec(b),W="";for(;G;){W+=b.substring(M,G.index);const Te=P.case_insensitive?G[0].toLowerCase():G[0],pe=Pe(_,Te);if(pe){const[Ke,GE]=pe;if(f.addText(W),W="",Ie[Te]=(Ie[Te]||0)+1,Ie[Te]<=vi&&(V+=GE),Ke.startsWith("_"))W+=G[0];else{const jt=P.classNameAliases[Ke]||Ke;De(G[0],jt)}}else W+=G[0];M=_.keywordPatternRe.lastIndex,G=_.keywordPatternRe.exec(b)}W+=b.substring(M),f.addText(W)}function $E(){if(b==="")return;let M=null;if(typeof _.subLanguage=="string"){if(!E[_.subLanguage]){f.addText(b);return}M=a(_.subLanguage,b,!0,y[_.subLanguage]),y[_.subLanguage]=M._top}else M=l(b,_.subLanguage.length?_.subLanguage:null);_.relevance>0&&(V+=M.relevance),f.__addSublanguage(M._emitter,M.language)}function Fe(){_.subLanguage!=null?$E():ke(),b=""}function De(M,G){M!==""&&(f.startScope(G),f.addText(M),f.endScope())}function hE(M,G){let W=1;const Te=G.length-1;for(;W<=Te;){if(!M._emit[W]){W++;continue}const pe=P.classNameAliases[M[W]]||M[W],Ke=G[W];pe?De(Ke,pe):(b=Ke,ke(),b=""),W++}}function ct(M,G){return M.scope&&typeof M.scope=="string"&&f.openNode(P.classNameAliases[M.scope]||M.scope),M.beginScope&&(M.beginScope._wrap?(De(b,P.classNameAliases[M.beginScope._wrap]||M.beginScope._wrap),b=""):M.beginScope._multi&&(hE(M.beginScope,G),b="")),_=Object.create(M,{parent:{value:_}}),_}function AE(M,G,W){let Te=ei(M.endRe,W);if(Te){if(M["on:end"]){const pe=new _s(M);M["on:end"](G,pe),pe.isMatchIgnored&&(Te=!1)}if(Te){for(;M.endsParent&&M.parent;)M=M.parent;return M}}if(M.endsWithParent)return AE(M.parent,G,W)}function Lt(M){return _.matcher.regexIndex===0?(b+=M[0],1):(se=!0,0)}function ut(M){const G=M[0],W=M.rule,Te=new _s(W),pe=[W.__beforeBegin,W["on:begin"]];for(const Ke of pe)if(Ke&&(Ke(M,Te),Te.isMatchIgnored))return Lt(G);return W.skip?b+=G:(W.excludeBegin&&(b+=G),Fe(),!W.returnBegin&&!W.excludeBegin&&(b=G)),ct(W,M),W.returnBegin?0:G.length}function S(M){const G=M[0],W=g.substring(M.index),Te=AE(_,M,W);if(!Te)return fs;const pe=_;_.endScope&&_.endScope._wrap?(Fe(),De(G,_.endScope._wrap)):_.endScope&&_.endScope._multi?(Fe(),hE(_.endScope,M)):pe.skip?b+=G:(pe.returnEnd||pe.excludeEnd||(b+=G),Fe(),pe.excludeEnd&&(b=G));do _.scope&&f.closeNode(),!_.skip&&!_.subLanguage&&(V+=_.relevance),_=_.parent;while(_!==Te.parent);return Te.starts&&ct(Te.starts,M),pe.returnEnd?0:G.length}function N(){const M=[];for(let G=_;G!==P;G=G.parent)G.scope&&M.unshift(G.scope);M.forEach(G=>f.openNode(G))}let c={};function D(M,G){const W=G&&G[0];if(b+=M,W==null)return Fe(),0;if(c.type==="begin"&&G.type==="end"&&c.index===G.index&&W===""){if(b+=g.slice(G.index,G.index+1),!r){const Te=new Error(`0 width match regex (${u})`);throw Te.languageName=u,Te.badRule=c.rule,Te}return 1}if(c=G,G.type==="begin")return ut(G);if(G.type==="illegal"&&!te){const Te=new Error('Illegal lexeme "'+W+'" for mode "'+(_.scope||"<unnamed>")+'"');throw Te.mode=_,Te}else if(G.type==="end"){const Te=S(G);if(Te!==fs)return Te}if(G.type==="illegal"&&W==="")return 1;if(q>1e5&&q>G.index*3)throw new Error("potential infinite loop, way more iterations than matches");return b+=W,W.length}const P=k(u);if(!P)throw FE(s.replace("{}",u)),new Error('Unknown language: "'+u+'"');const m=yi(P);let F="",_=ae||m;const y={},f=new R.__emitter(R);N();let b="",V=0,w=0,q=0,se=!1;try{if(P.__emitTokens)P.__emitTokens(g,f);else{for(_.matcher.considerAll();;){q++,se?se=!1:_.matcher.considerAll(),_.matcher.lastIndex=w;const M=_.matcher.exec(g);if(!M)break;const G=g.substring(w,M.index),W=D(G,M);w=M.index+W}D(g.substring(w))}return f.finalize(),F=f.toHTML(),{language:u,value:F,relevance:V,illegal:!1,_emitter:f,_top:_}}catch(M){if(M.message&&M.message.includes("Illegal"))return{language:u,value:XT(g),illegal:!0,relevance:0,_illegalBy:{message:M.message,index:w,context:g.slice(w-100,w+100),mode:M.mode,resultSoFar:F},_emitter:f};if(r)return{language:u,value:XT(g),illegal:!1,relevance:0,errorRaised:M,_emitter:f,_top:_};throw M}}function I(u){const g={value:XT(u),illegal:!1,relevance:0,_top:n,_emitter:new R.__emitter(R)};return g._emitter.addText(u),g}function l(u,g){g=g||R.languages||Object.keys(E);const te=I(u),ae=g.filter(k).filter(p).map(Fe=>a(Fe,u,!1));ae.unshift(te);const Ie=ae.sort((Fe,De)=>{if(Fe.relevance!==De.relevance)return De.relevance-Fe.relevance;if(Fe.language&&De.language){if(k(Fe.language).supersetOf===De.language)return 1;if(k(De.language).supersetOf===Fe.language)return-1}return 0}),[Pe,ke]=Ie,$E=Pe;return $E.secondBest=ke,$E}function U(u,g,te){const ae=g&&t[g]||te;u.classList.add("hljs"),u.classList.add(`language-${ae}`)}function B(u){let g=null;const te=o(u);if(A(te))return;if(le("before:highlightElement",{el:u,language:te}),u.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",u);return}if(u.children.length>0&&(R.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(u)),R.throwUnescapedHTML))throw new Fi("One of your code blocks includes unescaped HTML.",u.innerHTML);g=u;const ae=g.textContent,Ie=te?i(ae,{language:te,ignoreIllegals:!0}):l(ae);u.innerHTML=Ie.value,u.dataset.highlighted="yes",U(u,te,Ie.language),u.result={language:Ie.language,re:Ie.relevance,relevance:Ie.relevance},Ie.secondBest&&(u.secondBest={language:Ie.secondBest.language,relevance:Ie.secondBest.relevance}),le("after:highlightElement",{el:u,result:Ie,text:ae})}function x(u){R=ps(R,u)}const $=()=>{H(),KE("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function J(){H(),KE("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Q=!1;function H(){if(document.readyState==="loading"){Q=!0;return}document.querySelectorAll(R.cssSelector).forEach(B)}function ee(){Q&&H()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",ee,!1);function Ce(u,g){let te=null;try{te=g(e)}catch(ae){if(FE("Language definition for '{}' could not be registered.".replace("{}",u)),r)FE(ae);else throw ae;te=n}te.name||(te.name=u),E[u]=te,te.rawDefinition=g.bind(null,e),te.aliases&&C(te.aliases,{languageName:u})}function Ae(u){delete E[u];for(const g of Object.keys(t))t[g]===u&&delete t[g]}function Ee(){return Object.keys(E)}function k(u){return u=(u||"").toLowerCase(),E[u]||E[t[u]]}function C(u,{languageName:g}){typeof u=="string"&&(u=[u]),u.forEach(te=>{t[te.toLowerCase()]=g})}function p(u){const g=k(u);return g&&!g.disableAutodetect}function L(u){u["before:highlightBlock"]&&!u["before:highlightElement"]&&(u["before:highlightElement"]=g=>{u["before:highlightBlock"](Object.assign({block:g.el},g))}),u["after:highlightBlock"]&&!u["after:highlightElement"]&&(u["after:highlightElement"]=g=>{u["after:highlightBlock"](Object.assign({block:g.el},g))})}function v(u){L(u),T.push(u)}function K(u){const g=T.indexOf(u);g!==-1&&T.splice(g,1)}function le(u,g){const te=u;T.forEach(function(ae){ae[te]&&ae[te](g)})}function Z(u){return KE("10.7.0","highlightBlock will be removed entirely in v12.0"),KE("10.7.0","Please use highlightElement now."),B(u)}Object.assign(e,{highlight:i,highlightAuto:l,highlightAll:H,highlightElement:B,highlightBlock:Z,configure:x,initHighlighting:$,initHighlightingOnLoad:J,registerLanguage:Ce,unregisterLanguage:Ae,listLanguages:Ee,getLanguage:k,registerAliases:C,autoDetection:p,inherit:ps,addPlugin:v,removePlugin:K}),e.debugMode=function(){r=!1},e.safeMode=function(){r=!0},e.versionString=Bi,e.regex={concat:wE,lookahead:pR,either:hr,optional:ZA,anyNumberOfTimes:QA};for(const u in qt)typeof qt[u]=="object"&&LR(qt[u]);return Object.assign(e,qt),e},tt=gR({});tt.newInstance=()=>gR({});var Yi=tt;tt.HighlightJS=tt;tt.default=tt;const Ut=fT(Yi);function Vi(e){const E=e.regex,t=e.COMMENT("--","$"),T={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},r={begin:/"/,end:/"/,contains:[{begin:/""/}]},s=["true","false","unknown"],n=["double precision","large object","with timezone","without timezone"],R=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],A=["add","asc","collation","desc","final","first","last","view"],o=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],i=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],a=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],I=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],l=i,U=[...o,...A].filter(Q=>!i.includes(Q)),B={className:"variable",begin:/@[a-z0-9][a-z0-9_]*/},x={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},$={begin:E.concat(/\b/,E.either(...l),/\s*\(/),relevance:0,keywords:{built_in:l}};function J(Q,{exceptions:H,when:ee}={}){const Ce=ee;return H=H||[],Q.map(Ae=>Ae.match(/\|\d+$/)||H.includes(Ae)?Ae:Ce(Ae)?`${Ae}|0`:Ae)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:J(U,{when:Q=>Q.length<3}),literal:s,type:R,built_in:a},contains:[{begin:E.either(...I),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:U.concat(I),literal:s,type:R}},{className:"type",begin:E.either(...n)},$,B,T,r,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,x]}}function xi(e){const E={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},t={match:/[{}[\],:]/,className:"punctuation",relevance:0},T=["true","false","null"],r={scope:"literal",beginKeywords:T.join(" ")};return{name:"JSON",keywords:{literal:T},contains:[E,t,e.QUOTE_STRING_MODE,r,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function mr(e,E){const t=Object.create(null),T=e.split(",");for(let r=0;r<T.length;r++)t[T[r]]=!0;return E?r=>!!t[r.toLowerCase()]:r=>!!t[r]}const ce={},ZE=[],nE=()=>{},wi=()=>!1,DT=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Hr=e=>e.startsWith("onUpdate:"),He=Object.assign,yr=(e,E)=>{const t=e.indexOf(E);t>-1&&e.splice(t,1)},Wi=Object.prototype.hasOwnProperty,Se=(e,E)=>Wi.call(e,E),z=Array.isArray,zE=e=>dT(e)==="[object Map]",mR=e=>dT(e)==="[object Set]",re=e=>typeof e=="function",de=e=>typeof e=="string",Rt=e=>typeof e=="symbol",ue=e=>e!==null&&typeof e=="object",HR=e=>(ue(e)||re(e))&&re(e.then)&&re(e.catch),yR=Object.prototype.toString,dT=e=>yR.call(e),Xi=e=>dT(e).slice(8,-1),bR=e=>dT(e)==="[object Object]",br=e=>de(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,rT=mr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),MT=e=>{const E=Object.create(null);return t=>E[t]||(E[t]=e(t))},$i=/-(\w)/g,RE=MT(e=>e.replace($i,(E,t)=>t?t.toUpperCase():"")),Ki=/\B([A-Z])/g,ot=MT(e=>e.replace(Ki,"-$1").toLowerCase()),UT=MT(e=>e.charAt(0).toUpperCase()+e.slice(1)),$T=MT(e=>e?`on${UT(e)}`:""),VE=(e,E)=>!Object.is(e,E),KT=(e,E)=>{for(let t=0;t<e.length;t++)e[t](E)},ST=(e,E,t)=>{Object.defineProperty(e,E,{configurable:!0,enumerable:!1,value:t})},Ji=e=>{const E=parseFloat(e);return isNaN(E)?e:E};let Ps;const rr=()=>Ps||(Ps=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function hT(e){if(z(e)){const E={};for(let t=0;t<e.length;t++){const T=e[t],r=de(T)?Qi(T):hT(T);if(r)for(const s in r)E[s]=r[s]}return E}else if(de(e)||ue(e))return e}const ki=/;(?![^(]*\))/g,ji=/:([^]+)/,qi=/\/\*[^]*?\*\//g;function Qi(e){const E={};return e.replace(qi,"").split(ki).forEach(t=>{if(t){const T=t.split(ji);T.length>1&&(E[T[0].trim()]=T[1].trim())}}),E}function $e(e){let E="";if(de(e))E=e;else if(z(e))for(let t=0;t<e.length;t++){const T=$e(e[t]);T&&(E+=T+" ")}else if(ue(e))for(const t in e)e[t]&&(E+=t+" ");return E.trim()}const Zi="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",zi=mr(Zi);function BR(e){return!!e||e===""}const Re=e=>de(e)?e:e==null?"":z(e)||ue(e)&&(e.toString===yR||!re(e.toString))?JSON.stringify(e,FR,2):String(e),FR=(e,E)=>E&&E.__v_isRef?FR(e,E.value):zE(E)?{[`Map(${E.size})`]:[...E.entries()].reduce((t,[T,r],s)=>(t[JT(T,s)+" =>"]=r,t),{})}:mR(E)?{[`Set(${E.size})`]:[...E.values()].map(t=>JT(t))}:Rt(E)?JT(E):ue(E)&&!z(E)&&!bR(E)?String(E):E,JT=(e,E="")=>{var t;return Rt(e)?`Symbol(${(t=e.description)!=null?t:E})`:e};let Xe;class vR{constructor(E=!1){this.detached=E,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Xe,!E&&Xe&&(this.index=(Xe.scopes||(Xe.scopes=[])).push(this)-1)}get active(){return this._active}run(E){if(this._active){const t=Xe;try{return Xe=this,E()}finally{Xe=t}}}on(){Xe=this}off(){Xe=this.parent}stop(E){if(this._active){let t,T;for(t=0,T=this.effects.length;t<T;t++)this.effects[t].stop();for(t=0,T=this.cleanups.length;t<T;t++)this.cleanups[t]();if(this.scopes)for(t=0,T=this.scopes.length;t<T;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!E){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function YR(e){return new vR(e)}function eS(e,E=Xe){E&&E.active&&E.effects.push(e)}function VR(){return Xe}function ES(e){Xe&&Xe.cleanups.push(e)}const Br=e=>{const E=new Set(e);return E.w=0,E.n=0,E},xR=e=>(e.w&PE)>0,wR=e=>(e.n&PE)>0,tS=({deps:e})=>{if(e.length)for(let E=0;E<e.length;E++)e[E].w|=PE},TS=e=>{const{deps:E}=e;if(E.length){let t=0;for(let T=0;T<E.length;T++){const r=E[T];xR(r)&&!wR(r)?r.delete(e):E[t++]=r,r.w&=~PE,r.n&=~PE}E.length=t}},OT=new WeakMap;let dt=0,PE=1;const sr=30;let Qe;const vE=Symbol(""),nr=Symbol("");class Fr{constructor(E,t=null,T){this.fn=E,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,eS(this,T)}run(){if(!this.active)return this.fn();let E=Qe,t=uE;for(;E;){if(E===this)return;E=E.parent}try{return this.parent=Qe,Qe=this,uE=!0,PE=1<<++dt,dt<=sr?tS(this):Ds(this),this.fn()}finally{dt<=sr&&TS(this),PE=1<<--dt,Qe=this.parent,uE=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Qe===this?this.deferStop=!0:this.active&&(Ds(this),this.onStop&&this.onStop(),this.active=!1)}}function Ds(e){const{deps:E}=e;if(E.length){for(let t=0;t<E.length;t++)E[t].delete(e);E.length=0}}let uE=!0;const WR=[];function At(){WR.push(uE),uE=!1}function it(){const e=WR.pop();uE=e===void 0?!0:e}function we(e,E,t){if(uE&&Qe){let T=OT.get(e);T||OT.set(e,T=new Map);let r=T.get(t);r||T.set(t,r=Br()),XR(r)}}function XR(e,E){let t=!1;dt<=sr?wR(e)||(e.n|=PE,t=!xR(e)):t=!e.has(Qe),t&&(e.add(Qe),Qe.deps.push(e))}function SE(e,E,t,T,r,s){const n=OT.get(e);if(!n)return;let R=[];if(E==="clear")R=[...n.values()];else if(t==="length"&&z(e)){const A=Number(T);n.forEach((o,i)=>{(i==="length"||!Rt(i)&&i>=A)&&R.push(o)})}else switch(t!==void 0&&R.push(n.get(t)),E){case"add":z(e)?br(t)&&R.push(n.get("length")):(R.push(n.get(vE)),zE(e)&&R.push(n.get(nr)));break;case"delete":z(e)||(R.push(n.get(vE)),zE(e)&&R.push(n.get(nr)));break;case"set":zE(e)&&R.push(n.get(vE));break}if(R.length===1)R[0]&&Rr(R[0]);else{const A=[];for(const o of R)o&&A.push(...o);Rr(Br(A))}}function Rr(e,E){const t=z(e)?e:[...e];for(const T of t)T.computed&&ds(T);for(const T of t)T.computed||ds(T)}function ds(e,E){(e!==Qe||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function rS(e,E){var t;return(t=OT.get(e))==null?void 0:t.get(E)}const sS=mr("__proto__,__v_isRef,__isVue"),$R=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Rt)),Ms=nS();function nS(){const e={};return["includes","indexOf","lastIndexOf"].forEach(E=>{e[E]=function(...t){const T=Oe(this);for(let s=0,n=this.length;s<n;s++)we(T,"get",s+"");const r=T[E](...t);return r===-1||r===!1?T[E](...t.map(Oe)):r}}),["push","pop","shift","unshift","splice"].forEach(E=>{e[E]=function(...t){At();const T=Oe(this)[E].apply(this,t);return it(),T}}),e}function RS(e){const E=Oe(this);return we(E,"has",e),E.hasOwnProperty(e)}class KR{constructor(E=!1,t=!1){this._isReadonly=E,this._shallow=t}get(E,t,T){const r=this._isReadonly,s=this._shallow;if(t==="__v_isReactive")return!r;if(t==="__v_isReadonly")return r;if(t==="__v_isShallow")return s;if(t==="__v_raw")return T===(r?s?LS:qR:s?jR:kR).get(E)||Object.getPrototypeOf(E)===Object.getPrototypeOf(T)?E:void 0;const n=z(E);if(!r){if(n&&Se(Ms,t))return Reflect.get(Ms,t,T);if(t==="hasOwnProperty")return RS}const R=Reflect.get(E,t,T);return(Rt(t)?$R.has(t):sS(t))||(r||we(E,"get",t),s)?R:Ue(R)?n&&br(t)?R:R.value:ue(R)?r?QR(R):dE(R):R}}class JR extends KR{constructor(E=!1){super(!1,E)}set(E,t,T,r){let s=E[t];if(!this._shallow){const A=Tt(s);if(!aT(T)&&!Tt(T)&&(s=Oe(s),T=Oe(T)),!z(E)&&Ue(s)&&!Ue(T))return A?!1:(s.value=T,!0)}const n=z(E)&&br(t)?Number(t)<E.length:Se(E,t),R=Reflect.set(E,t,T,r);return E===Oe(r)&&(n?VE(T,s)&&SE(E,"set",t,T):SE(E,"add",t,T)),R}deleteProperty(E,t){const T=Se(E,t);E[t];const r=Reflect.deleteProperty(E,t);return r&&T&&SE(E,"delete",t,void 0),r}has(E,t){const T=Reflect.has(E,t);return(!Rt(t)||!$R.has(t))&&we(E,"has",t),T}ownKeys(E){return we(E,"iterate",z(E)?"length":vE),Reflect.ownKeys(E)}}class oS extends KR{constructor(E=!1){super(!0,E)}set(E,t){return!0}deleteProperty(E,t){return!0}}const AS=new JR,iS=new oS,SS=new JR(!0),vr=e=>e,GT=e=>Reflect.getPrototypeOf(e);function Qt(e,E,t=!1,T=!1){e=e.__v_raw;const r=Oe(e),s=Oe(E);t||(VE(E,s)&&we(r,"get",E),we(r,"get",s));const{has:n}=GT(r),R=T?vr:t?xr:vt;if(n.call(r,E))return R(e.get(E));if(n.call(r,s))return R(e.get(s));e!==r&&e.get(E)}function Zt(e,E=!1){const t=this.__v_raw,T=Oe(t),r=Oe(e);return E||(VE(e,r)&&we(T,"has",e),we(T,"has",r)),e===r?t.has(e):t.has(e)||t.has(r)}function zt(e,E=!1){return e=e.__v_raw,!E&&we(Oe(e),"iterate",vE),Reflect.get(e,"size",e)}function Us(e){e=Oe(e);const E=Oe(this);return GT(E).has.call(E,e)||(E.add(e),SE(E,"add",e,e)),this}function hs(e,E){E=Oe(E);const t=Oe(this),{has:T,get:r}=GT(t);let s=T.call(t,e);s||(e=Oe(e),s=T.call(t,e));const n=r.call(t,e);return t.set(e,E),s?VE(E,n)&&SE(t,"set",e,E):SE(t,"add",e,E),this}function Gs(e){const E=Oe(this),{has:t,get:T}=GT(E);let r=t.call(E,e);r||(e=Oe(e),r=t.call(E,e)),T&&T.call(E,e);const s=E.delete(e);return r&&SE(E,"delete",e,void 0),s}function gs(){const e=Oe(this),E=e.size!==0,t=e.clear();return E&&SE(e,"clear",void 0,void 0),t}function eT(e,E){return function(T,r){const s=this,n=s.__v_raw,R=Oe(n),A=E?vr:e?xr:vt;return!e&&we(R,"iterate",vE),n.forEach((o,i)=>T.call(r,A(o),A(i),s))}}function ET(e,E,t){return function(...T){const r=this.__v_raw,s=Oe(r),n=zE(s),R=e==="entries"||e===Symbol.iterator&&n,A=e==="keys"&&n,o=r[e](...T),i=t?vr:E?xr:vt;return!E&&we(s,"iterate",A?nr:vE),{next(){const{value:a,done:I}=o.next();return I?{value:a,done:I}:{value:R?[i(a[0]),i(a[1])]:i(a),done:I}},[Symbol.iterator](){return this}}}}function NE(e){return function(...E){return e==="delete"?!1:e==="clear"?void 0:this}}function OS(){const e={get(s){return Qt(this,s)},get size(){return zt(this)},has:Zt,add:Us,set:hs,delete:Gs,clear:gs,forEach:eT(!1,!1)},E={get(s){return Qt(this,s,!1,!0)},get size(){return zt(this)},has:Zt,add:Us,set:hs,delete:Gs,clear:gs,forEach:eT(!1,!0)},t={get(s){return Qt(this,s,!0)},get size(){return zt(this,!0)},has(s){return Zt.call(this,s,!0)},add:NE("add"),set:NE("set"),delete:NE("delete"),clear:NE("clear"),forEach:eT(!0,!1)},T={get(s){return Qt(this,s,!0,!0)},get size(){return zt(this,!0)},has(s){return Zt.call(this,s,!0)},add:NE("add"),set:NE("set"),delete:NE("delete"),clear:NE("clear"),forEach:eT(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=ET(s,!1,!1),t[s]=ET(s,!0,!1),E[s]=ET(s,!1,!0),T[s]=ET(s,!0,!0)}),[e,t,E,T]}const[aS,IS,NS,lS]=OS();function Yr(e,E){const t=E?e?lS:NS:e?IS:aS;return(T,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?T:Reflect.get(Se(t,r)&&r in T?t:T,r,s)}const _S={get:Yr(!1,!1)},CS={get:Yr(!1,!0)},cS={get:Yr(!0,!1)},kR=new WeakMap,jR=new WeakMap,qR=new WeakMap,LS=new WeakMap;function uS(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function pS(e){return e.__v_skip||!Object.isExtensible(e)?0:uS(Xi(e))}function dE(e){return Tt(e)?e:Vr(e,!1,AS,_S,kR)}function fS(e){return Vr(e,!1,SS,CS,jR)}function QR(e){return Vr(e,!0,iS,cS,qR)}function Vr(e,E,t,T,r){if(!ue(e)||e.__v_raw&&!(E&&e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const n=pS(e);if(n===0)return e;const R=new Proxy(e,n===2?T:t);return r.set(e,R),R}function pE(e){return Tt(e)?pE(e.__v_raw):!!(e&&e.__v_isReactive)}function Tt(e){return!!(e&&e.__v_isReadonly)}function aT(e){return!!(e&&e.__v_isShallow)}function ZR(e){return pE(e)||Tt(e)}function Oe(e){const E=e&&e.__v_raw;return E?Oe(E):e}function gT(e){return ST(e,"__v_skip",!0),e}const vt=e=>ue(e)?dE(e):e,xr=e=>ue(e)?QR(e):e;function zR(e){uE&&Qe&&(e=Oe(e),XR(e.dep||(e.dep=Br())))}function eo(e,E){e=Oe(e);const t=e.dep;t&&Rr(t)}function Ue(e){return!!(e&&e.__v_isRef===!0)}function LE(e){return PS(e,!1)}function PS(e,E){return Ue(e)?e:new DS(e,E)}class DS{constructor(E,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?E:Oe(E),this._value=t?E:vt(E)}get value(){return zR(this),this._value}set value(E){const t=this.__v_isShallow||aT(E)||Tt(E);E=t?E:Oe(E),VE(E,this._rawValue)&&(this._rawValue=E,this._value=t?E:vt(E),eo(this))}}function ne(e){return Ue(e)?e.value:e}const dS={get:(e,E,t)=>ne(Reflect.get(e,E,t)),set:(e,E,t,T)=>{const r=e[E];return Ue(r)&&!Ue(t)?(r.value=t,!0):Reflect.set(e,E,t,T)}};function Eo(e){return pE(e)?e:new Proxy(e,dS)}function MS(e){const E=z(e)?new Array(e.length):{};for(const t in e)E[t]=hS(e,t);return E}class US{constructor(E,t,T){this._object=E,this._key=t,this._defaultValue=T,this.__v_isRef=!0}get value(){const E=this._object[this._key];return E===void 0?this._defaultValue:E}set value(E){this._object[this._key]=E}get dep(){return rS(Oe(this._object),this._key)}}function hS(e,E,t){const T=e[E];return Ue(T)?T:new US(e,E,t)}class GS{constructor(E,t,T,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Fr(E,()=>{this._dirty||(this._dirty=!0,eo(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=T}get value(){const E=Oe(this);return zR(E),(E._dirty||!E._cacheable)&&(E._dirty=!1,E._value=E.effect.run()),E._value}set value(E){this._setter(E)}}function gS(e,E,t=!1){let T,r;const s=re(e);return s?(T=e,r=nE):(T=e.get,r=e.set),new GS(T,r,s||!r,t)}function fE(e,E,t,T){let r;try{r=T?e(...T):e()}catch(s){mT(s,E,t)}return r}function eE(e,E,t,T){if(re(e)){const s=fE(e,E,t,T);return s&&HR(s)&&s.catch(n=>{mT(n,E,t)}),s}const r=[];for(let s=0;s<e.length;s++)r.push(eE(e[s],E,t,T));return r}function mT(e,E,t,T=!0){const r=E?E.vnode:null;if(E){let s=E.parent;const n=E.proxy,R=t;for(;s;){const o=s.ec;if(o){for(let i=0;i<o.length;i++)if(o[i](e,n,R)===!1)return}s=s.parent}const A=E.appContext.config.errorHandler;if(A){fE(A,null,10,[e,n,R]);return}}mS(e,t,r,T)}function mS(e,E,t,T=!0){console.error(e)}let Yt=!1,or=!1;const be=[];let sE=0;const et=[];let iE=null,bE=0;const to=Promise.resolve();let wr=null;function To(e){const E=wr||to;return e?E.then(this?e.bind(this):e):E}function HS(e){let E=sE+1,t=be.length;for(;E<t;){const T=E+t>>>1,r=be[T],s=Vt(r);s<e||s===e&&r.pre?E=T+1:t=T}return E}function Wr(e){(!be.length||!be.includes(e,Yt&&e.allowRecurse?sE+1:sE))&&(e.id==null?be.push(e):be.splice(HS(e.id),0,e),ro())}function ro(){!Yt&&!or&&(or=!0,wr=to.then(no))}function yS(e){const E=be.indexOf(e);E>sE&&be.splice(E,1)}function bS(e){z(e)?et.push(...e):(!iE||!iE.includes(e,e.allowRecurse?bE+1:bE))&&et.push(e),ro()}function ms(e,E,t=Yt?sE+1:0){for(;t<be.length;t++){const T=be[t];if(T&&T.pre){if(e&&T.id!==e.uid)continue;be.splice(t,1),t--,T()}}}function so(e){if(et.length){const E=[...new Set(et)];if(et.length=0,iE){iE.push(...E);return}for(iE=E,iE.sort((t,T)=>Vt(t)-Vt(T)),bE=0;bE<iE.length;bE++)iE[bE]();iE=null,bE=0}}const Vt=e=>e.id==null?1/0:e.id,BS=(e,E)=>{const t=Vt(e)-Vt(E);if(t===0){if(e.pre&&!E.pre)return-1;if(E.pre&&!e.pre)return 1}return t};function no(e){or=!1,Yt=!0,be.sort(BS);try{for(sE=0;sE<be.length;sE++){const E=be[sE];E&&E.active!==!1&&fE(E,null,14)}}finally{sE=0,be.length=0,so(),Yt=!1,wr=null,(be.length||et.length)&&no()}}function FS(e,E,...t){if(e.isUnmounted)return;const T=e.vnode.props||ce;let r=t;const s=E.startsWith("update:"),n=s&&E.slice(7);if(n&&n in T){const i=`${n==="modelValue"?"model":n}Modifiers`,{number:a,trim:I}=T[i]||ce;I&&(r=t.map(l=>de(l)?l.trim():l)),a&&(r=t.map(Ji))}let R,A=T[R=$T(E)]||T[R=$T(RE(E))];!A&&s&&(A=T[R=$T(ot(E))]),A&&eE(A,e,6,r);const o=T[R+"Once"];if(o){if(!e.emitted)e.emitted={};else if(e.emitted[R])return;e.emitted[R]=!0,eE(o,e,6,r)}}function Ro(e,E,t=!1){const T=E.emitsCache,r=T.get(e);if(r!==void 0)return r;const s=e.emits;let n={},R=!1;if(!re(e)){const A=o=>{const i=Ro(o,E,!0);i&&(R=!0,He(n,i))};!t&&E.mixins.length&&E.mixins.forEach(A),e.extends&&A(e.extends),e.mixins&&e.mixins.forEach(A)}return!s&&!R?(ue(e)&&T.set(e,null),null):(z(s)?s.forEach(A=>n[A]=null):He(n,s),ue(e)&&T.set(e,n),n)}function HT(e,E){return!e||!DT(E)?!1:(E=E.slice(2).replace(/Once$/,""),Se(e,E[0].toLowerCase()+E.slice(1))||Se(e,ot(E))||Se(e,E))}let Be=null,oo=null;function IT(e){const E=Be;return Be=e,oo=e&&e.type.__scopeId||null,E}function ie(e,E=Be,t){if(!E||e._n)return e;const T=(...r)=>{T._d&&Xs(-1);const s=IT(E);let n;try{n=e(...r)}finally{IT(s),T._d&&Xs(1)}return n};return T._n=!0,T._c=!0,T._d=!0,T}function kT(e){const{type:E,vnode:t,proxy:T,withProxy:r,props:s,propsOptions:[n],slots:R,attrs:A,emit:o,render:i,renderCache:a,data:I,setupState:l,ctx:U,inheritAttrs:B}=e;let x,$;const J=IT(e);try{if(t.shapeFlag&4){const H=r||T,ee=H;x=rE(i.call(ee,H,a,s,l,I,U)),$=A}else{const H=E;x=rE(H.length>1?H(s,{attrs:A,slots:R,emit:o}):H(s,null)),$=E.props?A:vS(A)}}catch(H){Ht.length=0,mT(H,e,1),x=X(DE)}let Q=x;if($&&B!==!1){const H=Object.keys($),{shapeFlag:ee}=Q;H.length&&ee&7&&(n&&H.some(Hr)&&($=YS($,n)),Q=rt(Q,$))}return t.dirs&&(Q=rt(Q),Q.dirs=Q.dirs?Q.dirs.concat(t.dirs):t.dirs),t.transition&&(Q.transition=t.transition),x=Q,IT(J),x}const vS=e=>{let E;for(const t in e)(t==="class"||t==="style"||DT(t))&&((E||(E={}))[t]=e[t]);return E},YS=(e,E)=>{const t={};for(const T in e)(!Hr(T)||!(T.slice(9)in E))&&(t[T]=e[T]);return t};function VS(e,E,t){const{props:T,children:r,component:s}=e,{props:n,children:R,patchFlag:A}=E,o=s.emitsOptions;if(E.dirs||E.transition)return!0;if(t&&A>=0){if(A&1024)return!0;if(A&16)return T?Hs(T,n,o):!!n;if(A&8){const i=E.dynamicProps;for(let a=0;a<i.length;a++){const I=i[a];if(n[I]!==T[I]&&!HT(o,I))return!0}}}else return(r||R)&&(!R||!R.$stable)?!0:T===n?!1:T?n?Hs(T,n,o):!0:!!n;return!1}function Hs(e,E,t){const T=Object.keys(E);if(T.length!==Object.keys(e).length)return!0;for(let r=0;r<T.length;r++){const s=T[r];if(E[s]!==e[s]&&!HT(t,s))return!0}return!1}function xS({vnode:e,parent:E},t){for(;E&&E.subTree===e;)(e=E.vnode).el=t,E=E.parent}const Ao="components";function $t(e,E){return WS(Ao,e,!0,E)||e}const wS=Symbol.for("v-ndc");function WS(e,E,t=!0,T=!1){const r=Be||me;if(r){const s=r.type;if(e===Ao){const R=vO(s,!1);if(R&&(R===E||R===RE(E)||R===UT(RE(E))))return s}const n=ys(r[e]||s[e],E)||ys(r.appContext[e],E);return!n&&T?s:n}}function ys(e,E){return e&&(e[E]||e[RE(E)]||e[UT(RE(E))])}const XS=e=>e.__isSuspense;function $S(e,E){E&&E.pendingBranch?z(e)?E.effects.push(...e):E.effects.push(e):bS(e)}const tT={};function Et(e,E,t){return io(e,E,t)}function io(e,E,{immediate:t,deep:T,flush:r,onTrack:s,onTrigger:n}=ce){var R;const A=VR()===((R=me)==null?void 0:R.scope)?me:null;let o,i=!1,a=!1;if(Ue(e)?(o=()=>e.value,i=aT(e)):pE(e)?(o=()=>e,T=!0):z(e)?(a=!0,i=e.some(H=>pE(H)||aT(H)),o=()=>e.map(H=>{if(Ue(H))return H.value;if(pE(H))return QE(H);if(re(H))return fE(H,A,2)})):re(e)?E?o=()=>fE(e,A,2):o=()=>{if(!(A&&A.isUnmounted))return I&&I(),eE(e,A,3,[l])}:o=nE,E&&T){const H=o;o=()=>QE(H())}let I,l=H=>{I=J.onStop=()=>{fE(H,A,4),I=J.onStop=void 0}},U;if(Wt)if(l=nE,E?t&&eE(E,A,3,[o(),a?[]:void 0,l]):o(),r==="sync"){const H=xO();U=H.__watcherHandles||(H.__watcherHandles=[])}else return nE;let B=a?new Array(e.length).fill(tT):tT;const x=()=>{if(J.active)if(E){const H=J.run();(T||i||(a?H.some((ee,Ce)=>VE(ee,B[Ce])):VE(H,B)))&&(I&&I(),eE(E,A,3,[H,B===tT?void 0:a&&B[0]===tT?[]:B,l]),B=H)}else J.run()};x.allowRecurse=!!E;let $;r==="sync"?$=x:r==="post"?$=()=>xe(x,A&&A.suspense):(x.pre=!0,A&&(x.id=A.uid),$=()=>Wr(x));const J=new Fr(o,$);E?t?x():B=J.run():r==="post"?xe(J.run.bind(J),A&&A.suspense):J.run();const Q=()=>{J.stop(),A&&A.scope&&yr(A.scope.effects,J)};return U&&U.push(Q),Q}function KS(e,E,t){const T=this.proxy,r=de(e)?e.includes(".")?So(T,e):()=>T[e]:e.bind(T,T);let s;re(E)?s=E:(s=E.handler,t=E);const n=me;st(this);const R=io(r,s.bind(T),t);return n?st(n):YE(),R}function So(e,E){const t=E.split(".");return()=>{let T=e;for(let r=0;r<t.length&&T;r++)T=T[t[r]];return T}}function QE(e,E){if(!ue(e)||e.__v_skip||(E=E||new Set,E.has(e)))return e;if(E.add(e),Ue(e))QE(e.value,E);else if(z(e))for(let t=0;t<e.length;t++)QE(e[t],E);else if(mR(e)||zE(e))e.forEach(t=>{QE(t,E)});else if(bR(e))for(const t in e)QE(e[t],E);return e}function gE(e,E,t,T){const r=e.dirs,s=E&&E.dirs;for(let n=0;n<r.length;n++){const R=r[n];s&&(R.oldValue=s[n].value);let A=R.dir[T];A&&(At(),eE(A,t,8,[e.el,R,e,E]),it())}}/*! #__NO_SIDE_EFFECTS__ */function Me(e,E){return re(e)?He({name:e.name},E,{setup:e}):e}const ht=e=>!!e.type.__asyncLoader,Oo=e=>e.type.__isKeepAlive;function JS(e,E){ao(e,"a",E)}function kS(e,E){ao(e,"da",E)}function ao(e,E,t=me){const T=e.__wdc||(e.__wdc=()=>{let r=t;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(yT(E,T,t),t){let r=t.parent;for(;r&&r.parent;)Oo(r.parent.vnode)&&jS(T,E,t,r),r=r.parent}}function jS(e,E,t,T){const r=yT(E,e,T,!0);No(()=>{yr(T[E],r)},t)}function yT(e,E,t=me,T=!1){if(t){const r=t[e]||(t[e]=[]),s=E.__weh||(E.__weh=(...n)=>{if(t.isUnmounted)return;At(),st(t);const R=eE(E,t,e,n);return YE(),it(),R});return T?r.unshift(s):r.push(s),s}}const aE=e=>(E,t=me)=>(!Wt||e==="sp")&&yT(e,(...T)=>E(...T),t),Io=aE("bm"),Xr=aE("m"),qS=aE("bu"),QS=aE("u"),ZS=aE("bum"),No=aE("um"),zS=aE("sp"),eO=aE("rtg"),EO=aE("rtc");function tO(e,E=me){yT("ec",e,E)}function Je(e,E,t,T){let r;const s=t&&t[T];if(z(e)||de(e)){r=new Array(e.length);for(let n=0,R=e.length;n<R;n++)r[n]=E(e[n],n,void 0,s&&s[n])}else if(typeof e=="number"){r=new Array(e);for(let n=0;n<e;n++)r[n]=E(n+1,n,void 0,s&&s[n])}else if(ue(e))if(e[Symbol.iterator])r=Array.from(e,(n,R)=>E(n,R,void 0,s&&s[R]));else{const n=Object.keys(e);r=new Array(n.length);for(let R=0,A=n.length;R<A;R++){const o=n[R];r[R]=E(e[o],o,R,s&&s[R])}}else r=[];return t&&(t[T]=r),r}function St(e,E,t={},T,r){if(Be.isCE||Be.parent&&ht(Be.parent)&&Be.parent.isCE)return E!=="default"&&(t.name=E),X("slot",t,T&&T());let s=e[E];s&&s._c&&(s._d=!1),h();const n=s&&lo(s(t)),R=fe(Le,{key:t.key||n&&n.key||`_${E}`},n||(T?T():[]),n&&e._===1?64:-2);return!r&&R.scopeId&&(R.slotScopeIds=[R.scopeId+"-s"]),s&&s._c&&(s._d=!0),R}function lo(e){return e.some(E=>lT(E)?!(E.type===DE||E.type===Le&&!lo(E.children)):!0)?e:null}const Ar=e=>e?Uo(e)?qr(e)||e.proxy:Ar(e.parent):null,Gt=He(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ar(e.parent),$root:e=>Ar(e.root),$emit:e=>e.emit,$options:e=>$r(e),$forceUpdate:e=>e.f||(e.f=()=>Wr(e.update)),$nextTick:e=>e.n||(e.n=To.bind(e.proxy)),$watch:e=>KS.bind(e)}),jT=(e,E)=>e!==ce&&!e.__isScriptSetup&&Se(e,E),TO={get({_:e},E){const{ctx:t,setupState:T,data:r,props:s,accessCache:n,type:R,appContext:A}=e;let o;if(E[0]!=="$"){const l=n[E];if(l!==void 0)switch(l){case 1:return T[E];case 2:return r[E];case 4:return t[E];case 3:return s[E]}else{if(jT(T,E))return n[E]=1,T[E];if(r!==ce&&Se(r,E))return n[E]=2,r[E];if((o=e.propsOptions[0])&&Se(o,E))return n[E]=3,s[E];if(t!==ce&&Se(t,E))return n[E]=4,t[E];ir&&(n[E]=0)}}const i=Gt[E];let a,I;if(i)return E==="$attrs"&&we(e,"get",E),i(e);if((a=R.__cssModules)&&(a=a[E]))return a;if(t!==ce&&Se(t,E))return n[E]=4,t[E];if(I=A.config.globalProperties,Se(I,E))return I[E]},set({_:e},E,t){const{data:T,setupState:r,ctx:s}=e;return jT(r,E)?(r[E]=t,!0):T!==ce&&Se(T,E)?(T[E]=t,!0):Se(e.props,E)||E[0]==="$"&&E.slice(1)in e?!1:(s[E]=t,!0)},has({_:{data:e,setupState:E,accessCache:t,ctx:T,appContext:r,propsOptions:s}},n){let R;return!!t[n]||e!==ce&&Se(e,n)||jT(E,n)||(R=s[0])&&Se(R,n)||Se(T,n)||Se(Gt,n)||Se(r.config.globalProperties,n)},defineProperty(e,E,t){return t.get!=null?e._.accessCache[E]=0:Se(t,"value")&&this.set(e,E,t.value,null),Reflect.defineProperty(e,E,t)}};function bs(e){return z(e)?e.reduce((E,t)=>(E[t]=null,E),{}):e}let ir=!0;function rO(e){const E=$r(e),t=e.proxy,T=e.ctx;ir=!1,E.beforeCreate&&Bs(E.beforeCreate,e,"bc");const{data:r,computed:s,methods:n,watch:R,provide:A,inject:o,created:i,beforeMount:a,mounted:I,beforeUpdate:l,updated:U,activated:B,deactivated:x,beforeDestroy:$,beforeUnmount:J,destroyed:Q,unmounted:H,render:ee,renderTracked:Ce,renderTriggered:Ae,errorCaptured:Ee,serverPrefetch:k,expose:C,inheritAttrs:p,components:L,directives:v,filters:K}=E;if(o&&sO(o,T,null),n)for(const u in n){const g=n[u];re(g)&&(T[u]=g.bind(t))}if(r){const u=r.call(t,t);ue(u)&&(e.data=dE(u))}if(ir=!0,s)for(const u in s){const g=s[u],te=re(g)?g.bind(t,t):re(g.get)?g.get.bind(t,t):nE,ae=!re(g)&&re(g.set)?g.set.bind(t):nE,Ie=ze({get:te,set:ae});Object.defineProperty(T,u,{enumerable:!0,configurable:!0,get:()=>Ie.value,set:Pe=>Ie.value=Pe})}if(R)for(const u in R)_o(R[u],T,t,u);if(A){const u=re(A)?A.call(t):A;Reflect.ownKeys(u).forEach(g=>{SO(g,u[g])})}i&&Bs(i,e,"c");function Z(u,g){z(g)?g.forEach(te=>u(te.bind(t))):g&&u(g.bind(t))}if(Z(Io,a),Z(Xr,I),Z(qS,l),Z(QS,U),Z(JS,B),Z(kS,x),Z(tO,Ee),Z(EO,Ce),Z(eO,Ae),Z(ZS,J),Z(No,H),Z(zS,k),z(C))if(C.length){const u=e.exposed||(e.exposed={});C.forEach(g=>{Object.defineProperty(u,g,{get:()=>t[g],set:te=>t[g]=te})})}else e.exposed||(e.exposed={});ee&&e.render===nE&&(e.render=ee),p!=null&&(e.inheritAttrs=p),L&&(e.components=L),v&&(e.directives=v)}function sO(e,E,t=nE){z(e)&&(e=Sr(e));for(const T in e){const r=e[T];let s;ue(r)?"default"in r?s=gt(r.from||T,r.default,!0):s=gt(r.from||T):s=gt(r),Ue(s)?Object.defineProperty(E,T,{enumerable:!0,configurable:!0,get:()=>s.value,set:n=>s.value=n}):E[T]=s}}function Bs(e,E,t){eE(z(e)?e.map(T=>T.bind(E.proxy)):e.bind(E.proxy),E,t)}function _o(e,E,t,T){const r=T.includes(".")?So(t,T):()=>t[T];if(de(e)){const s=E[e];re(s)&&Et(r,s)}else if(re(e))Et(r,e.bind(t));else if(ue(e))if(z(e))e.forEach(s=>_o(s,E,t,T));else{const s=re(e.handler)?e.handler.bind(t):E[e.handler];re(s)&&Et(r,s,e)}}function $r(e){const E=e.type,{mixins:t,extends:T}=E,{mixins:r,optionsCache:s,config:{optionMergeStrategies:n}}=e.appContext,R=s.get(E);let A;return R?A=R:!r.length&&!t&&!T?A=E:(A={},r.length&&r.forEach(o=>NT(A,o,n,!0)),NT(A,E,n)),ue(E)&&s.set(E,A),A}function NT(e,E,t,T=!1){const{mixins:r,extends:s}=E;s&&NT(e,s,t,!0),r&&r.forEach(n=>NT(e,n,t,!0));for(const n in E)if(!(T&&n==="expose")){const R=nO[n]||t&&t[n];e[n]=R?R(e[n],E[n]):E[n]}return e}const nO={data:Fs,props:vs,emits:vs,methods:Mt,computed:Mt,beforeCreate:ve,created:ve,beforeMount:ve,mounted:ve,beforeUpdate:ve,updated:ve,beforeDestroy:ve,beforeUnmount:ve,destroyed:ve,unmounted:ve,activated:ve,deactivated:ve,errorCaptured:ve,serverPrefetch:ve,components:Mt,directives:Mt,watch:oO,provide:Fs,inject:RO};function Fs(e,E){return E?e?function(){return He(re(e)?e.call(this,this):e,re(E)?E.call(this,this):E)}:E:e}function RO(e,E){return Mt(Sr(e),Sr(E))}function Sr(e){if(z(e)){const E={};for(let t=0;t<e.length;t++)E[e[t]]=e[t];return E}return e}function ve(e,E){return e?[...new Set([].concat(e,E))]:E}function Mt(e,E){return e?He(Object.create(null),e,E):E}function vs(e,E){return e?z(e)&&z(E)?[...new Set([...e,...E])]:He(Object.create(null),bs(e),bs(E??{})):E}function oO(e,E){if(!e)return E;if(!E)return e;const t=He(Object.create(null),e);for(const T in E)t[T]=ve(e[T],E[T]);return t}function Co(){return{app:null,config:{isNativeTag:wi,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let AO=0;function iO(e,E){return function(T,r=null){re(T)||(T=He({},T)),r!=null&&!ue(r)&&(r=null);const s=Co(),n=new WeakSet;let R=!1;const A=s.app={_uid:AO++,_component:T,_props:r,_container:null,_context:s,_instance:null,version:wO,get config(){return s.config},set config(o){},use(o,...i){return n.has(o)||(o&&re(o.install)?(n.add(o),o.install(A,...i)):re(o)&&(n.add(o),o(A,...i))),A},mixin(o){return s.mixins.includes(o)||s.mixins.push(o),A},component(o,i){return i?(s.components[o]=i,A):s.components[o]},directive(o,i){return i?(s.directives[o]=i,A):s.directives[o]},mount(o,i,a){if(!R){const I=X(T,r);return I.appContext=s,i&&E?E(I,o):e(I,o,a),R=!0,A._container=o,o.__vue_app__=A,qr(I.component)||I.component.proxy}},unmount(){R&&(e(null,A._container),delete A._container.__vue_app__)},provide(o,i){return s.provides[o]=i,A},runWithContext(o){xt=A;try{return o()}finally{xt=null}}};return A}}let xt=null;function SO(e,E){if(me){let t=me.provides;const T=me.parent&&me.parent.provides;T===t&&(t=me.provides=Object.create(T)),t[e]=E}}function gt(e,E,t=!1){const T=me||Be;if(T||xt){const r=T?T.parent==null?T.vnode.appContext&&T.vnode.appContext.provides:T.parent.provides:xt._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return t&&re(E)?E.call(T&&T.proxy):E}}function OO(){return!!(me||Be||xt)}function aO(e,E,t,T=!1){const r={},s={};ST(s,BT,1),e.propsDefaults=Object.create(null),co(e,E,r,s);for(const n in e.propsOptions[0])n in r||(r[n]=void 0);t?e.props=T?r:fS(r):e.type.props?e.props=r:e.props=s,e.attrs=s}function IO(e,E,t,T){const{props:r,attrs:s,vnode:{patchFlag:n}}=e,R=Oe(r),[A]=e.propsOptions;let o=!1;if((T||n>0)&&!(n&16)){if(n&8){const i=e.vnode.dynamicProps;for(let a=0;a<i.length;a++){let I=i[a];if(HT(e.emitsOptions,I))continue;const l=E[I];if(A)if(Se(s,I))l!==s[I]&&(s[I]=l,o=!0);else{const U=RE(I);r[U]=Or(A,R,U,l,e,!1)}else l!==s[I]&&(s[I]=l,o=!0)}}}else{co(e,E,r,s)&&(o=!0);let i;for(const a in R)(!E||!Se(E,a)&&((i=ot(a))===a||!Se(E,i)))&&(A?t&&(t[a]!==void 0||t[i]!==void 0)&&(r[a]=Or(A,R,a,void 0,e,!0)):delete r[a]);if(s!==R)for(const a in s)(!E||!Se(E,a))&&(delete s[a],o=!0)}o&&SE(e,"set","$attrs")}function co(e,E,t,T){const[r,s]=e.propsOptions;let n=!1,R;if(E)for(let A in E){if(rT(A))continue;const o=E[A];let i;r&&Se(r,i=RE(A))?!s||!s.includes(i)?t[i]=o:(R||(R={}))[i]=o:HT(e.emitsOptions,A)||(!(A in T)||o!==T[A])&&(T[A]=o,n=!0)}if(s){const A=Oe(t),o=R||ce;for(let i=0;i<s.length;i++){const a=s[i];t[a]=Or(r,A,a,o[a],e,!Se(o,a))}}return n}function Or(e,E,t,T,r,s){const n=e[t];if(n!=null){const R=Se(n,"default");if(R&&T===void 0){const A=n.default;if(n.type!==Function&&!n.skipFactory&&re(A)){const{propsDefaults:o}=r;t in o?T=o[t]:(st(r),T=o[t]=A.call(null,E),YE())}else T=A}n[0]&&(s&&!R?T=!1:n[1]&&(T===""||T===ot(t))&&(T=!0))}return T}function Lo(e,E,t=!1){const T=E.propsCache,r=T.get(e);if(r)return r;const s=e.props,n={},R=[];let A=!1;if(!re(e)){const i=a=>{A=!0;const[I,l]=Lo(a,E,!0);He(n,I),l&&R.push(...l)};!t&&E.mixins.length&&E.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}if(!s&&!A)return ue(e)&&T.set(e,ZE),ZE;if(z(s))for(let i=0;i<s.length;i++){const a=RE(s[i]);Ys(a)&&(n[a]=ce)}else if(s)for(const i in s){const a=RE(i);if(Ys(a)){const I=s[i],l=n[a]=z(I)||re(I)?{type:I}:He({},I);if(l){const U=ws(Boolean,l.type),B=ws(String,l.type);l[0]=U>-1,l[1]=B<0||U<B,(U>-1||Se(l,"default"))&&R.push(a)}}}const o=[n,R];return ue(e)&&T.set(e,o),o}function Ys(e){return e[0]!=="$"}function Vs(e){const E=e&&e.toString().match(/^\s*(function|class) (\w+)/);return E?E[2]:e===null?"null":""}function xs(e,E){return Vs(e)===Vs(E)}function ws(e,E){return z(E)?E.findIndex(t=>xs(t,e)):re(E)&&xs(E,e)?0:-1}const uo=e=>e[0]==="_"||e==="$stable",Kr=e=>z(e)?e.map(rE):[rE(e)],NO=(e,E,t)=>{if(E._n)return E;const T=ie((...r)=>Kr(E(...r)),t);return T._c=!1,T},po=(e,E,t)=>{const T=e._ctx;for(const r in e){if(uo(r))continue;const s=e[r];if(re(s))E[r]=NO(r,s,T);else if(s!=null){const n=Kr(s);E[r]=()=>n}}},fo=(e,E)=>{const t=Kr(E);e.slots.default=()=>t},lO=(e,E)=>{if(e.vnode.shapeFlag&32){const t=E._;t?(e.slots=Oe(E),ST(E,"_",t)):po(E,e.slots={})}else e.slots={},E&&fo(e,E);ST(e.slots,BT,1)},_O=(e,E,t)=>{const{vnode:T,slots:r}=e;let s=!0,n=ce;if(T.shapeFlag&32){const R=E._;R?t&&R===1?s=!1:(He(r,E),!t&&R===1&&delete r._):(s=!E.$stable,po(E,r)),n=E}else E&&(fo(e,E),n={default:1});if(s)for(const R in r)!uo(R)&&n[R]==null&&delete r[R]};function ar(e,E,t,T,r=!1){if(z(e)){e.forEach((I,l)=>ar(I,E&&(z(E)?E[l]:E),t,T,r));return}if(ht(T)&&!r)return;const s=T.shapeFlag&4?qr(T.component)||T.component.proxy:T.el,n=r?null:s,{i:R,r:A}=e,o=E&&E.r,i=R.refs===ce?R.refs={}:R.refs,a=R.setupState;if(o!=null&&o!==A&&(de(o)?(i[o]=null,Se(a,o)&&(a[o]=null)):Ue(o)&&(o.value=null)),re(A))fE(A,R,12,[n,i]);else{const I=de(A),l=Ue(A);if(I||l){const U=()=>{if(e.f){const B=I?Se(a,A)?a[A]:i[A]:A.value;r?z(B)&&yr(B,s):z(B)?B.includes(s)||B.push(s):I?(i[A]=[s],Se(a,A)&&(a[A]=i[A])):(A.value=[s],e.k&&(i[e.k]=A.value))}else I?(i[A]=n,Se(a,A)&&(a[A]=n)):l&&(A.value=n,e.k&&(i[e.k]=n))};n?(U.id=-1,xe(U,t)):U()}}}const xe=$S;function CO(e){return cO(e)}function cO(e,E){const t=rr();t.__VUE__=!0;const{insert:T,remove:r,patchProp:s,createElement:n,createText:R,createComment:A,setText:o,setElementText:i,parentNode:a,nextSibling:I,setScopeId:l=nE,insertStaticContent:U}=e,B=(S,N,c,D=null,P=null,m=null,F=!1,_=null,y=!!N.dynamicChildren)=>{if(S===N)return;S&&!pt(S,N)&&(D=hE(S),Pe(S,P,m,!0),S=null),N.patchFlag===-2&&(y=!1,N.dynamicChildren=null);const{type:f,ref:b,shapeFlag:V}=N;switch(f){case bT:x(S,N,c,D);break;case DE:$(S,N,c,D);break;case sT:S==null&&J(N,c,D,F);break;case Le:L(S,N,c,D,P,m,F,_,y);break;default:V&1?ee(S,N,c,D,P,m,F,_,y):V&6?v(S,N,c,D,P,m,F,_,y):(V&64||V&128)&&f.process(S,N,c,D,P,m,F,_,y,AE)}b!=null&&P&&ar(b,S&&S.ref,m,N||S,!N)},x=(S,N,c,D)=>{if(S==null)T(N.el=R(N.children),c,D);else{const P=N.el=S.el;N.children!==S.children&&o(P,N.children)}},$=(S,N,c,D)=>{S==null?T(N.el=A(N.children||""),c,D):N.el=S.el},J=(S,N,c,D)=>{[S.el,S.anchor]=U(S.children,N,c,D,S.el,S.anchor)},Q=({el:S,anchor:N},c,D)=>{let P;for(;S&&S!==N;)P=I(S),T(S,c,D),S=P;T(N,c,D)},H=({el:S,anchor:N})=>{let c;for(;S&&S!==N;)c=I(S),r(S),S=c;r(N)},ee=(S,N,c,D,P,m,F,_,y)=>{F=F||N.type==="svg",S==null?Ce(N,c,D,P,m,F,_,y):k(S,N,P,m,F,_,y)},Ce=(S,N,c,D,P,m,F,_)=>{let y,f;const{type:b,props:V,shapeFlag:w,transition:q,dirs:se}=S;if(y=S.el=n(S.type,m,V&&V.is,V),w&8?i(y,S.children):w&16&&Ee(S.children,y,null,D,P,m&&b!=="foreignObject",F,_),se&&gE(S,null,D,"created"),Ae(y,S,S.scopeId,F,D),V){for(const G in V)G!=="value"&&!rT(G)&&s(y,G,null,V[G],m,S.children,D,P,De);"value"in V&&s(y,"value",null,V.value),(f=V.onVnodeBeforeMount)&&TE(f,D,S)}se&&gE(S,null,D,"beforeMount");const M=LO(P,q);M&&q.beforeEnter(y),T(y,N,c),((f=V&&V.onVnodeMounted)||M||se)&&xe(()=>{f&&TE(f,D,S),M&&q.enter(y),se&&gE(S,null,D,"mounted")},P)},Ae=(S,N,c,D,P)=>{if(c&&l(S,c),D)for(let m=0;m<D.length;m++)l(S,D[m]);if(P){let m=P.subTree;if(N===m){const F=P.vnode;Ae(S,F,F.scopeId,F.slotScopeIds,P.parent)}}},Ee=(S,N,c,D,P,m,F,_,y=0)=>{for(let f=y;f<S.length;f++){const b=S[f]=_?CE(S[f]):rE(S[f]);B(null,b,N,c,D,P,m,F,_)}},k=(S,N,c,D,P,m,F)=>{const _=N.el=S.el;let{patchFlag:y,dynamicChildren:f,dirs:b}=N;y|=S.patchFlag&16;const V=S.props||ce,w=N.props||ce;let q;c&&mE(c,!1),(q=w.onVnodeBeforeUpdate)&&TE(q,c,N,S),b&&gE(N,S,c,"beforeUpdate"),c&&mE(c,!0);const se=P&&N.type!=="foreignObject";if(f?C(S.dynamicChildren,f,_,c,D,se,m):F||g(S,N,_,null,c,D,se,m,!1),y>0){if(y&16)p(_,N,V,w,c,D,P);else if(y&2&&V.class!==w.class&&s(_,"class",null,w.class,P),y&4&&s(_,"style",V.style,w.style,P),y&8){const M=N.dynamicProps;for(let G=0;G<M.length;G++){const W=M[G],Te=V[W],pe=w[W];(pe!==Te||W==="value")&&s(_,W,Te,pe,P,S.children,c,D,De)}}y&1&&S.children!==N.children&&i(_,N.children)}else!F&&f==null&&p(_,N,V,w,c,D,P);((q=w.onVnodeUpdated)||b)&&xe(()=>{q&&TE(q,c,N,S),b&&gE(N,S,c,"updated")},D)},C=(S,N,c,D,P,m,F)=>{for(let _=0;_<N.length;_++){const y=S[_],f=N[_],b=y.el&&(y.type===Le||!pt(y,f)||y.shapeFlag&70)?a(y.el):c;B(y,f,b,null,D,P,m,F,!0)}},p=(S,N,c,D,P,m,F)=>{if(c!==D){if(c!==ce)for(const _ in c)!rT(_)&&!(_ in D)&&s(S,_,c[_],null,F,N.children,P,m,De);for(const _ in D){if(rT(_))continue;const y=D[_],f=c[_];y!==f&&_!=="value"&&s(S,_,f,y,F,N.children,P,m,De)}"value"in D&&s(S,"value",c.value,D.value)}},L=(S,N,c,D,P,m,F,_,y)=>{const f=N.el=S?S.el:R(""),b=N.anchor=S?S.anchor:R("");let{patchFlag:V,dynamicChildren:w,slotScopeIds:q}=N;q&&(_=_?_.concat(q):q),S==null?(T(f,c,D),T(b,c,D),Ee(N.children,c,b,P,m,F,_,y)):V>0&&V&64&&w&&S.dynamicChildren?(C(S.dynamicChildren,w,c,P,m,F,_),(N.key!=null||P&&N===P.subTree)&&Jr(S,N,!0)):g(S,N,c,b,P,m,F,_,y)},v=(S,N,c,D,P,m,F,_,y)=>{N.slotScopeIds=_,S==null?N.shapeFlag&512?P.ctx.activate(N,c,D,F,y):K(N,c,D,P,m,F,y):le(S,N,y)},K=(S,N,c,D,P,m,F)=>{const _=S.component=HO(S,D,P);if(Oo(S)&&(_.ctx.renderer=AE),yO(_),_.asyncDep){if(P&&P.registerDep(_,Z),!S.el){const y=_.subTree=X(DE);$(null,y,N,c)}return}Z(_,S,N,c,P,m,F)},le=(S,N,c)=>{const D=N.component=S.component;if(VS(S,N,c))if(D.asyncDep&&!D.asyncResolved){u(D,N,c);return}else D.next=N,yS(D.update),D.update();else N.el=S.el,D.vnode=N},Z=(S,N,c,D,P,m,F)=>{const _=()=>{if(S.isMounted){let{next:b,bu:V,u:w,parent:q,vnode:se}=S,M=b,G;mE(S,!1),b?(b.el=se.el,u(S,b,F)):b=se,V&&KT(V),(G=b.props&&b.props.onVnodeBeforeUpdate)&&TE(G,q,b,se),mE(S,!0);const W=kT(S),Te=S.subTree;S.subTree=W,B(Te,W,a(Te.el),hE(Te),S,P,m),b.el=W.el,M===null&&xS(S,W.el),w&&xe(w,P),(G=b.props&&b.props.onVnodeUpdated)&&xe(()=>TE(G,q,b,se),P)}else{let b;const{el:V,props:w}=N,{bm:q,m:se,parent:M}=S,G=ht(N);if(mE(S,!1),q&&KT(q),!G&&(b=w&&w.onVnodeBeforeMount)&&TE(b,M,N),mE(S,!0),V&&ut){const W=()=>{S.subTree=kT(S),ut(V,S.subTree,S,P,null)};G?N.type.__asyncLoader().then(()=>!S.isUnmounted&&W()):W()}else{const W=S.subTree=kT(S);B(null,W,c,D,S,P,m),N.el=W.el}if(se&&xe(se,P),!G&&(b=w&&w.onVnodeMounted)){const W=N;xe(()=>TE(b,M,W),P)}(N.shapeFlag&256||M&&ht(M.vnode)&&M.vnode.shapeFlag&256)&&S.a&&xe(S.a,P),S.isMounted=!0,N=c=D=null}},y=S.effect=new Fr(_,()=>Wr(f),S.scope),f=S.update=()=>y.run();f.id=S.uid,mE(S,!0),f()},u=(S,N,c)=>{N.component=S;const D=S.vnode.props;S.vnode=N,S.next=null,IO(S,N.props,D,c),_O(S,N.children,c),At(),ms(S),it()},g=(S,N,c,D,P,m,F,_,y=!1)=>{const f=S&&S.children,b=S?S.shapeFlag:0,V=N.children,{patchFlag:w,shapeFlag:q}=N;if(w>0){if(w&128){ae(f,V,c,D,P,m,F,_,y);return}else if(w&256){te(f,V,c,D,P,m,F,_,y);return}}q&8?(b&16&&De(f,P,m),V!==f&&i(c,V)):b&16?q&16?ae(f,V,c,D,P,m,F,_,y):De(f,P,m,!0):(b&8&&i(c,""),q&16&&Ee(V,c,D,P,m,F,_,y))},te=(S,N,c,D,P,m,F,_,y)=>{S=S||ZE,N=N||ZE;const f=S.length,b=N.length,V=Math.min(f,b);let w;for(w=0;w<V;w++){const q=N[w]=y?CE(N[w]):rE(N[w]);B(S[w],q,c,null,P,m,F,_,y)}f>b?De(S,P,m,!0,!1,V):Ee(N,c,D,P,m,F,_,y,V)},ae=(S,N,c,D,P,m,F,_,y)=>{let f=0;const b=N.length;let V=S.length-1,w=b-1;for(;f<=V&&f<=w;){const q=S[f],se=N[f]=y?CE(N[f]):rE(N[f]);if(pt(q,se))B(q,se,c,null,P,m,F,_,y);else break;f++}for(;f<=V&&f<=w;){const q=S[V],se=N[w]=y?CE(N[w]):rE(N[w]);if(pt(q,se))B(q,se,c,null,P,m,F,_,y);else break;V--,w--}if(f>V){if(f<=w){const q=w+1,se=q<b?N[q].el:D;for(;f<=w;)B(null,N[f]=y?CE(N[f]):rE(N[f]),c,se,P,m,F,_,y),f++}}else if(f>w)for(;f<=V;)Pe(S[f],P,m,!0),f++;else{const q=f,se=f,M=new Map;for(f=se;f<=w;f++){const We=N[f]=y?CE(N[f]):rE(N[f]);We.key!=null&&M.set(We.key,f)}let G,W=0;const Te=w-se+1;let pe=!1,Ke=0;const GE=new Array(Te);for(f=0;f<Te;f++)GE[f]=0;for(f=q;f<=V;f++){const We=S[f];if(W>=Te){Pe(We,P,m,!0);continue}let tE;if(We.key!=null)tE=M.get(We.key);else for(G=se;G<=w;G++)if(GE[G-se]===0&&pt(We,N[G])){tE=G;break}tE===void 0?Pe(We,P,m,!0):(GE[tE-se]=f+1,tE>=Ke?Ke=tE:pe=!0,B(We,N[tE],c,null,P,m,F,_,y),W++)}const jt=pe?uO(GE):ZE;for(G=jt.length-1,f=Te-1;f>=0;f--){const We=se+f,tE=N[We],ls=We+1<b?N[We+1].el:D;GE[f]===0?B(null,tE,c,ls,P,m,F,_,y):pe&&(G<0||f!==jt[G]?Ie(tE,c,ls,2):G--)}}},Ie=(S,N,c,D,P=null)=>{const{el:m,type:F,transition:_,children:y,shapeFlag:f}=S;if(f&6){Ie(S.component.subTree,N,c,D);return}if(f&128){S.suspense.move(N,c,D);return}if(f&64){F.move(S,N,c,AE);return}if(F===Le){T(m,N,c);for(let V=0;V<y.length;V++)Ie(y[V],N,c,D);T(S.anchor,N,c);return}if(F===sT){Q(S,N,c);return}if(D!==2&&f&1&&_)if(D===0)_.beforeEnter(m),T(m,N,c),xe(()=>_.enter(m),P);else{const{leave:V,delayLeave:w,afterLeave:q}=_,se=()=>T(m,N,c),M=()=>{V(m,()=>{se(),q&&q()})};w?w(m,se,M):M()}else T(m,N,c)},Pe=(S,N,c,D=!1,P=!1)=>{const{type:m,props:F,ref:_,children:y,dynamicChildren:f,shapeFlag:b,patchFlag:V,dirs:w}=S;if(_!=null&&ar(_,null,c,S,!0),b&256){N.ctx.deactivate(S);return}const q=b&1&&w,se=!ht(S);let M;if(se&&(M=F&&F.onVnodeBeforeUnmount)&&TE(M,N,S),b&6)Fe(S.component,c,D);else{if(b&128){S.suspense.unmount(c,D);return}q&&gE(S,null,N,"beforeUnmount"),b&64?S.type.remove(S,N,c,P,AE,D):f&&(m!==Le||V>0&&V&64)?De(f,N,c,!1,!0):(m===Le&&V&384||!P&&b&16)&&De(y,N,c),D&&ke(S)}(se&&(M=F&&F.onVnodeUnmounted)||q)&&xe(()=>{M&&TE(M,N,S),q&&gE(S,null,N,"unmounted")},c)},ke=S=>{const{type:N,el:c,anchor:D,transition:P}=S;if(N===Le){$E(c,D);return}if(N===sT){H(S);return}const m=()=>{r(c),P&&!P.persisted&&P.afterLeave&&P.afterLeave()};if(S.shapeFlag&1&&P&&!P.persisted){const{leave:F,delayLeave:_}=P,y=()=>F(c,m);_?_(S.el,m,y):y()}else m()},$E=(S,N)=>{let c;for(;S!==N;)c=I(S),r(S),S=c;r(N)},Fe=(S,N,c)=>{const{bum:D,scope:P,update:m,subTree:F,um:_}=S;D&&KT(D),P.stop(),m&&(m.active=!1,Pe(F,S,N,c)),_&&xe(_,N),xe(()=>{S.isUnmounted=!0},N),N&&N.pendingBranch&&!N.isUnmounted&&S.asyncDep&&!S.asyncResolved&&S.suspenseId===N.pendingId&&(N.deps--,N.deps===0&&N.resolve())},De=(S,N,c,D=!1,P=!1,m=0)=>{for(let F=m;F<S.length;F++)Pe(S[F],N,c,D,P)},hE=S=>S.shapeFlag&6?hE(S.component.subTree):S.shapeFlag&128?S.suspense.next():I(S.anchor||S.el),ct=(S,N,c)=>{S==null?N._vnode&&Pe(N._vnode,null,null,!0):B(N._vnode||null,S,N,null,null,null,c),ms(),so(),N._vnode=S},AE={p:B,um:Pe,m:Ie,r:ke,mt:K,mc:Ee,pc:g,pbc:C,n:hE,o:e};let Lt,ut;return E&&([Lt,ut]=E(AE)),{render:ct,hydrate:Lt,createApp:iO(ct,Lt)}}function mE({effect:e,update:E},t){e.allowRecurse=E.allowRecurse=t}function LO(e,E){return(!e||e&&!e.pendingBranch)&&E&&!E.persisted}function Jr(e,E,t=!1){const T=e.children,r=E.children;if(z(T)&&z(r))for(let s=0;s<T.length;s++){const n=T[s];let R=r[s];R.shapeFlag&1&&!R.dynamicChildren&&((R.patchFlag<=0||R.patchFlag===32)&&(R=r[s]=CE(r[s]),R.el=n.el),t||Jr(n,R)),R.type===bT&&(R.el=n.el)}}function uO(e){const E=e.slice(),t=[0];let T,r,s,n,R;const A=e.length;for(T=0;T<A;T++){const o=e[T];if(o!==0){if(r=t[t.length-1],e[r]<o){E[T]=r,t.push(T);continue}for(s=0,n=t.length-1;s<n;)R=s+n>>1,e[t[R]]<o?s=R+1:n=R;o<e[t[s]]&&(s>0&&(E[T]=t[s-1]),t[s]=T)}}for(s=t.length,n=t[s-1];s-- >0;)t[s]=n,n=E[n];return t}const pO=e=>e.__isTeleport,mt=e=>e&&(e.disabled||e.disabled===""),Ws=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ir=(e,E)=>{const t=e&&e.to;return de(t)?E?E(t):null:t},fO={name:"Teleport",__isTeleport:!0,process(e,E,t,T,r,s,n,R,A,o){const{mc:i,pc:a,pbc:I,o:{insert:l,querySelector:U,createText:B,createComment:x}}=o,$=mt(E.props);let{shapeFlag:J,children:Q,dynamicChildren:H}=E;if(e==null){const ee=E.el=B(""),Ce=E.anchor=B("");l(ee,t,T),l(Ce,t,T);const Ae=E.target=Ir(E.props,U),Ee=E.targetAnchor=B("");Ae&&(l(Ee,Ae),n=n||Ws(Ae));const k=(C,p)=>{J&16&&i(Q,C,p,r,s,n,R,A)};$?k(t,Ce):Ae&&k(Ae,Ee)}else{E.el=e.el;const ee=E.anchor=e.anchor,Ce=E.target=e.target,Ae=E.targetAnchor=e.targetAnchor,Ee=mt(e.props),k=Ee?t:Ce,C=Ee?ee:Ae;if(n=n||Ws(Ce),H?(I(e.dynamicChildren,H,k,r,s,n,R),Jr(e,E,!0)):A||a(e,E,k,C,r,s,n,R,!1),$)Ee?E.props&&e.props&&E.props.to!==e.props.to&&(E.props.to=e.props.to):TT(E,t,ee,o,1);else if((E.props&&E.props.to)!==(e.props&&e.props.to)){const p=E.target=Ir(E.props,U);p&&TT(E,p,null,o,0)}else Ee&&TT(E,Ce,Ae,o,1)}Po(E)},remove(e,E,t,T,{um:r,o:{remove:s}},n){const{shapeFlag:R,children:A,anchor:o,targetAnchor:i,target:a,props:I}=e;if(a&&s(i),n&&s(o),R&16){const l=n||!mt(I);for(let U=0;U<A.length;U++){const B=A[U];r(B,E,t,l,!!B.dynamicChildren)}}},move:TT,hydrate:PO};function TT(e,E,t,{o:{insert:T},m:r},s=2){s===0&&T(e.targetAnchor,E,t);const{el:n,anchor:R,shapeFlag:A,children:o,props:i}=e,a=s===2;if(a&&T(n,E,t),(!a||mt(i))&&A&16)for(let I=0;I<o.length;I++)r(o[I],E,t,2);a&&T(R,E,t)}function PO(e,E,t,T,r,s,{o:{nextSibling:n,parentNode:R,querySelector:A}},o){const i=E.target=Ir(E.props,A);if(i){const a=i._lpa||i.firstChild;if(E.shapeFlag&16)if(mt(E.props))E.anchor=o(n(e),E,R(e),t,T,r,s),E.targetAnchor=a;else{E.anchor=n(e);let I=a;for(;I;)if(I=n(I),I&&I.nodeType===8&&I.data==="teleport anchor"){E.targetAnchor=I,i._lpa=E.targetAnchor&&n(E.targetAnchor);break}o(a,E,i,t,T,r,s)}Po(E)}return E.anchor&&n(E.anchor)}const DO=fO;function Po(e){const E=e.ctx;if(E&&E.ut){let t=e.children[0].el;for(;t&&t!==e.targetAnchor;)t.nodeType===1&&t.setAttribute("data-v-owner",E.uid),t=t.nextSibling;E.ut()}}const Le=Symbol.for("v-fgt"),bT=Symbol.for("v-txt"),DE=Symbol.for("v-cmt"),sT=Symbol.for("v-stc"),Ht=[];let Ze=null;function h(e=!1){Ht.push(Ze=e?null:[])}function dO(){Ht.pop(),Ze=Ht[Ht.length-1]||null}let wt=1;function Xs(e){wt+=e}function Do(e){return e.dynamicChildren=wt>0?Ze||ZE:null,dO(),wt>0&&Ze&&Ze.push(e),e}function Y(e,E,t,T,r,s){return Do(O(e,E,t,T,r,s,!0))}function fe(e,E,t,T,r){return Do(X(e,E,t,T,r,!0))}function lT(e){return e?e.__v_isVNode===!0:!1}function pt(e,E){return e.type===E.type&&e.key===E.key}const BT="__vInternal",Mo=({key:e})=>e??null,nT=({ref:e,ref_key:E,ref_for:t})=>(typeof e=="number"&&(e=""+e),e!=null?de(e)||Ue(e)||re(e)?{i:Be,r:e,k:E,f:!!t}:e:null);function O(e,E=null,t=null,T=0,r=null,s=e===Le?0:1,n=!1,R=!1){const A={__v_isVNode:!0,__v_skip:!0,type:e,props:E,key:E&&Mo(E),ref:E&&nT(E),scopeId:oo,slotScopeIds:null,children:t,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:T,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Be};return R?(kr(A,t),s&128&&e.normalize(A)):t&&(A.shapeFlag|=de(t)?8:16),wt>0&&!n&&Ze&&(A.patchFlag>0||s&6)&&A.patchFlag!==32&&Ze.push(A),A}const X=MO;function MO(e,E=null,t=null,T=0,r=null,s=!1){if((!e||e===wS)&&(e=DE),lT(e)){const R=rt(e,E,!0);return t&&kr(R,t),wt>0&&!s&&Ze&&(R.shapeFlag&6?Ze[Ze.indexOf(e)]=R:Ze.push(R)),R.patchFlag|=-2,R}if(YO(e)&&(e=e.__vccOpts),E){E=UO(E);let{class:R,style:A}=E;R&&!de(R)&&(E.class=$e(R)),ue(A)&&(ZR(A)&&!z(A)&&(A=He({},A)),E.style=hT(A))}const n=de(e)?1:XS(e)?128:pO(e)?64:ue(e)?4:re(e)?2:0;return O(e,E,t,T,r,n,s,!0)}function UO(e){return e?ZR(e)||BT in e?He({},e):e:null}function rt(e,E,t=!1){const{props:T,ref:r,patchFlag:s,children:n}=e,R=E?GO(T||{},E):T;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:R,key:R&&Mo(R),ref:E&&E.ref?t&&r?z(r)?r.concat(nT(E)):[r,nT(E)]:nT(E):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:n,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:E&&e.type!==Le?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&rt(e.ssContent),ssFallback:e.ssFallback&&rt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ye(e=" ",E=0){return X(bT,null,e,E)}function hO(e,E){const t=X(sT,null,e);return t.staticCount=E,t}function oe(e="",E=!1){return E?(h(),fe(DE,null,e)):X(DE,null,e)}function rE(e){return e==null||typeof e=="boolean"?X(DE):z(e)?X(Le,null,e.slice()):typeof e=="object"?CE(e):X(bT,null,String(e))}function CE(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:rt(e)}function kr(e,E){let t=0;const{shapeFlag:T}=e;if(E==null)E=null;else if(z(E))t=16;else if(typeof E=="object")if(T&65){const r=E.default;r&&(r._c&&(r._d=!1),kr(e,r()),r._c&&(r._d=!0));return}else{t=32;const r=E._;!r&&!(BT in E)?E._ctx=Be:r===3&&Be&&(Be.slots._===1?E._=1:(E._=2,e.patchFlag|=1024))}else re(E)?(E={default:E,_ctx:Be},t=32):(E=String(E),T&64?(t=16,E=[Ye(E)]):t=8);e.children=E,e.shapeFlag|=t}function GO(...e){const E={};for(let t=0;t<e.length;t++){const T=e[t];for(const r in T)if(r==="class")E.class!==T.class&&(E.class=$e([E.class,T.class]));else if(r==="style")E.style=hT([E.style,T.style]);else if(DT(r)){const s=E[r],n=T[r];n&&s!==n&&!(z(s)&&s.includes(n))&&(E[r]=s?[].concat(s,n):n)}else r!==""&&(E[r]=T[r])}return E}function TE(e,E,t,T=null){eE(e,E,7,[t,T])}const gO=Co();let mO=0;function HO(e,E,t){const T=e.type,r=(E?E.appContext:e.appContext)||gO,s={uid:mO++,vnode:e,type:T,parent:E,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new vR(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:E?E.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Lo(T,r),emitsOptions:Ro(T,r),emit:null,emitted:null,propsDefaults:ce,inheritAttrs:T.inheritAttrs,ctx:ce,data:ce,props:ce,attrs:ce,slots:ce,refs:ce,setupState:ce,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:t,suspenseId:t?t.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=E?E.root:s,s.emit=FS.bind(null,s),e.ce&&e.ce(s),s}let me=null,jr,JE,$s="__VUE_INSTANCE_SETTERS__";(JE=rr()[$s])||(JE=rr()[$s]=[]),JE.push(e=>me=e),jr=e=>{JE.length>1?JE.forEach(E=>E(e)):JE[0](e)};const st=e=>{jr(e),e.scope.on()},YE=()=>{me&&me.scope.off(),jr(null)};function Uo(e){return e.vnode.shapeFlag&4}let Wt=!1;function yO(e,E=!1){Wt=E;const{props:t,children:T}=e.vnode,r=Uo(e);aO(e,t,r,E),lO(e,T);const s=r?bO(e,E):void 0;return Wt=!1,s}function bO(e,E){const t=e.type;e.accessCache=Object.create(null),e.proxy=gT(new Proxy(e.ctx,TO));const{setup:T}=t;if(T){const r=e.setupContext=T.length>1?FO(e):null;st(e),At();const s=fE(T,e,0,[e.props,r]);if(it(),YE(),HR(s)){if(s.then(YE,YE),E)return s.then(n=>{Ks(e,n,E)}).catch(n=>{mT(n,e,0)});e.asyncDep=s}else Ks(e,s,E)}else ho(e,E)}function Ks(e,E,t){re(E)?e.type.__ssrInlineRender?e.ssrRender=E:e.render=E:ue(E)&&(e.setupState=Eo(E)),ho(e,t)}let Js;function ho(e,E,t){const T=e.type;if(!e.render){if(!E&&Js&&!T.render){const r=T.template||$r(e).template;if(r){const{isCustomElement:s,compilerOptions:n}=e.appContext.config,{delimiters:R,compilerOptions:A}=T,o=He(He({isCustomElement:s,delimiters:R},n),A);T.render=Js(r,o)}}e.render=T.render||nE}{st(e),At();try{rO(e)}finally{it(),YE()}}}function BO(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(E,t){return we(e,"get","$attrs"),E[t]}}))}function FO(e){const E=t=>{e.exposed=t||{}};return{get attrs(){return BO(e)},slots:e.slots,emit:e.emit,expose:E}}function qr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Eo(gT(e.exposed)),{get(E,t){if(t in E)return E[t];if(t in Gt)return Gt[t](e)},has(E,t){return t in E||t in Gt}}))}function vO(e,E=!0){return re(e)?e.displayName||e.name:e.name||E&&e.__name}function YO(e){return re(e)&&"__vccOpts"in e}const ze=(e,E)=>gS(e,E,Wt);function Xt(e,E,t){const T=arguments.length;return T===2?ue(E)&&!z(E)?lT(E)?X(e,null,[E]):X(e,E):X(e,null,E):(T>3?t=Array.prototype.slice.call(arguments,2):T===3&&lT(t)&&(t=[t]),X(e,E,t))}const VO=Symbol.for("v-scx"),xO=()=>gt(VO),wO="3.3.13",WO="http://www.w3.org/2000/svg",BE=typeof document<"u"?document:null,ks=BE&&BE.createElement("template"),XO={insert:(e,E,t)=>{E.insertBefore(e,t||null)},remove:e=>{const E=e.parentNode;E&&E.removeChild(e)},createElement:(e,E,t,T)=>{const r=E?BE.createElementNS(WO,e):BE.createElement(e,t?{is:t}:void 0);return e==="select"&&T&&T.multiple!=null&&r.setAttribute("multiple",T.multiple),r},createText:e=>BE.createTextNode(e),createComment:e=>BE.createComment(e),setText:(e,E)=>{e.nodeValue=E},setElementText:(e,E)=>{e.textContent=E},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>BE.querySelector(e),setScopeId(e,E){e.setAttribute(E,"")},insertStaticContent(e,E,t,T,r,s){const n=t?t.previousSibling:E.lastChild;if(r&&(r===s||r.nextSibling))for(;E.insertBefore(r.cloneNode(!0),t),!(r===s||!(r=r.nextSibling)););else{ks.innerHTML=T?`<svg>${e}</svg>`:e;const R=ks.content;if(T){const A=R.firstChild;for(;A.firstChild;)R.appendChild(A.firstChild);R.removeChild(A)}E.insertBefore(R,t)}return[n?n.nextSibling:E.firstChild,t?t.previousSibling:E.lastChild]}},$O=Symbol("_vtc");function KO(e,E,t){const T=e[$O];T&&(E=(E?[E,...T]:[...T]).join(" ")),E==null?e.removeAttribute("class"):t?e.setAttribute("class",E):e.className=E}const JO=Symbol("_vod"),kO=Symbol("");function jO(e,E,t){const T=e.style,r=de(t);if(t&&!r){if(E&&!de(E))for(const s in E)t[s]==null&&Nr(T,s,"");for(const s in t)Nr(T,s,t[s])}else{const s=T.display;if(r){if(E!==t){const n=T[kO];n&&(t+=";"+n),T.cssText=t}}else E&&e.removeAttribute("style");JO in e&&(T.display=s)}}const js=/\s*!important$/;function Nr(e,E,t){if(z(t))t.forEach(T=>Nr(e,E,T));else if(t==null&&(t=""),E.startsWith("--"))e.setProperty(E,t);else{const T=qO(e,E);js.test(t)?e.setProperty(ot(T),t.replace(js,""),"important"):e[T]=t}}const qs=["Webkit","Moz","ms"],qT={};function qO(e,E){const t=qT[E];if(t)return t;let T=RE(E);if(T!=="filter"&&T in e)return qT[E]=T;T=UT(T);for(let r=0;r<qs.length;r++){const s=qs[r]+T;if(s in e)return qT[E]=s}return E}const Qs="http://www.w3.org/1999/xlink";function QO(e,E,t,T,r){if(T&&E.startsWith("xlink:"))t==null?e.removeAttributeNS(Qs,E.slice(6,E.length)):e.setAttributeNS(Qs,E,t);else{const s=zi(E);t==null||s&&!BR(t)?e.removeAttribute(E):e.setAttribute(E,s?"":t)}}function ZO(e,E,t,T,r,s,n){if(E==="innerHTML"||E==="textContent"){T&&n(T,r,s),e[E]=t??"";return}const R=e.tagName;if(E==="value"&&R!=="PROGRESS"&&!R.includes("-")){e._value=t;const o=R==="OPTION"?e.getAttribute("value"):e.value,i=t??"";o!==i&&(e.value=i),t==null&&e.removeAttribute(E);return}let A=!1;if(t===""||t==null){const o=typeof e[E];o==="boolean"?t=BR(t):t==null&&o==="string"?(t="",A=!0):o==="number"&&(t=0,A=!0)}try{e[E]=t}catch{}A&&e.removeAttribute(E)}function zO(e,E,t,T){e.addEventListener(E,t,T)}function ea(e,E,t,T){e.removeEventListener(E,t,T)}const Zs=Symbol("_vei");function Ea(e,E,t,T,r=null){const s=e[Zs]||(e[Zs]={}),n=s[E];if(T&&n)n.value=T;else{const[R,A]=ta(E);if(T){const o=s[E]=sa(T,r);zO(e,R,o,A)}else n&&(ea(e,R,n,A),s[E]=void 0)}}const zs=/(?:Once|Passive|Capture)$/;function ta(e){let E;if(zs.test(e)){E={};let T;for(;T=e.match(zs);)e=e.slice(0,e.length-T[0].length),E[T[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ot(e.slice(2)),E]}let QT=0;const Ta=Promise.resolve(),ra=()=>QT||(Ta.then(()=>QT=0),QT=Date.now());function sa(e,E){const t=T=>{if(!T._vts)T._vts=Date.now();else if(T._vts<=t.attached)return;eE(na(T,t.value),E,5,[T])};return t.value=e,t.attached=ra(),t}function na(e,E){if(z(E)){const t=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{t.call(e),e._stopped=!0},E.map(T=>r=>!r._stopped&&T&&T(r))}else return E}const en=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ra=(e,E,t,T,r=!1,s,n,R,A)=>{E==="class"?KO(e,T,r):E==="style"?jO(e,t,T):DT(E)?Hr(E)||Ea(e,E,t,T,n):(E[0]==="."?(E=E.slice(1),!0):E[0]==="^"?(E=E.slice(1),!1):oa(e,E,T,r))?ZO(e,E,T,s,n,R,A):(E==="true-value"?e._trueValue=T:E==="false-value"&&(e._falseValue=T),QO(e,E,T,r))};function oa(e,E,t,T){if(T)return!!(E==="innerHTML"||E==="textContent"||E in e&&en(E)&&re(t));if(E==="spellcheck"||E==="draggable"||E==="translate"||E==="form"||E==="list"&&e.tagName==="INPUT"||E==="type"&&e.tagName==="TEXTAREA")return!1;if(E==="width"||E==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return en(E)&&de(t)?!1:E in e}const Aa=He({patchProp:Ra},XO);let En;function ia(){return En||(En=CO(Aa))}const Sa=(...e)=>{const E=ia().createApp(...e),{mount:t}=E;return E.mount=T=>{const r=Oa(T);if(!r)return;const s=E._component;!re(s)&&!s.render&&!s.template&&(s.template=r.innerHTML),r.innerHTML="";const n=t(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),n},E};function Oa(e){return de(e)?document.querySelector(e):e}var tn=Me({props:{code:{type:String,required:!0},language:{type:String,default:""},autodetect:{type:Boolean,default:!0},ignoreIllegals:{type:Boolean,default:!0}},setup:function(e){var E=LE(e.language);Et(function(){return e.language},function(r){E.value=r});var t=ze(function(){return e.autodetect||!E.value}),T=ze(function(){return!t.value&&!Ut.getLanguage(E.value)});return{className:ze(function(){return T.value?"":"hljs "+E.value}),highlightedCode:ze(function(){var r;if(T.value)return console.warn('The language "'+E.value+'" you specified could not be found.'),e.code.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'");if(t.value){var s=Ut.highlightAuto(e.code);return E.value=(r=s.language)!==null&&r!==void 0?r:"",s.value}return(s=Ut.highlight(e.code,{language:E.value,ignoreIllegals:e.ignoreIllegals})).value})}},render:function(){return Xt("pre",{},[Xt("code",{class:this.className,innerHTML:this.highlightedCode})])}}),aa={install:function(e){e.component("highlightjs",tn)},component:tn},Ia=!1;/*!
|
1
|
+
var KA=Object.defineProperty;var JA=(e,E,t)=>E in e?KA(e,E,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[E]=t;var je=(e,E,t)=>(JA(e,typeof E!="symbol"?E+"":E,t),t);var qE=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fT(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function uR(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(E=>{const t=e[E],T=typeof t;(T==="object"||T==="function")&&!Object.isFrozen(t)&&uR(t)}),e}class Cs{constructor(E){E.data===void 0&&(E.data={}),this.data=E.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function pR(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function cE(e,...E){const t=Object.create(null);for(const T in e)t[T]=e[T];return E.forEach(function(T){for(const r in T)t[r]=T[r]}),t}const kA="</span>",cs=e=>!!e.scope,jA=(e,{prefix:E})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const t=e.split(".");return[`${E}${t.shift()}`,...t.map((T,r)=>`${T}${"_".repeat(r+1)}`)].join(" ")}return`${E}${e}`};class qA{constructor(E,t){this.buffer="",this.classPrefix=t.classPrefix,E.walk(this)}addText(E){this.buffer+=pR(E)}openNode(E){if(!cs(E))return;const t=jA(E.scope,{prefix:this.classPrefix});this.span(t)}closeNode(E){cs(E)&&(this.buffer+=kA)}value(){return this.buffer}span(E){this.buffer+=`<span class="${E}">`}}const Ls=(e={})=>{const E={children:[]};return Object.assign(E,e),E};class Ur{constructor(){this.rootNode=Ls(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(E){this.top.children.push(E)}openNode(E){const t=Ls({scope:E});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(E){return this.constructor._walk(E,this.rootNode)}static _walk(E,t){return typeof t=="string"?E.addText(t):t.children&&(E.openNode(t),t.children.forEach(T=>this._walk(E,T)),E.closeNode(t)),E}static _collapse(E){typeof E!="string"&&E.children&&(E.children.every(t=>typeof t=="string")?E.children=[E.children.join("")]:E.children.forEach(t=>{Ur._collapse(t)}))}}class QA extends Ur{constructor(E){super(),this.options=E}addText(E){E!==""&&this.add(E)}startScope(E){this.openNode(E)}endScope(){this.closeNode()}__addSublanguage(E,t){const T=E.root;t&&(T.scope=`language:${t}`),this.add(T)}toHTML(){return new qA(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Bt(e){return e?typeof e=="string"?e:e.source:null}function fR(e){return wE("(?=",e,")")}function ZA(e){return wE("(?:",e,")*")}function zA(e){return wE("(?:",e,")?")}function wE(...e){return e.map(t=>Bt(t)).join("")}function ei(e){const E=e[e.length-1];return typeof E=="object"&&E.constructor===Object?(e.splice(e.length-1,1),E):{}}function hr(...e){return"("+(ei(e).capture?"":"?:")+e.map(T=>Bt(T)).join("|")+")"}function PR(e){return new RegExp(e.toString()+"|").exec("").length-1}function Ei(e,E){const t=e&&e.exec(E);return t&&t.index===0}const ti=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Gr(e,{joinWith:E}){let t=0;return e.map(T=>{t+=1;const r=t;let s=Bt(T),n="";for(;s.length>0;){const R=ti.exec(s);if(!R){n+=s;break}n+=s.substring(0,R.index),s=s.substring(R.index+R[0].length),R[0][0]==="\\"&&R[1]?n+="\\"+String(Number(R[1])+r):(n+=R[0],R[0]==="("&&t++)}return n}).map(T=>`(${T})`).join(E)}const Ti=/\b\B/,DR="[a-zA-Z]\\w*",gr="[a-zA-Z_]\\w*",dR="\\b\\d+(\\.\\d+)?",MR="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",UR="\\b(0b[01]+)",ri="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",si=(e={})=>{const E=/^#![ ]*\//;return e.binary&&(e.begin=wE(E,/.*\b/,e.binary,/\b.*/)),cE({scope:"meta",begin:E,end:/$/,relevance:0,"on:begin":(t,T)=>{t.index!==0&&T.ignoreMatch()}},e)},Ft={begin:"\\\\[\\s\\S]",relevance:0},ni={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Ft]},Ri={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Ft]},oi={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},PT=function(e,E,t={}){const T=cE({scope:"comment",begin:e,end:E,contains:[]},t);T.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const r=hr("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return T.contains.push({begin:wE(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),T},Ai=PT("//","$"),ii=PT("/\\*","\\*/"),Si=PT("#","$"),Oi={scope:"number",begin:dR,relevance:0},ai={scope:"number",begin:MR,relevance:0},Ii={scope:"number",begin:UR,relevance:0},Ni={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Ft,{begin:/\[/,end:/\]/,relevance:0,contains:[Ft]}]},li={scope:"title",begin:DR,relevance:0},_i={scope:"title",begin:gr,relevance:0},Ci={begin:"\\.\\s*"+gr,relevance:0},ci=function(e){return Object.assign(e,{"on:begin":(E,t)=>{t.data._beginMatch=E[1]},"on:end":(E,t)=>{t.data._beginMatch!==E[1]&&t.ignoreMatch()}})};var qt=Object.freeze({__proto__:null,APOS_STRING_MODE:ni,BACKSLASH_ESCAPE:Ft,BINARY_NUMBER_MODE:Ii,BINARY_NUMBER_RE:UR,COMMENT:PT,C_BLOCK_COMMENT_MODE:ii,C_LINE_COMMENT_MODE:Ai,C_NUMBER_MODE:ai,C_NUMBER_RE:MR,END_SAME_AS_BEGIN:ci,HASH_COMMENT_MODE:Si,IDENT_RE:DR,MATCH_NOTHING_RE:Ti,METHOD_GUARD:Ci,NUMBER_MODE:Oi,NUMBER_RE:dR,PHRASAL_WORDS_MODE:oi,QUOTE_STRING_MODE:Ri,REGEXP_MODE:Ni,RE_STARTERS_RE:ri,SHEBANG:si,TITLE_MODE:li,UNDERSCORE_IDENT_RE:gr,UNDERSCORE_TITLE_MODE:_i});function Li(e,E){e.input[e.index-1]==="."&&E.ignoreMatch()}function ui(e,E){e.className!==void 0&&(e.scope=e.className,delete e.className)}function pi(e,E){E&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=Li,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function fi(e,E){Array.isArray(e.illegal)&&(e.illegal=hr(...e.illegal))}function Pi(e,E){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Di(e,E){e.relevance===void 0&&(e.relevance=1)}const di=(e,E)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},e);Object.keys(e).forEach(T=>{delete e[T]}),e.keywords=t.keywords,e.begin=wE(t.beforeMatch,fR(t.begin)),e.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},e.relevance=0,delete t.beforeMatch},Mi=["of","and","for","in","not","or","if","then","parent","list","value"],Ui="keyword";function hR(e,E,t=Ui){const T=Object.create(null);return typeof e=="string"?r(t,e.split(" ")):Array.isArray(e)?r(t,e):Object.keys(e).forEach(function(s){Object.assign(T,hR(e[s],E,s))}),T;function r(s,n){E&&(n=n.map(R=>R.toLowerCase())),n.forEach(function(R){const A=R.split("|");T[A[0]]=[s,hi(A[0],A[1])]})}}function hi(e,E){return E?Number(E):Gi(e)?0:1}function Gi(e){return Mi.includes(e.toLowerCase())}const us={},FE=e=>{console.error(e)},ps=(e,...E)=>{console.log(`WARN: ${e}`,...E)},KE=(e,E)=>{us[`${e}/${E}`]||(console.log(`Deprecated as of ${e}. ${E}`),us[`${e}/${E}`]=!0)},iT=new Error;function GR(e,E,{key:t}){let T=0;const r=e[t],s={},n={};for(let R=1;R<=E.length;R++)n[R+T]=r[R],s[R+T]=!0,T+=PR(E[R-1]);e[t]=n,e[t]._emit=s,e[t]._multi=!0}function gi(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw FE("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),iT;if(typeof e.beginScope!="object"||e.beginScope===null)throw FE("beginScope must be object"),iT;GR(e,e.begin,{key:"beginScope"}),e.begin=Gr(e.begin,{joinWith:""})}}function mi(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw FE("skip, excludeEnd, returnEnd not compatible with endScope: {}"),iT;if(typeof e.endScope!="object"||e.endScope===null)throw FE("endScope must be object"),iT;GR(e,e.end,{key:"endScope"}),e.end=Gr(e.end,{joinWith:""})}}function Hi(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function yi(e){Hi(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),gi(e),mi(e)}function bi(e){function E(n,R){return new RegExp(Bt(n),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(R?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(R,A){A.position=this.position++,this.matchIndexes[this.matchAt]=A,this.regexes.push([A,R]),this.matchAt+=PR(R)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const R=this.regexes.map(A=>A[1]);this.matcherRe=E(Gr(R,{joinWith:"|"}),!0),this.lastIndex=0}exec(R){this.matcherRe.lastIndex=this.lastIndex;const A=this.matcherRe.exec(R);if(!A)return null;const o=A.findIndex((a,I)=>I>0&&a!==void 0),i=this.matchIndexes[o];return A.splice(0,o),Object.assign(A,i)}}class T{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(R){if(this.multiRegexes[R])return this.multiRegexes[R];const A=new t;return this.rules.slice(R).forEach(([o,i])=>A.addRule(o,i)),A.compile(),this.multiRegexes[R]=A,A}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(R,A){this.rules.push([R,A]),A.type==="begin"&&this.count++}exec(R){const A=this.getMatcher(this.regexIndex);A.lastIndex=this.lastIndex;let o=A.exec(R);if(this.resumingScanAtSamePosition()&&!(o&&o.index===this.lastIndex)){const i=this.getMatcher(0);i.lastIndex=this.lastIndex+1,o=i.exec(R)}return o&&(this.regexIndex+=o.position+1,this.regexIndex===this.count&&this.considerAll()),o}}function r(n){const R=new T;return n.contains.forEach(A=>R.addRule(A.begin,{rule:A,type:"begin"})),n.terminatorEnd&&R.addRule(n.terminatorEnd,{type:"end"}),n.illegal&&R.addRule(n.illegal,{type:"illegal"}),R}function s(n,R){const A=n;if(n.isCompiled)return A;[ui,Pi,yi,di].forEach(i=>i(n,R)),e.compilerExtensions.forEach(i=>i(n,R)),n.__beforeBegin=null,[pi,fi,Di].forEach(i=>i(n,R)),n.isCompiled=!0;let o=null;return typeof n.keywords=="object"&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),o=n.keywords.$pattern,delete n.keywords.$pattern),o=o||/\w+/,n.keywords&&(n.keywords=hR(n.keywords,e.case_insensitive)),A.keywordPatternRe=E(o,!0),R&&(n.begin||(n.begin=/\B|\b/),A.beginRe=E(A.begin),!n.end&&!n.endsWithParent&&(n.end=/\B|\b/),n.end&&(A.endRe=E(A.end)),A.terminatorEnd=Bt(A.end)||"",n.endsWithParent&&R.terminatorEnd&&(A.terminatorEnd+=(n.end?"|":"")+R.terminatorEnd)),n.illegal&&(A.illegalRe=E(n.illegal)),n.contains||(n.contains=[]),n.contains=[].concat(...n.contains.map(function(i){return Bi(i==="self"?n:i)})),n.contains.forEach(function(i){s(i,A)}),n.starts&&s(n.starts,R),A.matcher=r(A),A}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=cE(e.classNameAliases||{}),s(e)}function gR(e){return e?e.endsWithParent||gR(e.starts):!1}function Bi(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(E){return cE(e,{variants:null},E)})),e.cachedVariants?e.cachedVariants:gR(e)?cE(e,{starts:e.starts?cE(e.starts):null}):Object.isFrozen(e)?cE(e):e}var Fi="11.9.0";class vi extends Error{constructor(E,t){super(E),this.name="HTMLInjectionError",this.html=t}}const XT=pR,fs=cE,Ps=Symbol("nomatch"),Yi=7,mR=function(e){const E=Object.create(null),t=Object.create(null),T=[];let r=!0;const s="Could not find the language '{}', did you forget to load/include a language module?",n={disableAutodetect:!0,name:"Plain text",contains:[]};let R={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:QA};function A(u){return R.noHighlightRe.test(u)}function o(u){let g=u.className+" ";g+=u.parentNode?u.parentNode.className:"";const te=R.languageDetectRe.exec(g);if(te){const ae=k(te[1]);return ae||(ps(s.replace("{}",te[1])),ps("Falling back to no-highlight mode for this block.",u)),ae?te[1]:"no-highlight"}return g.split(/\s+/).find(ae=>A(ae)||k(ae))}function i(u,g,te){let ae="",Ie="";typeof g=="object"?(ae=u,te=g.ignoreIllegals,Ie=g.language):(KE("10.7.0","highlight(lang, code, ...args) has been deprecated."),KE("10.7.0",`Please use highlight(code, options) instead.
|
2
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),Ie=u,ae=g),te===void 0&&(te=!0);const Pe={code:ae,language:Ie};le("before:highlight",Pe);const ke=Pe.result?Pe.result:a(Pe.language,Pe.code,te);return ke.code=Pe.code,le("after:highlight",ke),ke}function a(u,g,te,ae){const Ie=Object.create(null);function Pe(M,G){return M.keywords[G]}function ke(){if(!_.keywords){f.addText(b);return}let M=0;_.keywordPatternRe.lastIndex=0;let G=_.keywordPatternRe.exec(b),W="";for(;G;){W+=b.substring(M,G.index);const Te=P.case_insensitive?G[0].toLowerCase():G[0],pe=Pe(_,Te);if(pe){const[Ke,GE]=pe;if(f.addText(W),W="",Ie[Te]=(Ie[Te]||0)+1,Ie[Te]<=Yi&&(x+=GE),Ke.startsWith("_"))W+=G[0];else{const jt=P.classNameAliases[Ke]||Ke;De(G[0],jt)}}else W+=G[0];M=_.keywordPatternRe.lastIndex,G=_.keywordPatternRe.exec(b)}W+=b.substring(M),f.addText(W)}function $E(){if(b==="")return;let M=null;if(typeof _.subLanguage=="string"){if(!E[_.subLanguage]){f.addText(b);return}M=a(_.subLanguage,b,!0,y[_.subLanguage]),y[_.subLanguage]=M._top}else M=l(b,_.subLanguage.length?_.subLanguage:null);_.relevance>0&&(x+=M.relevance),f.__addSublanguage(M._emitter,M.language)}function Fe(){_.subLanguage!=null?$E():ke(),b=""}function De(M,G){M!==""&&(f.startScope(G),f.addText(M),f.endScope())}function hE(M,G){let W=1;const Te=G.length-1;for(;W<=Te;){if(!M._emit[W]){W++;continue}const pe=P.classNameAliases[M[W]]||M[W],Ke=G[W];pe?De(Ke,pe):(b=Ke,ke(),b=""),W++}}function ct(M,G){return M.scope&&typeof M.scope=="string"&&f.openNode(P.classNameAliases[M.scope]||M.scope),M.beginScope&&(M.beginScope._wrap?(De(b,P.classNameAliases[M.beginScope._wrap]||M.beginScope._wrap),b=""):M.beginScope._multi&&(hE(M.beginScope,G),b="")),_=Object.create(M,{parent:{value:_}}),_}function AE(M,G,W){let Te=Ei(M.endRe,W);if(Te){if(M["on:end"]){const pe=new Cs(M);M["on:end"](G,pe),pe.isMatchIgnored&&(Te=!1)}if(Te){for(;M.endsParent&&M.parent;)M=M.parent;return M}}if(M.endsWithParent)return AE(M.parent,G,W)}function Lt(M){return _.matcher.regexIndex===0?(b+=M[0],1):(se=!0,0)}function ut(M){const G=M[0],W=M.rule,Te=new Cs(W),pe=[W.__beforeBegin,W["on:begin"]];for(const Ke of pe)if(Ke&&(Ke(M,Te),Te.isMatchIgnored))return Lt(G);return W.skip?b+=G:(W.excludeBegin&&(b+=G),Fe(),!W.returnBegin&&!W.excludeBegin&&(b=G)),ct(W,M),W.returnBegin?0:G.length}function S(M){const G=M[0],W=g.substring(M.index),Te=AE(_,M,W);if(!Te)return Ps;const pe=_;_.endScope&&_.endScope._wrap?(Fe(),De(G,_.endScope._wrap)):_.endScope&&_.endScope._multi?(Fe(),hE(_.endScope,M)):pe.skip?b+=G:(pe.returnEnd||pe.excludeEnd||(b+=G),Fe(),pe.excludeEnd&&(b=G));do _.scope&&f.closeNode(),!_.skip&&!_.subLanguage&&(x+=_.relevance),_=_.parent;while(_!==Te.parent);return Te.starts&&ct(Te.starts,M),pe.returnEnd?0:G.length}function N(){const M=[];for(let G=_;G!==P;G=G.parent)G.scope&&M.unshift(G.scope);M.forEach(G=>f.openNode(G))}let c={};function D(M,G){const W=G&&G[0];if(b+=M,W==null)return Fe(),0;if(c.type==="begin"&&G.type==="end"&&c.index===G.index&&W===""){if(b+=g.slice(G.index,G.index+1),!r){const Te=new Error(`0 width match regex (${u})`);throw Te.languageName=u,Te.badRule=c.rule,Te}return 1}if(c=G,G.type==="begin")return ut(G);if(G.type==="illegal"&&!te){const Te=new Error('Illegal lexeme "'+W+'" for mode "'+(_.scope||"<unnamed>")+'"');throw Te.mode=_,Te}else if(G.type==="end"){const Te=S(G);if(Te!==Ps)return Te}if(G.type==="illegal"&&W==="")return 1;if(q>1e5&&q>G.index*3)throw new Error("potential infinite loop, way more iterations than matches");return b+=W,W.length}const P=k(u);if(!P)throw FE(s.replace("{}",u)),new Error('Unknown language: "'+u+'"');const m=bi(P);let F="",_=ae||m;const y={},f=new R.__emitter(R);N();let b="",x=0,w=0,q=0,se=!1;try{if(P.__emitTokens)P.__emitTokens(g,f);else{for(_.matcher.considerAll();;){q++,se?se=!1:_.matcher.considerAll(),_.matcher.lastIndex=w;const M=_.matcher.exec(g);if(!M)break;const G=g.substring(w,M.index),W=D(G,M);w=M.index+W}D(g.substring(w))}return f.finalize(),F=f.toHTML(),{language:u,value:F,relevance:x,illegal:!1,_emitter:f,_top:_}}catch(M){if(M.message&&M.message.includes("Illegal"))return{language:u,value:XT(g),illegal:!0,relevance:0,_illegalBy:{message:M.message,index:w,context:g.slice(w-100,w+100),mode:M.mode,resultSoFar:F},_emitter:f};if(r)return{language:u,value:XT(g),illegal:!1,relevance:0,errorRaised:M,_emitter:f,_top:_};throw M}}function I(u){const g={value:XT(u),illegal:!1,relevance:0,_top:n,_emitter:new R.__emitter(R)};return g._emitter.addText(u),g}function l(u,g){g=g||R.languages||Object.keys(E);const te=I(u),ae=g.filter(k).filter(p).map(Fe=>a(Fe,u,!1));ae.unshift(te);const Ie=ae.sort((Fe,De)=>{if(Fe.relevance!==De.relevance)return De.relevance-Fe.relevance;if(Fe.language&&De.language){if(k(Fe.language).supersetOf===De.language)return 1;if(k(De.language).supersetOf===Fe.language)return-1}return 0}),[Pe,ke]=Ie,$E=Pe;return $E.secondBest=ke,$E}function U(u,g,te){const ae=g&&t[g]||te;u.classList.add("hljs"),u.classList.add(`language-${ae}`)}function B(u){let g=null;const te=o(u);if(A(te))return;if(le("before:highlightElement",{el:u,language:te}),u.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",u);return}if(u.children.length>0&&(R.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(u)),R.throwUnescapedHTML))throw new vi("One of your code blocks includes unescaped HTML.",u.innerHTML);g=u;const ae=g.textContent,Ie=te?i(ae,{language:te,ignoreIllegals:!0}):l(ae);u.innerHTML=Ie.value,u.dataset.highlighted="yes",U(u,te,Ie.language),u.result={language:Ie.language,re:Ie.relevance,relevance:Ie.relevance},Ie.secondBest&&(u.secondBest={language:Ie.secondBest.language,relevance:Ie.secondBest.relevance}),le("after:highlightElement",{el:u,result:Ie,text:ae})}function V(u){R=fs(R,u)}const $=()=>{H(),KE("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function J(){H(),KE("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Q=!1;function H(){if(document.readyState==="loading"){Q=!0;return}document.querySelectorAll(R.cssSelector).forEach(B)}function ee(){Q&&H()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",ee,!1);function Ce(u,g){let te=null;try{te=g(e)}catch(ae){if(FE("Language definition for '{}' could not be registered.".replace("{}",u)),r)FE(ae);else throw ae;te=n}te.name||(te.name=u),E[u]=te,te.rawDefinition=g.bind(null,e),te.aliases&&C(te.aliases,{languageName:u})}function Ae(u){delete E[u];for(const g of Object.keys(t))t[g]===u&&delete t[g]}function Ee(){return Object.keys(E)}function k(u){return u=(u||"").toLowerCase(),E[u]||E[t[u]]}function C(u,{languageName:g}){typeof u=="string"&&(u=[u]),u.forEach(te=>{t[te.toLowerCase()]=g})}function p(u){const g=k(u);return g&&!g.disableAutodetect}function L(u){u["before:highlightBlock"]&&!u["before:highlightElement"]&&(u["before:highlightElement"]=g=>{u["before:highlightBlock"](Object.assign({block:g.el},g))}),u["after:highlightBlock"]&&!u["after:highlightElement"]&&(u["after:highlightElement"]=g=>{u["after:highlightBlock"](Object.assign({block:g.el},g))})}function v(u){L(u),T.push(u)}function K(u){const g=T.indexOf(u);g!==-1&&T.splice(g,1)}function le(u,g){const te=u;T.forEach(function(ae){ae[te]&&ae[te](g)})}function Z(u){return KE("10.7.0","highlightBlock will be removed entirely in v12.0"),KE("10.7.0","Please use highlightElement now."),B(u)}Object.assign(e,{highlight:i,highlightAuto:l,highlightAll:H,highlightElement:B,highlightBlock:Z,configure:V,initHighlighting:$,initHighlightingOnLoad:J,registerLanguage:Ce,unregisterLanguage:Ae,listLanguages:Ee,getLanguage:k,registerAliases:C,autoDetection:p,inherit:fs,addPlugin:v,removePlugin:K}),e.debugMode=function(){r=!1},e.safeMode=function(){r=!0},e.versionString=Fi,e.regex={concat:wE,lookahead:fR,either:hr,optional:zA,anyNumberOfTimes:ZA};for(const u in qt)typeof qt[u]=="object"&&uR(qt[u]);return Object.assign(e,qt),e},tt=mR({});tt.newInstance=()=>mR({});var xi=tt;tt.HighlightJS=tt;tt.default=tt;const Ut=fT(xi);function Vi(e){const E=e.regex,t=e.COMMENT("--","$"),T={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},r={begin:/"/,end:/"/,contains:[{begin:/""/}]},s=["true","false","unknown"],n=["double precision","large object","with timezone","without timezone"],R=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],A=["add","asc","collation","desc","final","first","last","view"],o=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],i=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],a=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],I=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],l=i,U=[...o,...A].filter(Q=>!i.includes(Q)),B={className:"variable",begin:/@[a-z0-9][a-z0-9_]*/},V={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},$={begin:E.concat(/\b/,E.either(...l),/\s*\(/),relevance:0,keywords:{built_in:l}};function J(Q,{exceptions:H,when:ee}={}){const Ce=ee;return H=H||[],Q.map(Ae=>Ae.match(/\|\d+$/)||H.includes(Ae)?Ae:Ce(Ae)?`${Ae}|0`:Ae)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:J(U,{when:Q=>Q.length<3}),literal:s,type:R,built_in:a},contains:[{begin:E.either(...I),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:U.concat(I),literal:s,type:R}},{className:"type",begin:E.either(...n)},$,B,T,r,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,V]}}function wi(e){const E={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},t={match:/[{}[\],:]/,className:"punctuation",relevance:0},T=["true","false","null"],r={scope:"literal",beginKeywords:T.join(" ")};return{name:"JSON",keywords:{literal:T},contains:[E,t,e.QUOTE_STRING_MODE,r,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function mr(e,E){const t=Object.create(null),T=e.split(",");for(let r=0;r<T.length;r++)t[T[r]]=!0;return E?r=>!!t[r.toLowerCase()]:r=>!!t[r]}const ce={},ZE=[],nE=()=>{},Wi=()=>!1,DT=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Hr=e=>e.startsWith("onUpdate:"),He=Object.assign,yr=(e,E)=>{const t=e.indexOf(E);t>-1&&e.splice(t,1)},Xi=Object.prototype.hasOwnProperty,Se=(e,E)=>Xi.call(e,E),z=Array.isArray,zE=e=>dT(e)==="[object Map]",HR=e=>dT(e)==="[object Set]",re=e=>typeof e=="function",de=e=>typeof e=="string",Rt=e=>typeof e=="symbol",ue=e=>e!==null&&typeof e=="object",yR=e=>(ue(e)||re(e))&&re(e.then)&&re(e.catch),bR=Object.prototype.toString,dT=e=>bR.call(e),$i=e=>dT(e).slice(8,-1),BR=e=>dT(e)==="[object Object]",br=e=>de(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,rT=mr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),MT=e=>{const E=Object.create(null);return t=>E[t]||(E[t]=e(t))},Ki=/-(\w)/g,RE=MT(e=>e.replace(Ki,(E,t)=>t?t.toUpperCase():"")),Ji=/\B([A-Z])/g,ot=MT(e=>e.replace(Ji,"-$1").toLowerCase()),UT=MT(e=>e.charAt(0).toUpperCase()+e.slice(1)),$T=MT(e=>e?`on${UT(e)}`:""),xE=(e,E)=>!Object.is(e,E),KT=(e,E)=>{for(let t=0;t<e.length;t++)e[t](E)},ST=(e,E,t)=>{Object.defineProperty(e,E,{configurable:!0,enumerable:!1,value:t})},ki=e=>{const E=parseFloat(e);return isNaN(E)?e:E};let Ds;const rr=()=>Ds||(Ds=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function hT(e){if(z(e)){const E={};for(let t=0;t<e.length;t++){const T=e[t],r=de(T)?Zi(T):hT(T);if(r)for(const s in r)E[s]=r[s]}return E}else if(de(e)||ue(e))return e}const ji=/;(?![^(]*\))/g,qi=/:([^]+)/,Qi=/\/\*[^]*?\*\//g;function Zi(e){const E={};return e.replace(Qi,"").split(ji).forEach(t=>{if(t){const T=t.split(qi);T.length>1&&(E[T[0].trim()]=T[1].trim())}}),E}function $e(e){let E="";if(de(e))E=e;else if(z(e))for(let t=0;t<e.length;t++){const T=$e(e[t]);T&&(E+=T+" ")}else if(ue(e))for(const t in e)e[t]&&(E+=t+" ");return E.trim()}const zi="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",eS=mr(zi);function FR(e){return!!e||e===""}const ne=e=>de(e)?e:e==null?"":z(e)||ue(e)&&(e.toString===bR||!re(e.toString))?JSON.stringify(e,vR,2):String(e),vR=(e,E)=>E&&E.__v_isRef?vR(e,E.value):zE(E)?{[`Map(${E.size})`]:[...E.entries()].reduce((t,[T,r],s)=>(t[JT(T,s)+" =>"]=r,t),{})}:HR(E)?{[`Set(${E.size})`]:[...E.values()].map(t=>JT(t))}:Rt(E)?JT(E):ue(E)&&!z(E)&&!BR(E)?String(E):E,JT=(e,E="")=>{var t;return Rt(e)?`Symbol(${(t=e.description)!=null?t:E})`:e};let Xe;class YR{constructor(E=!1){this.detached=E,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Xe,!E&&Xe&&(this.index=(Xe.scopes||(Xe.scopes=[])).push(this)-1)}get active(){return this._active}run(E){if(this._active){const t=Xe;try{return Xe=this,E()}finally{Xe=t}}}on(){Xe=this}off(){Xe=this.parent}stop(E){if(this._active){let t,T;for(t=0,T=this.effects.length;t<T;t++)this.effects[t].stop();for(t=0,T=this.cleanups.length;t<T;t++)this.cleanups[t]();if(this.scopes)for(t=0,T=this.scopes.length;t<T;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!E){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function xR(e){return new YR(e)}function ES(e,E=Xe){E&&E.active&&E.effects.push(e)}function VR(){return Xe}function tS(e){Xe&&Xe.cleanups.push(e)}const Br=e=>{const E=new Set(e);return E.w=0,E.n=0,E},wR=e=>(e.w&PE)>0,WR=e=>(e.n&PE)>0,TS=({deps:e})=>{if(e.length)for(let E=0;E<e.length;E++)e[E].w|=PE},rS=e=>{const{deps:E}=e;if(E.length){let t=0;for(let T=0;T<E.length;T++){const r=E[T];wR(r)&&!WR(r)?r.delete(e):E[t++]=r,r.w&=~PE,r.n&=~PE}E.length=t}},OT=new WeakMap;let dt=0,PE=1;const sr=30;let Qe;const vE=Symbol(""),nr=Symbol("");class Fr{constructor(E,t=null,T){this.fn=E,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,ES(this,T)}run(){if(!this.active)return this.fn();let E=Qe,t=uE;for(;E;){if(E===this)return;E=E.parent}try{return this.parent=Qe,Qe=this,uE=!0,PE=1<<++dt,dt<=sr?TS(this):ds(this),this.fn()}finally{dt<=sr&&rS(this),PE=1<<--dt,Qe=this.parent,uE=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Qe===this?this.deferStop=!0:this.active&&(ds(this),this.onStop&&this.onStop(),this.active=!1)}}function ds(e){const{deps:E}=e;if(E.length){for(let t=0;t<E.length;t++)E[t].delete(e);E.length=0}}let uE=!0;const XR=[];function At(){XR.push(uE),uE=!1}function it(){const e=XR.pop();uE=e===void 0?!0:e}function we(e,E,t){if(uE&&Qe){let T=OT.get(e);T||OT.set(e,T=new Map);let r=T.get(t);r||T.set(t,r=Br()),$R(r)}}function $R(e,E){let t=!1;dt<=sr?WR(e)||(e.n|=PE,t=!wR(e)):t=!e.has(Qe),t&&(e.add(Qe),Qe.deps.push(e))}function SE(e,E,t,T,r,s){const n=OT.get(e);if(!n)return;let R=[];if(E==="clear")R=[...n.values()];else if(t==="length"&&z(e)){const A=Number(T);n.forEach((o,i)=>{(i==="length"||!Rt(i)&&i>=A)&&R.push(o)})}else switch(t!==void 0&&R.push(n.get(t)),E){case"add":z(e)?br(t)&&R.push(n.get("length")):(R.push(n.get(vE)),zE(e)&&R.push(n.get(nr)));break;case"delete":z(e)||(R.push(n.get(vE)),zE(e)&&R.push(n.get(nr)));break;case"set":zE(e)&&R.push(n.get(vE));break}if(R.length===1)R[0]&&Rr(R[0]);else{const A=[];for(const o of R)o&&A.push(...o);Rr(Br(A))}}function Rr(e,E){const t=z(e)?e:[...e];for(const T of t)T.computed&&Ms(T);for(const T of t)T.computed||Ms(T)}function Ms(e,E){(e!==Qe||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function sS(e,E){var t;return(t=OT.get(e))==null?void 0:t.get(E)}const nS=mr("__proto__,__v_isRef,__isVue"),KR=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Rt)),Us=RS();function RS(){const e={};return["includes","indexOf","lastIndexOf"].forEach(E=>{e[E]=function(...t){const T=Oe(this);for(let s=0,n=this.length;s<n;s++)we(T,"get",s+"");const r=T[E](...t);return r===-1||r===!1?T[E](...t.map(Oe)):r}}),["push","pop","shift","unshift","splice"].forEach(E=>{e[E]=function(...t){At();const T=Oe(this)[E].apply(this,t);return it(),T}}),e}function oS(e){const E=Oe(this);return we(E,"has",e),E.hasOwnProperty(e)}class JR{constructor(E=!1,t=!1){this._isReadonly=E,this._shallow=t}get(E,t,T){const r=this._isReadonly,s=this._shallow;if(t==="__v_isReactive")return!r;if(t==="__v_isReadonly")return r;if(t==="__v_isShallow")return s;if(t==="__v_raw")return T===(r?s?uS:QR:s?qR:jR).get(E)||Object.getPrototypeOf(E)===Object.getPrototypeOf(T)?E:void 0;const n=z(E);if(!r){if(n&&Se(Us,t))return Reflect.get(Us,t,T);if(t==="hasOwnProperty")return oS}const R=Reflect.get(E,t,T);return(Rt(t)?KR.has(t):nS(t))||(r||we(E,"get",t),s)?R:Ue(R)?n&&br(t)?R:R.value:ue(R)?r?ZR(R):dE(R):R}}class kR extends JR{constructor(E=!1){super(!1,E)}set(E,t,T,r){let s=E[t];if(!this._shallow){const A=Tt(s);if(!aT(T)&&!Tt(T)&&(s=Oe(s),T=Oe(T)),!z(E)&&Ue(s)&&!Ue(T))return A?!1:(s.value=T,!0)}const n=z(E)&&br(t)?Number(t)<E.length:Se(E,t),R=Reflect.set(E,t,T,r);return E===Oe(r)&&(n?xE(T,s)&&SE(E,"set",t,T):SE(E,"add",t,T)),R}deleteProperty(E,t){const T=Se(E,t);E[t];const r=Reflect.deleteProperty(E,t);return r&&T&&SE(E,"delete",t,void 0),r}has(E,t){const T=Reflect.has(E,t);return(!Rt(t)||!KR.has(t))&&we(E,"has",t),T}ownKeys(E){return we(E,"iterate",z(E)?"length":vE),Reflect.ownKeys(E)}}class AS extends JR{constructor(E=!1){super(!0,E)}set(E,t){return!0}deleteProperty(E,t){return!0}}const iS=new kR,SS=new AS,OS=new kR(!0),vr=e=>e,GT=e=>Reflect.getPrototypeOf(e);function Qt(e,E,t=!1,T=!1){e=e.__v_raw;const r=Oe(e),s=Oe(E);t||(xE(E,s)&&we(r,"get",E),we(r,"get",s));const{has:n}=GT(r),R=T?vr:t?Vr:vt;if(n.call(r,E))return R(e.get(E));if(n.call(r,s))return R(e.get(s));e!==r&&e.get(E)}function Zt(e,E=!1){const t=this.__v_raw,T=Oe(t),r=Oe(e);return E||(xE(e,r)&&we(T,"has",e),we(T,"has",r)),e===r?t.has(e):t.has(e)||t.has(r)}function zt(e,E=!1){return e=e.__v_raw,!E&&we(Oe(e),"iterate",vE),Reflect.get(e,"size",e)}function hs(e){e=Oe(e);const E=Oe(this);return GT(E).has.call(E,e)||(E.add(e),SE(E,"add",e,e)),this}function Gs(e,E){E=Oe(E);const t=Oe(this),{has:T,get:r}=GT(t);let s=T.call(t,e);s||(e=Oe(e),s=T.call(t,e));const n=r.call(t,e);return t.set(e,E),s?xE(E,n)&&SE(t,"set",e,E):SE(t,"add",e,E),this}function gs(e){const E=Oe(this),{has:t,get:T}=GT(E);let r=t.call(E,e);r||(e=Oe(e),r=t.call(E,e)),T&&T.call(E,e);const s=E.delete(e);return r&&SE(E,"delete",e,void 0),s}function ms(){const e=Oe(this),E=e.size!==0,t=e.clear();return E&&SE(e,"clear",void 0,void 0),t}function eT(e,E){return function(T,r){const s=this,n=s.__v_raw,R=Oe(n),A=E?vr:e?Vr:vt;return!e&&we(R,"iterate",vE),n.forEach((o,i)=>T.call(r,A(o),A(i),s))}}function ET(e,E,t){return function(...T){const r=this.__v_raw,s=Oe(r),n=zE(s),R=e==="entries"||e===Symbol.iterator&&n,A=e==="keys"&&n,o=r[e](...T),i=t?vr:E?Vr:vt;return!E&&we(s,"iterate",A?nr:vE),{next(){const{value:a,done:I}=o.next();return I?{value:a,done:I}:{value:R?[i(a[0]),i(a[1])]:i(a),done:I}},[Symbol.iterator](){return this}}}}function NE(e){return function(...E){return e==="delete"?!1:e==="clear"?void 0:this}}function aS(){const e={get(s){return Qt(this,s)},get size(){return zt(this)},has:Zt,add:hs,set:Gs,delete:gs,clear:ms,forEach:eT(!1,!1)},E={get(s){return Qt(this,s,!1,!0)},get size(){return zt(this)},has:Zt,add:hs,set:Gs,delete:gs,clear:ms,forEach:eT(!1,!0)},t={get(s){return Qt(this,s,!0)},get size(){return zt(this,!0)},has(s){return Zt.call(this,s,!0)},add:NE("add"),set:NE("set"),delete:NE("delete"),clear:NE("clear"),forEach:eT(!0,!1)},T={get(s){return Qt(this,s,!0,!0)},get size(){return zt(this,!0)},has(s){return Zt.call(this,s,!0)},add:NE("add"),set:NE("set"),delete:NE("delete"),clear:NE("clear"),forEach:eT(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=ET(s,!1,!1),t[s]=ET(s,!0,!1),E[s]=ET(s,!1,!0),T[s]=ET(s,!0,!0)}),[e,t,E,T]}const[IS,NS,lS,_S]=aS();function Yr(e,E){const t=E?e?_S:lS:e?NS:IS;return(T,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?T:Reflect.get(Se(t,r)&&r in T?t:T,r,s)}const CS={get:Yr(!1,!1)},cS={get:Yr(!1,!0)},LS={get:Yr(!0,!1)},jR=new WeakMap,qR=new WeakMap,QR=new WeakMap,uS=new WeakMap;function pS(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function fS(e){return e.__v_skip||!Object.isExtensible(e)?0:pS($i(e))}function dE(e){return Tt(e)?e:xr(e,!1,iS,CS,jR)}function PS(e){return xr(e,!1,OS,cS,qR)}function ZR(e){return xr(e,!0,SS,LS,QR)}function xr(e,E,t,T,r){if(!ue(e)||e.__v_raw&&!(E&&e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const n=fS(e);if(n===0)return e;const R=new Proxy(e,n===2?T:t);return r.set(e,R),R}function pE(e){return Tt(e)?pE(e.__v_raw):!!(e&&e.__v_isReactive)}function Tt(e){return!!(e&&e.__v_isReadonly)}function aT(e){return!!(e&&e.__v_isShallow)}function zR(e){return pE(e)||Tt(e)}function Oe(e){const E=e&&e.__v_raw;return E?Oe(E):e}function gT(e){return ST(e,"__v_skip",!0),e}const vt=e=>ue(e)?dE(e):e,Vr=e=>ue(e)?ZR(e):e;function eo(e){uE&&Qe&&(e=Oe(e),$R(e.dep||(e.dep=Br())))}function Eo(e,E){e=Oe(e);const t=e.dep;t&&Rr(t)}function Ue(e){return!!(e&&e.__v_isRef===!0)}function LE(e){return DS(e,!1)}function DS(e,E){return Ue(e)?e:new dS(e,E)}class dS{constructor(E,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?E:Oe(E),this._value=t?E:vt(E)}get value(){return eo(this),this._value}set value(E){const t=this.__v_isShallow||aT(E)||Tt(E);E=t?E:Oe(E),xE(E,this._rawValue)&&(this._rawValue=E,this._value=t?E:vt(E),Eo(this))}}function Re(e){return Ue(e)?e.value:e}const MS={get:(e,E,t)=>Re(Reflect.get(e,E,t)),set:(e,E,t,T)=>{const r=e[E];return Ue(r)&&!Ue(t)?(r.value=t,!0):Reflect.set(e,E,t,T)}};function to(e){return pE(e)?e:new Proxy(e,MS)}function US(e){const E=z(e)?new Array(e.length):{};for(const t in e)E[t]=GS(e,t);return E}class hS{constructor(E,t,T){this._object=E,this._key=t,this._defaultValue=T,this.__v_isRef=!0}get value(){const E=this._object[this._key];return E===void 0?this._defaultValue:E}set value(E){this._object[this._key]=E}get dep(){return sS(Oe(this._object),this._key)}}function GS(e,E,t){const T=e[E];return Ue(T)?T:new hS(e,E,t)}class gS{constructor(E,t,T,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Fr(E,()=>{this._dirty||(this._dirty=!0,Eo(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=T}get value(){const E=Oe(this);return eo(E),(E._dirty||!E._cacheable)&&(E._dirty=!1,E._value=E.effect.run()),E._value}set value(E){this._setter(E)}}function mS(e,E,t=!1){let T,r;const s=re(e);return s?(T=e,r=nE):(T=e.get,r=e.set),new gS(T,r,s||!r,t)}function fE(e,E,t,T){let r;try{r=T?e(...T):e()}catch(s){mT(s,E,t)}return r}function eE(e,E,t,T){if(re(e)){const s=fE(e,E,t,T);return s&&yR(s)&&s.catch(n=>{mT(n,E,t)}),s}const r=[];for(let s=0;s<e.length;s++)r.push(eE(e[s],E,t,T));return r}function mT(e,E,t,T=!0){const r=E?E.vnode:null;if(E){let s=E.parent;const n=E.proxy,R=t;for(;s;){const o=s.ec;if(o){for(let i=0;i<o.length;i++)if(o[i](e,n,R)===!1)return}s=s.parent}const A=E.appContext.config.errorHandler;if(A){fE(A,null,10,[e,n,R]);return}}HS(e,t,r,T)}function HS(e,E,t,T=!0){console.error(e)}let Yt=!1,or=!1;const be=[];let sE=0;const et=[];let iE=null,bE=0;const To=Promise.resolve();let wr=null;function ro(e){const E=wr||To;return e?E.then(this?e.bind(this):e):E}function yS(e){let E=sE+1,t=be.length;for(;E<t;){const T=E+t>>>1,r=be[T],s=xt(r);s<e||s===e&&r.pre?E=T+1:t=T}return E}function Wr(e){(!be.length||!be.includes(e,Yt&&e.allowRecurse?sE+1:sE))&&(e.id==null?be.push(e):be.splice(yS(e.id),0,e),so())}function so(){!Yt&&!or&&(or=!0,wr=To.then(Ro))}function bS(e){const E=be.indexOf(e);E>sE&&be.splice(E,1)}function BS(e){z(e)?et.push(...e):(!iE||!iE.includes(e,e.allowRecurse?bE+1:bE))&&et.push(e),so()}function Hs(e,E,t=Yt?sE+1:0){for(;t<be.length;t++){const T=be[t];if(T&&T.pre){if(e&&T.id!==e.uid)continue;be.splice(t,1),t--,T()}}}function no(e){if(et.length){const E=[...new Set(et)];if(et.length=0,iE){iE.push(...E);return}for(iE=E,iE.sort((t,T)=>xt(t)-xt(T)),bE=0;bE<iE.length;bE++)iE[bE]();iE=null,bE=0}}const xt=e=>e.id==null?1/0:e.id,FS=(e,E)=>{const t=xt(e)-xt(E);if(t===0){if(e.pre&&!E.pre)return-1;if(E.pre&&!e.pre)return 1}return t};function Ro(e){or=!1,Yt=!0,be.sort(FS);try{for(sE=0;sE<be.length;sE++){const E=be[sE];E&&E.active!==!1&&fE(E,null,14)}}finally{sE=0,be.length=0,no(),Yt=!1,wr=null,(be.length||et.length)&&Ro()}}function vS(e,E,...t){if(e.isUnmounted)return;const T=e.vnode.props||ce;let r=t;const s=E.startsWith("update:"),n=s&&E.slice(7);if(n&&n in T){const i=`${n==="modelValue"?"model":n}Modifiers`,{number:a,trim:I}=T[i]||ce;I&&(r=t.map(l=>de(l)?l.trim():l)),a&&(r=t.map(ki))}let R,A=T[R=$T(E)]||T[R=$T(RE(E))];!A&&s&&(A=T[R=$T(ot(E))]),A&&eE(A,e,6,r);const o=T[R+"Once"];if(o){if(!e.emitted)e.emitted={};else if(e.emitted[R])return;e.emitted[R]=!0,eE(o,e,6,r)}}function oo(e,E,t=!1){const T=E.emitsCache,r=T.get(e);if(r!==void 0)return r;const s=e.emits;let n={},R=!1;if(!re(e)){const A=o=>{const i=oo(o,E,!0);i&&(R=!0,He(n,i))};!t&&E.mixins.length&&E.mixins.forEach(A),e.extends&&A(e.extends),e.mixins&&e.mixins.forEach(A)}return!s&&!R?(ue(e)&&T.set(e,null),null):(z(s)?s.forEach(A=>n[A]=null):He(n,s),ue(e)&&T.set(e,n),n)}function HT(e,E){return!e||!DT(E)?!1:(E=E.slice(2).replace(/Once$/,""),Se(e,E[0].toLowerCase()+E.slice(1))||Se(e,ot(E))||Se(e,E))}let Be=null,Ao=null;function IT(e){const E=Be;return Be=e,Ao=e&&e.type.__scopeId||null,E}function ie(e,E=Be,t){if(!E||e._n)return e;const T=(...r)=>{T._d&&$s(-1);const s=IT(E);let n;try{n=e(...r)}finally{IT(s),T._d&&$s(1)}return n};return T._n=!0,T._c=!0,T._d=!0,T}function kT(e){const{type:E,vnode:t,proxy:T,withProxy:r,props:s,propsOptions:[n],slots:R,attrs:A,emit:o,render:i,renderCache:a,data:I,setupState:l,ctx:U,inheritAttrs:B}=e;let V,$;const J=IT(e);try{if(t.shapeFlag&4){const H=r||T,ee=H;V=rE(i.call(ee,H,a,s,l,I,U)),$=A}else{const H=E;V=rE(H.length>1?H(s,{attrs:A,slots:R,emit:o}):H(s,null)),$=E.props?A:YS(A)}}catch(H){Ht.length=0,mT(H,e,1),V=X(DE)}let Q=V;if($&&B!==!1){const H=Object.keys($),{shapeFlag:ee}=Q;H.length&&ee&7&&(n&&H.some(Hr)&&($=xS($,n)),Q=rt(Q,$))}return t.dirs&&(Q=rt(Q),Q.dirs=Q.dirs?Q.dirs.concat(t.dirs):t.dirs),t.transition&&(Q.transition=t.transition),V=Q,IT(J),V}const YS=e=>{let E;for(const t in e)(t==="class"||t==="style"||DT(t))&&((E||(E={}))[t]=e[t]);return E},xS=(e,E)=>{const t={};for(const T in e)(!Hr(T)||!(T.slice(9)in E))&&(t[T]=e[T]);return t};function VS(e,E,t){const{props:T,children:r,component:s}=e,{props:n,children:R,patchFlag:A}=E,o=s.emitsOptions;if(E.dirs||E.transition)return!0;if(t&&A>=0){if(A&1024)return!0;if(A&16)return T?ys(T,n,o):!!n;if(A&8){const i=E.dynamicProps;for(let a=0;a<i.length;a++){const I=i[a];if(n[I]!==T[I]&&!HT(o,I))return!0}}}else return(r||R)&&(!R||!R.$stable)?!0:T===n?!1:T?n?ys(T,n,o):!0:!!n;return!1}function ys(e,E,t){const T=Object.keys(E);if(T.length!==Object.keys(e).length)return!0;for(let r=0;r<T.length;r++){const s=T[r];if(E[s]!==e[s]&&!HT(t,s))return!0}return!1}function wS({vnode:e,parent:E},t){for(;E&&E.subTree===e;)(e=E.vnode).el=t,E=E.parent}const io="components";function $t(e,E){return XS(io,e,!0,E)||e}const WS=Symbol.for("v-ndc");function XS(e,E,t=!0,T=!1){const r=Be||me;if(r){const s=r.type;if(e===io){const R=YO(s,!1);if(R&&(R===E||R===RE(E)||R===UT(RE(E))))return s}const n=bs(r[e]||s[e],E)||bs(r.appContext[e],E);return!n&&T?s:n}}function bs(e,E){return e&&(e[E]||e[RE(E)]||e[UT(RE(E))])}const $S=e=>e.__isSuspense;function KS(e,E){E&&E.pendingBranch?z(e)?E.effects.push(...e):E.effects.push(e):BS(e)}const tT={};function Et(e,E,t){return So(e,E,t)}function So(e,E,{immediate:t,deep:T,flush:r,onTrack:s,onTrigger:n}=ce){var R;const A=VR()===((R=me)==null?void 0:R.scope)?me:null;let o,i=!1,a=!1;if(Ue(e)?(o=()=>e.value,i=aT(e)):pE(e)?(o=()=>e,T=!0):z(e)?(a=!0,i=e.some(H=>pE(H)||aT(H)),o=()=>e.map(H=>{if(Ue(H))return H.value;if(pE(H))return QE(H);if(re(H))return fE(H,A,2)})):re(e)?E?o=()=>fE(e,A,2):o=()=>{if(!(A&&A.isUnmounted))return I&&I(),eE(e,A,3,[l])}:o=nE,E&&T){const H=o;o=()=>QE(H())}let I,l=H=>{I=J.onStop=()=>{fE(H,A,4),I=J.onStop=void 0}},U;if(Wt)if(l=nE,E?t&&eE(E,A,3,[o(),a?[]:void 0,l]):o(),r==="sync"){const H=wO();U=H.__watcherHandles||(H.__watcherHandles=[])}else return nE;let B=a?new Array(e.length).fill(tT):tT;const V=()=>{if(J.active)if(E){const H=J.run();(T||i||(a?H.some((ee,Ce)=>xE(ee,B[Ce])):xE(H,B)))&&(I&&I(),eE(E,A,3,[H,B===tT?void 0:a&&B[0]===tT?[]:B,l]),B=H)}else J.run()};V.allowRecurse=!!E;let $;r==="sync"?$=V:r==="post"?$=()=>Ve(V,A&&A.suspense):(V.pre=!0,A&&(V.id=A.uid),$=()=>Wr(V));const J=new Fr(o,$);E?t?V():B=J.run():r==="post"?Ve(J.run.bind(J),A&&A.suspense):J.run();const Q=()=>{J.stop(),A&&A.scope&&yr(A.scope.effects,J)};return U&&U.push(Q),Q}function JS(e,E,t){const T=this.proxy,r=de(e)?e.includes(".")?Oo(T,e):()=>T[e]:e.bind(T,T);let s;re(E)?s=E:(s=E.handler,t=E);const n=me;st(this);const R=So(r,s.bind(T),t);return n?st(n):YE(),R}function Oo(e,E){const t=E.split(".");return()=>{let T=e;for(let r=0;r<t.length&&T;r++)T=T[t[r]];return T}}function QE(e,E){if(!ue(e)||e.__v_skip||(E=E||new Set,E.has(e)))return e;if(E.add(e),Ue(e))QE(e.value,E);else if(z(e))for(let t=0;t<e.length;t++)QE(e[t],E);else if(HR(e)||zE(e))e.forEach(t=>{QE(t,E)});else if(BR(e))for(const t in e)QE(e[t],E);return e}function gE(e,E,t,T){const r=e.dirs,s=E&&E.dirs;for(let n=0;n<r.length;n++){const R=r[n];s&&(R.oldValue=s[n].value);let A=R.dir[T];A&&(At(),eE(A,t,8,[e.el,R,e,E]),it())}}/*! #__NO_SIDE_EFFECTS__ */function Me(e,E){return re(e)?He({name:e.name},E,{setup:e}):e}const ht=e=>!!e.type.__asyncLoader,ao=e=>e.type.__isKeepAlive;function kS(e,E){Io(e,"a",E)}function jS(e,E){Io(e,"da",E)}function Io(e,E,t=me){const T=e.__wdc||(e.__wdc=()=>{let r=t;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(yT(E,T,t),t){let r=t.parent;for(;r&&r.parent;)ao(r.parent.vnode)&&qS(T,E,t,r),r=r.parent}}function qS(e,E,t,T){const r=yT(E,e,T,!0);lo(()=>{yr(T[E],r)},t)}function yT(e,E,t=me,T=!1){if(t){const r=t[e]||(t[e]=[]),s=E.__weh||(E.__weh=(...n)=>{if(t.isUnmounted)return;At(),st(t);const R=eE(E,t,e,n);return YE(),it(),R});return T?r.unshift(s):r.push(s),s}}const aE=e=>(E,t=me)=>(!Wt||e==="sp")&&yT(e,(...T)=>E(...T),t),No=aE("bm"),Xr=aE("m"),QS=aE("bu"),ZS=aE("u"),zS=aE("bum"),lo=aE("um"),eO=aE("sp"),EO=aE("rtg"),tO=aE("rtc");function TO(e,E=me){yT("ec",e,E)}function Je(e,E,t,T){let r;const s=t&&t[T];if(z(e)||de(e)){r=new Array(e.length);for(let n=0,R=e.length;n<R;n++)r[n]=E(e[n],n,void 0,s&&s[n])}else if(typeof e=="number"){r=new Array(e);for(let n=0;n<e;n++)r[n]=E(n+1,n,void 0,s&&s[n])}else if(ue(e))if(e[Symbol.iterator])r=Array.from(e,(n,R)=>E(n,R,void 0,s&&s[R]));else{const n=Object.keys(e);r=new Array(n.length);for(let R=0,A=n.length;R<A;R++){const o=n[R];r[R]=E(e[o],o,R,s&&s[R])}}else r=[];return t&&(t[T]=r),r}function St(e,E,t={},T,r){if(Be.isCE||Be.parent&&ht(Be.parent)&&Be.parent.isCE)return E!=="default"&&(t.name=E),X("slot",t,T&&T());let s=e[E];s&&s._c&&(s._d=!1),h();const n=s&&_o(s(t)),R=fe(Le,{key:t.key||n&&n.key||`_${E}`},n||(T?T():[]),n&&e._===1?64:-2);return!r&&R.scopeId&&(R.slotScopeIds=[R.scopeId+"-s"]),s&&s._c&&(s._d=!0),R}function _o(e){return e.some(E=>lT(E)?!(E.type===DE||E.type===Le&&!_o(E.children)):!0)?e:null}const Ar=e=>e?ho(e)?qr(e)||e.proxy:Ar(e.parent):null,Gt=He(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ar(e.parent),$root:e=>Ar(e.root),$emit:e=>e.emit,$options:e=>$r(e),$forceUpdate:e=>e.f||(e.f=()=>Wr(e.update)),$nextTick:e=>e.n||(e.n=ro.bind(e.proxy)),$watch:e=>JS.bind(e)}),jT=(e,E)=>e!==ce&&!e.__isScriptSetup&&Se(e,E),rO={get({_:e},E){const{ctx:t,setupState:T,data:r,props:s,accessCache:n,type:R,appContext:A}=e;let o;if(E[0]!=="$"){const l=n[E];if(l!==void 0)switch(l){case 1:return T[E];case 2:return r[E];case 4:return t[E];case 3:return s[E]}else{if(jT(T,E))return n[E]=1,T[E];if(r!==ce&&Se(r,E))return n[E]=2,r[E];if((o=e.propsOptions[0])&&Se(o,E))return n[E]=3,s[E];if(t!==ce&&Se(t,E))return n[E]=4,t[E];ir&&(n[E]=0)}}const i=Gt[E];let a,I;if(i)return E==="$attrs"&&we(e,"get",E),i(e);if((a=R.__cssModules)&&(a=a[E]))return a;if(t!==ce&&Se(t,E))return n[E]=4,t[E];if(I=A.config.globalProperties,Se(I,E))return I[E]},set({_:e},E,t){const{data:T,setupState:r,ctx:s}=e;return jT(r,E)?(r[E]=t,!0):T!==ce&&Se(T,E)?(T[E]=t,!0):Se(e.props,E)||E[0]==="$"&&E.slice(1)in e?!1:(s[E]=t,!0)},has({_:{data:e,setupState:E,accessCache:t,ctx:T,appContext:r,propsOptions:s}},n){let R;return!!t[n]||e!==ce&&Se(e,n)||jT(E,n)||(R=s[0])&&Se(R,n)||Se(T,n)||Se(Gt,n)||Se(r.config.globalProperties,n)},defineProperty(e,E,t){return t.get!=null?e._.accessCache[E]=0:Se(t,"value")&&this.set(e,E,t.value,null),Reflect.defineProperty(e,E,t)}};function Bs(e){return z(e)?e.reduce((E,t)=>(E[t]=null,E),{}):e}let ir=!0;function sO(e){const E=$r(e),t=e.proxy,T=e.ctx;ir=!1,E.beforeCreate&&Fs(E.beforeCreate,e,"bc");const{data:r,computed:s,methods:n,watch:R,provide:A,inject:o,created:i,beforeMount:a,mounted:I,beforeUpdate:l,updated:U,activated:B,deactivated:V,beforeDestroy:$,beforeUnmount:J,destroyed:Q,unmounted:H,render:ee,renderTracked:Ce,renderTriggered:Ae,errorCaptured:Ee,serverPrefetch:k,expose:C,inheritAttrs:p,components:L,directives:v,filters:K}=E;if(o&&nO(o,T,null),n)for(const u in n){const g=n[u];re(g)&&(T[u]=g.bind(t))}if(r){const u=r.call(t,t);ue(u)&&(e.data=dE(u))}if(ir=!0,s)for(const u in s){const g=s[u],te=re(g)?g.bind(t,t):re(g.get)?g.get.bind(t,t):nE,ae=!re(g)&&re(g.set)?g.set.bind(t):nE,Ie=ze({get:te,set:ae});Object.defineProperty(T,u,{enumerable:!0,configurable:!0,get:()=>Ie.value,set:Pe=>Ie.value=Pe})}if(R)for(const u in R)Co(R[u],T,t,u);if(A){const u=re(A)?A.call(t):A;Reflect.ownKeys(u).forEach(g=>{OO(g,u[g])})}i&&Fs(i,e,"c");function Z(u,g){z(g)?g.forEach(te=>u(te.bind(t))):g&&u(g.bind(t))}if(Z(No,a),Z(Xr,I),Z(QS,l),Z(ZS,U),Z(kS,B),Z(jS,V),Z(TO,Ee),Z(tO,Ce),Z(EO,Ae),Z(zS,J),Z(lo,H),Z(eO,k),z(C))if(C.length){const u=e.exposed||(e.exposed={});C.forEach(g=>{Object.defineProperty(u,g,{get:()=>t[g],set:te=>t[g]=te})})}else e.exposed||(e.exposed={});ee&&e.render===nE&&(e.render=ee),p!=null&&(e.inheritAttrs=p),L&&(e.components=L),v&&(e.directives=v)}function nO(e,E,t=nE){z(e)&&(e=Sr(e));for(const T in e){const r=e[T];let s;ue(r)?"default"in r?s=gt(r.from||T,r.default,!0):s=gt(r.from||T):s=gt(r),Ue(s)?Object.defineProperty(E,T,{enumerable:!0,configurable:!0,get:()=>s.value,set:n=>s.value=n}):E[T]=s}}function Fs(e,E,t){eE(z(e)?e.map(T=>T.bind(E.proxy)):e.bind(E.proxy),E,t)}function Co(e,E,t,T){const r=T.includes(".")?Oo(t,T):()=>t[T];if(de(e)){const s=E[e];re(s)&&Et(r,s)}else if(re(e))Et(r,e.bind(t));else if(ue(e))if(z(e))e.forEach(s=>Co(s,E,t,T));else{const s=re(e.handler)?e.handler.bind(t):E[e.handler];re(s)&&Et(r,s,e)}}function $r(e){const E=e.type,{mixins:t,extends:T}=E,{mixins:r,optionsCache:s,config:{optionMergeStrategies:n}}=e.appContext,R=s.get(E);let A;return R?A=R:!r.length&&!t&&!T?A=E:(A={},r.length&&r.forEach(o=>NT(A,o,n,!0)),NT(A,E,n)),ue(E)&&s.set(E,A),A}function NT(e,E,t,T=!1){const{mixins:r,extends:s}=E;s&&NT(e,s,t,!0),r&&r.forEach(n=>NT(e,n,t,!0));for(const n in E)if(!(T&&n==="expose")){const R=RO[n]||t&&t[n];e[n]=R?R(e[n],E[n]):E[n]}return e}const RO={data:vs,props:Ys,emits:Ys,methods:Mt,computed:Mt,beforeCreate:ve,created:ve,beforeMount:ve,mounted:ve,beforeUpdate:ve,updated:ve,beforeDestroy:ve,beforeUnmount:ve,destroyed:ve,unmounted:ve,activated:ve,deactivated:ve,errorCaptured:ve,serverPrefetch:ve,components:Mt,directives:Mt,watch:AO,provide:vs,inject:oO};function vs(e,E){return E?e?function(){return He(re(e)?e.call(this,this):e,re(E)?E.call(this,this):E)}:E:e}function oO(e,E){return Mt(Sr(e),Sr(E))}function Sr(e){if(z(e)){const E={};for(let t=0;t<e.length;t++)E[e[t]]=e[t];return E}return e}function ve(e,E){return e?[...new Set([].concat(e,E))]:E}function Mt(e,E){return e?He(Object.create(null),e,E):E}function Ys(e,E){return e?z(e)&&z(E)?[...new Set([...e,...E])]:He(Object.create(null),Bs(e),Bs(E??{})):E}function AO(e,E){if(!e)return E;if(!E)return e;const t=He(Object.create(null),e);for(const T in E)t[T]=ve(e[T],E[T]);return t}function co(){return{app:null,config:{isNativeTag:Wi,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let iO=0;function SO(e,E){return function(T,r=null){re(T)||(T=He({},T)),r!=null&&!ue(r)&&(r=null);const s=co(),n=new WeakSet;let R=!1;const A=s.app={_uid:iO++,_component:T,_props:r,_container:null,_context:s,_instance:null,version:WO,get config(){return s.config},set config(o){},use(o,...i){return n.has(o)||(o&&re(o.install)?(n.add(o),o.install(A,...i)):re(o)&&(n.add(o),o(A,...i))),A},mixin(o){return s.mixins.includes(o)||s.mixins.push(o),A},component(o,i){return i?(s.components[o]=i,A):s.components[o]},directive(o,i){return i?(s.directives[o]=i,A):s.directives[o]},mount(o,i,a){if(!R){const I=X(T,r);return I.appContext=s,i&&E?E(I,o):e(I,o,a),R=!0,A._container=o,o.__vue_app__=A,qr(I.component)||I.component.proxy}},unmount(){R&&(e(null,A._container),delete A._container.__vue_app__)},provide(o,i){return s.provides[o]=i,A},runWithContext(o){Vt=A;try{return o()}finally{Vt=null}}};return A}}let Vt=null;function OO(e,E){if(me){let t=me.provides;const T=me.parent&&me.parent.provides;T===t&&(t=me.provides=Object.create(T)),t[e]=E}}function gt(e,E,t=!1){const T=me||Be;if(T||Vt){const r=T?T.parent==null?T.vnode.appContext&&T.vnode.appContext.provides:T.parent.provides:Vt._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return t&&re(E)?E.call(T&&T.proxy):E}}function aO(){return!!(me||Be||Vt)}function IO(e,E,t,T=!1){const r={},s={};ST(s,BT,1),e.propsDefaults=Object.create(null),Lo(e,E,r,s);for(const n in e.propsOptions[0])n in r||(r[n]=void 0);t?e.props=T?r:PS(r):e.type.props?e.props=r:e.props=s,e.attrs=s}function NO(e,E,t,T){const{props:r,attrs:s,vnode:{patchFlag:n}}=e,R=Oe(r),[A]=e.propsOptions;let o=!1;if((T||n>0)&&!(n&16)){if(n&8){const i=e.vnode.dynamicProps;for(let a=0;a<i.length;a++){let I=i[a];if(HT(e.emitsOptions,I))continue;const l=E[I];if(A)if(Se(s,I))l!==s[I]&&(s[I]=l,o=!0);else{const U=RE(I);r[U]=Or(A,R,U,l,e,!1)}else l!==s[I]&&(s[I]=l,o=!0)}}}else{Lo(e,E,r,s)&&(o=!0);let i;for(const a in R)(!E||!Se(E,a)&&((i=ot(a))===a||!Se(E,i)))&&(A?t&&(t[a]!==void 0||t[i]!==void 0)&&(r[a]=Or(A,R,a,void 0,e,!0)):delete r[a]);if(s!==R)for(const a in s)(!E||!Se(E,a))&&(delete s[a],o=!0)}o&&SE(e,"set","$attrs")}function Lo(e,E,t,T){const[r,s]=e.propsOptions;let n=!1,R;if(E)for(let A in E){if(rT(A))continue;const o=E[A];let i;r&&Se(r,i=RE(A))?!s||!s.includes(i)?t[i]=o:(R||(R={}))[i]=o:HT(e.emitsOptions,A)||(!(A in T)||o!==T[A])&&(T[A]=o,n=!0)}if(s){const A=Oe(t),o=R||ce;for(let i=0;i<s.length;i++){const a=s[i];t[a]=Or(r,A,a,o[a],e,!Se(o,a))}}return n}function Or(e,E,t,T,r,s){const n=e[t];if(n!=null){const R=Se(n,"default");if(R&&T===void 0){const A=n.default;if(n.type!==Function&&!n.skipFactory&&re(A)){const{propsDefaults:o}=r;t in o?T=o[t]:(st(r),T=o[t]=A.call(null,E),YE())}else T=A}n[0]&&(s&&!R?T=!1:n[1]&&(T===""||T===ot(t))&&(T=!0))}return T}function uo(e,E,t=!1){const T=E.propsCache,r=T.get(e);if(r)return r;const s=e.props,n={},R=[];let A=!1;if(!re(e)){const i=a=>{A=!0;const[I,l]=uo(a,E,!0);He(n,I),l&&R.push(...l)};!t&&E.mixins.length&&E.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}if(!s&&!A)return ue(e)&&T.set(e,ZE),ZE;if(z(s))for(let i=0;i<s.length;i++){const a=RE(s[i]);xs(a)&&(n[a]=ce)}else if(s)for(const i in s){const a=RE(i);if(xs(a)){const I=s[i],l=n[a]=z(I)||re(I)?{type:I}:He({},I);if(l){const U=Ws(Boolean,l.type),B=Ws(String,l.type);l[0]=U>-1,l[1]=B<0||U<B,(U>-1||Se(l,"default"))&&R.push(a)}}}const o=[n,R];return ue(e)&&T.set(e,o),o}function xs(e){return e[0]!=="$"}function Vs(e){const E=e&&e.toString().match(/^\s*(function|class) (\w+)/);return E?E[2]:e===null?"null":""}function ws(e,E){return Vs(e)===Vs(E)}function Ws(e,E){return z(E)?E.findIndex(t=>ws(t,e)):re(E)&&ws(E,e)?0:-1}const po=e=>e[0]==="_"||e==="$stable",Kr=e=>z(e)?e.map(rE):[rE(e)],lO=(e,E,t)=>{if(E._n)return E;const T=ie((...r)=>Kr(E(...r)),t);return T._c=!1,T},fo=(e,E,t)=>{const T=e._ctx;for(const r in e){if(po(r))continue;const s=e[r];if(re(s))E[r]=lO(r,s,T);else if(s!=null){const n=Kr(s);E[r]=()=>n}}},Po=(e,E)=>{const t=Kr(E);e.slots.default=()=>t},_O=(e,E)=>{if(e.vnode.shapeFlag&32){const t=E._;t?(e.slots=Oe(E),ST(E,"_",t)):fo(E,e.slots={})}else e.slots={},E&&Po(e,E);ST(e.slots,BT,1)},CO=(e,E,t)=>{const{vnode:T,slots:r}=e;let s=!0,n=ce;if(T.shapeFlag&32){const R=E._;R?t&&R===1?s=!1:(He(r,E),!t&&R===1&&delete r._):(s=!E.$stable,fo(E,r)),n=E}else E&&(Po(e,E),n={default:1});if(s)for(const R in r)!po(R)&&n[R]==null&&delete r[R]};function ar(e,E,t,T,r=!1){if(z(e)){e.forEach((I,l)=>ar(I,E&&(z(E)?E[l]:E),t,T,r));return}if(ht(T)&&!r)return;const s=T.shapeFlag&4?qr(T.component)||T.component.proxy:T.el,n=r?null:s,{i:R,r:A}=e,o=E&&E.r,i=R.refs===ce?R.refs={}:R.refs,a=R.setupState;if(o!=null&&o!==A&&(de(o)?(i[o]=null,Se(a,o)&&(a[o]=null)):Ue(o)&&(o.value=null)),re(A))fE(A,R,12,[n,i]);else{const I=de(A),l=Ue(A);if(I||l){const U=()=>{if(e.f){const B=I?Se(a,A)?a[A]:i[A]:A.value;r?z(B)&&yr(B,s):z(B)?B.includes(s)||B.push(s):I?(i[A]=[s],Se(a,A)&&(a[A]=i[A])):(A.value=[s],e.k&&(i[e.k]=A.value))}else I?(i[A]=n,Se(a,A)&&(a[A]=n)):l&&(A.value=n,e.k&&(i[e.k]=n))};n?(U.id=-1,Ve(U,t)):U()}}}const Ve=KS;function cO(e){return LO(e)}function LO(e,E){const t=rr();t.__VUE__=!0;const{insert:T,remove:r,patchProp:s,createElement:n,createText:R,createComment:A,setText:o,setElementText:i,parentNode:a,nextSibling:I,setScopeId:l=nE,insertStaticContent:U}=e,B=(S,N,c,D=null,P=null,m=null,F=!1,_=null,y=!!N.dynamicChildren)=>{if(S===N)return;S&&!pt(S,N)&&(D=hE(S),Pe(S,P,m,!0),S=null),N.patchFlag===-2&&(y=!1,N.dynamicChildren=null);const{type:f,ref:b,shapeFlag:x}=N;switch(f){case bT:V(S,N,c,D);break;case DE:$(S,N,c,D);break;case sT:S==null&&J(N,c,D,F);break;case Le:L(S,N,c,D,P,m,F,_,y);break;default:x&1?ee(S,N,c,D,P,m,F,_,y):x&6?v(S,N,c,D,P,m,F,_,y):(x&64||x&128)&&f.process(S,N,c,D,P,m,F,_,y,AE)}b!=null&&P&&ar(b,S&&S.ref,m,N||S,!N)},V=(S,N,c,D)=>{if(S==null)T(N.el=R(N.children),c,D);else{const P=N.el=S.el;N.children!==S.children&&o(P,N.children)}},$=(S,N,c,D)=>{S==null?T(N.el=A(N.children||""),c,D):N.el=S.el},J=(S,N,c,D)=>{[S.el,S.anchor]=U(S.children,N,c,D,S.el,S.anchor)},Q=({el:S,anchor:N},c,D)=>{let P;for(;S&&S!==N;)P=I(S),T(S,c,D),S=P;T(N,c,D)},H=({el:S,anchor:N})=>{let c;for(;S&&S!==N;)c=I(S),r(S),S=c;r(N)},ee=(S,N,c,D,P,m,F,_,y)=>{F=F||N.type==="svg",S==null?Ce(N,c,D,P,m,F,_,y):k(S,N,P,m,F,_,y)},Ce=(S,N,c,D,P,m,F,_)=>{let y,f;const{type:b,props:x,shapeFlag:w,transition:q,dirs:se}=S;if(y=S.el=n(S.type,m,x&&x.is,x),w&8?i(y,S.children):w&16&&Ee(S.children,y,null,D,P,m&&b!=="foreignObject",F,_),se&&gE(S,null,D,"created"),Ae(y,S,S.scopeId,F,D),x){for(const G in x)G!=="value"&&!rT(G)&&s(y,G,null,x[G],m,S.children,D,P,De);"value"in x&&s(y,"value",null,x.value),(f=x.onVnodeBeforeMount)&&TE(f,D,S)}se&&gE(S,null,D,"beforeMount");const M=uO(P,q);M&&q.beforeEnter(y),T(y,N,c),((f=x&&x.onVnodeMounted)||M||se)&&Ve(()=>{f&&TE(f,D,S),M&&q.enter(y),se&&gE(S,null,D,"mounted")},P)},Ae=(S,N,c,D,P)=>{if(c&&l(S,c),D)for(let m=0;m<D.length;m++)l(S,D[m]);if(P){let m=P.subTree;if(N===m){const F=P.vnode;Ae(S,F,F.scopeId,F.slotScopeIds,P.parent)}}},Ee=(S,N,c,D,P,m,F,_,y=0)=>{for(let f=y;f<S.length;f++){const b=S[f]=_?CE(S[f]):rE(S[f]);B(null,b,N,c,D,P,m,F,_)}},k=(S,N,c,D,P,m,F)=>{const _=N.el=S.el;let{patchFlag:y,dynamicChildren:f,dirs:b}=N;y|=S.patchFlag&16;const x=S.props||ce,w=N.props||ce;let q;c&&mE(c,!1),(q=w.onVnodeBeforeUpdate)&&TE(q,c,N,S),b&&gE(N,S,c,"beforeUpdate"),c&&mE(c,!0);const se=P&&N.type!=="foreignObject";if(f?C(S.dynamicChildren,f,_,c,D,se,m):F||g(S,N,_,null,c,D,se,m,!1),y>0){if(y&16)p(_,N,x,w,c,D,P);else if(y&2&&x.class!==w.class&&s(_,"class",null,w.class,P),y&4&&s(_,"style",x.style,w.style,P),y&8){const M=N.dynamicProps;for(let G=0;G<M.length;G++){const W=M[G],Te=x[W],pe=w[W];(pe!==Te||W==="value")&&s(_,W,Te,pe,P,S.children,c,D,De)}}y&1&&S.children!==N.children&&i(_,N.children)}else!F&&f==null&&p(_,N,x,w,c,D,P);((q=w.onVnodeUpdated)||b)&&Ve(()=>{q&&TE(q,c,N,S),b&&gE(N,S,c,"updated")},D)},C=(S,N,c,D,P,m,F)=>{for(let _=0;_<N.length;_++){const y=S[_],f=N[_],b=y.el&&(y.type===Le||!pt(y,f)||y.shapeFlag&70)?a(y.el):c;B(y,f,b,null,D,P,m,F,!0)}},p=(S,N,c,D,P,m,F)=>{if(c!==D){if(c!==ce)for(const _ in c)!rT(_)&&!(_ in D)&&s(S,_,c[_],null,F,N.children,P,m,De);for(const _ in D){if(rT(_))continue;const y=D[_],f=c[_];y!==f&&_!=="value"&&s(S,_,f,y,F,N.children,P,m,De)}"value"in D&&s(S,"value",c.value,D.value)}},L=(S,N,c,D,P,m,F,_,y)=>{const f=N.el=S?S.el:R(""),b=N.anchor=S?S.anchor:R("");let{patchFlag:x,dynamicChildren:w,slotScopeIds:q}=N;q&&(_=_?_.concat(q):q),S==null?(T(f,c,D),T(b,c,D),Ee(N.children,c,b,P,m,F,_,y)):x>0&&x&64&&w&&S.dynamicChildren?(C(S.dynamicChildren,w,c,P,m,F,_),(N.key!=null||P&&N===P.subTree)&&Jr(S,N,!0)):g(S,N,c,b,P,m,F,_,y)},v=(S,N,c,D,P,m,F,_,y)=>{N.slotScopeIds=_,S==null?N.shapeFlag&512?P.ctx.activate(N,c,D,F,y):K(N,c,D,P,m,F,y):le(S,N,y)},K=(S,N,c,D,P,m,F)=>{const _=S.component=yO(S,D,P);if(ao(S)&&(_.ctx.renderer=AE),bO(_),_.asyncDep){if(P&&P.registerDep(_,Z),!S.el){const y=_.subTree=X(DE);$(null,y,N,c)}return}Z(_,S,N,c,P,m,F)},le=(S,N,c)=>{const D=N.component=S.component;if(VS(S,N,c))if(D.asyncDep&&!D.asyncResolved){u(D,N,c);return}else D.next=N,bS(D.update),D.update();else N.el=S.el,D.vnode=N},Z=(S,N,c,D,P,m,F)=>{const _=()=>{if(S.isMounted){let{next:b,bu:x,u:w,parent:q,vnode:se}=S,M=b,G;mE(S,!1),b?(b.el=se.el,u(S,b,F)):b=se,x&&KT(x),(G=b.props&&b.props.onVnodeBeforeUpdate)&&TE(G,q,b,se),mE(S,!0);const W=kT(S),Te=S.subTree;S.subTree=W,B(Te,W,a(Te.el),hE(Te),S,P,m),b.el=W.el,M===null&&wS(S,W.el),w&&Ve(w,P),(G=b.props&&b.props.onVnodeUpdated)&&Ve(()=>TE(G,q,b,se),P)}else{let b;const{el:x,props:w}=N,{bm:q,m:se,parent:M}=S,G=ht(N);if(mE(S,!1),q&&KT(q),!G&&(b=w&&w.onVnodeBeforeMount)&&TE(b,M,N),mE(S,!0),x&&ut){const W=()=>{S.subTree=kT(S),ut(x,S.subTree,S,P,null)};G?N.type.__asyncLoader().then(()=>!S.isUnmounted&&W()):W()}else{const W=S.subTree=kT(S);B(null,W,c,D,S,P,m),N.el=W.el}if(se&&Ve(se,P),!G&&(b=w&&w.onVnodeMounted)){const W=N;Ve(()=>TE(b,M,W),P)}(N.shapeFlag&256||M&&ht(M.vnode)&&M.vnode.shapeFlag&256)&&S.a&&Ve(S.a,P),S.isMounted=!0,N=c=D=null}},y=S.effect=new Fr(_,()=>Wr(f),S.scope),f=S.update=()=>y.run();f.id=S.uid,mE(S,!0),f()},u=(S,N,c)=>{N.component=S;const D=S.vnode.props;S.vnode=N,S.next=null,NO(S,N.props,D,c),CO(S,N.children,c),At(),Hs(S),it()},g=(S,N,c,D,P,m,F,_,y=!1)=>{const f=S&&S.children,b=S?S.shapeFlag:0,x=N.children,{patchFlag:w,shapeFlag:q}=N;if(w>0){if(w&128){ae(f,x,c,D,P,m,F,_,y);return}else if(w&256){te(f,x,c,D,P,m,F,_,y);return}}q&8?(b&16&&De(f,P,m),x!==f&&i(c,x)):b&16?q&16?ae(f,x,c,D,P,m,F,_,y):De(f,P,m,!0):(b&8&&i(c,""),q&16&&Ee(x,c,D,P,m,F,_,y))},te=(S,N,c,D,P,m,F,_,y)=>{S=S||ZE,N=N||ZE;const f=S.length,b=N.length,x=Math.min(f,b);let w;for(w=0;w<x;w++){const q=N[w]=y?CE(N[w]):rE(N[w]);B(S[w],q,c,null,P,m,F,_,y)}f>b?De(S,P,m,!0,!1,x):Ee(N,c,D,P,m,F,_,y,x)},ae=(S,N,c,D,P,m,F,_,y)=>{let f=0;const b=N.length;let x=S.length-1,w=b-1;for(;f<=x&&f<=w;){const q=S[f],se=N[f]=y?CE(N[f]):rE(N[f]);if(pt(q,se))B(q,se,c,null,P,m,F,_,y);else break;f++}for(;f<=x&&f<=w;){const q=S[x],se=N[w]=y?CE(N[w]):rE(N[w]);if(pt(q,se))B(q,se,c,null,P,m,F,_,y);else break;x--,w--}if(f>x){if(f<=w){const q=w+1,se=q<b?N[q].el:D;for(;f<=w;)B(null,N[f]=y?CE(N[f]):rE(N[f]),c,se,P,m,F,_,y),f++}}else if(f>w)for(;f<=x;)Pe(S[f],P,m,!0),f++;else{const q=f,se=f,M=new Map;for(f=se;f<=w;f++){const We=N[f]=y?CE(N[f]):rE(N[f]);We.key!=null&&M.set(We.key,f)}let G,W=0;const Te=w-se+1;let pe=!1,Ke=0;const GE=new Array(Te);for(f=0;f<Te;f++)GE[f]=0;for(f=q;f<=x;f++){const We=S[f];if(W>=Te){Pe(We,P,m,!0);continue}let tE;if(We.key!=null)tE=M.get(We.key);else for(G=se;G<=w;G++)if(GE[G-se]===0&&pt(We,N[G])){tE=G;break}tE===void 0?Pe(We,P,m,!0):(GE[tE-se]=f+1,tE>=Ke?Ke=tE:pe=!0,B(We,N[tE],c,null,P,m,F,_,y),W++)}const jt=pe?pO(GE):ZE;for(G=jt.length-1,f=Te-1;f>=0;f--){const We=se+f,tE=N[We],_s=We+1<b?N[We+1].el:D;GE[f]===0?B(null,tE,c,_s,P,m,F,_,y):pe&&(G<0||f!==jt[G]?Ie(tE,c,_s,2):G--)}}},Ie=(S,N,c,D,P=null)=>{const{el:m,type:F,transition:_,children:y,shapeFlag:f}=S;if(f&6){Ie(S.component.subTree,N,c,D);return}if(f&128){S.suspense.move(N,c,D);return}if(f&64){F.move(S,N,c,AE);return}if(F===Le){T(m,N,c);for(let x=0;x<y.length;x++)Ie(y[x],N,c,D);T(S.anchor,N,c);return}if(F===sT){Q(S,N,c);return}if(D!==2&&f&1&&_)if(D===0)_.beforeEnter(m),T(m,N,c),Ve(()=>_.enter(m),P);else{const{leave:x,delayLeave:w,afterLeave:q}=_,se=()=>T(m,N,c),M=()=>{x(m,()=>{se(),q&&q()})};w?w(m,se,M):M()}else T(m,N,c)},Pe=(S,N,c,D=!1,P=!1)=>{const{type:m,props:F,ref:_,children:y,dynamicChildren:f,shapeFlag:b,patchFlag:x,dirs:w}=S;if(_!=null&&ar(_,null,c,S,!0),b&256){N.ctx.deactivate(S);return}const q=b&1&&w,se=!ht(S);let M;if(se&&(M=F&&F.onVnodeBeforeUnmount)&&TE(M,N,S),b&6)Fe(S.component,c,D);else{if(b&128){S.suspense.unmount(c,D);return}q&&gE(S,null,N,"beforeUnmount"),b&64?S.type.remove(S,N,c,P,AE,D):f&&(m!==Le||x>0&&x&64)?De(f,N,c,!1,!0):(m===Le&&x&384||!P&&b&16)&&De(y,N,c),D&&ke(S)}(se&&(M=F&&F.onVnodeUnmounted)||q)&&Ve(()=>{M&&TE(M,N,S),q&&gE(S,null,N,"unmounted")},c)},ke=S=>{const{type:N,el:c,anchor:D,transition:P}=S;if(N===Le){$E(c,D);return}if(N===sT){H(S);return}const m=()=>{r(c),P&&!P.persisted&&P.afterLeave&&P.afterLeave()};if(S.shapeFlag&1&&P&&!P.persisted){const{leave:F,delayLeave:_}=P,y=()=>F(c,m);_?_(S.el,m,y):y()}else m()},$E=(S,N)=>{let c;for(;S!==N;)c=I(S),r(S),S=c;r(N)},Fe=(S,N,c)=>{const{bum:D,scope:P,update:m,subTree:F,um:_}=S;D&&KT(D),P.stop(),m&&(m.active=!1,Pe(F,S,N,c)),_&&Ve(_,N),Ve(()=>{S.isUnmounted=!0},N),N&&N.pendingBranch&&!N.isUnmounted&&S.asyncDep&&!S.asyncResolved&&S.suspenseId===N.pendingId&&(N.deps--,N.deps===0&&N.resolve())},De=(S,N,c,D=!1,P=!1,m=0)=>{for(let F=m;F<S.length;F++)Pe(S[F],N,c,D,P)},hE=S=>S.shapeFlag&6?hE(S.component.subTree):S.shapeFlag&128?S.suspense.next():I(S.anchor||S.el),ct=(S,N,c)=>{S==null?N._vnode&&Pe(N._vnode,null,null,!0):B(N._vnode||null,S,N,null,null,null,c),Hs(),no(),N._vnode=S},AE={p:B,um:Pe,m:Ie,r:ke,mt:K,mc:Ee,pc:g,pbc:C,n:hE,o:e};let Lt,ut;return E&&([Lt,ut]=E(AE)),{render:ct,hydrate:Lt,createApp:SO(ct,Lt)}}function mE({effect:e,update:E},t){e.allowRecurse=E.allowRecurse=t}function uO(e,E){return(!e||e&&!e.pendingBranch)&&E&&!E.persisted}function Jr(e,E,t=!1){const T=e.children,r=E.children;if(z(T)&&z(r))for(let s=0;s<T.length;s++){const n=T[s];let R=r[s];R.shapeFlag&1&&!R.dynamicChildren&&((R.patchFlag<=0||R.patchFlag===32)&&(R=r[s]=CE(r[s]),R.el=n.el),t||Jr(n,R)),R.type===bT&&(R.el=n.el)}}function pO(e){const E=e.slice(),t=[0];let T,r,s,n,R;const A=e.length;for(T=0;T<A;T++){const o=e[T];if(o!==0){if(r=t[t.length-1],e[r]<o){E[T]=r,t.push(T);continue}for(s=0,n=t.length-1;s<n;)R=s+n>>1,e[t[R]]<o?s=R+1:n=R;o<e[t[s]]&&(s>0&&(E[T]=t[s-1]),t[s]=T)}}for(s=t.length,n=t[s-1];s-- >0;)t[s]=n,n=E[n];return t}const fO=e=>e.__isTeleport,mt=e=>e&&(e.disabled||e.disabled===""),Xs=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ir=(e,E)=>{const t=e&&e.to;return de(t)?E?E(t):null:t},PO={name:"Teleport",__isTeleport:!0,process(e,E,t,T,r,s,n,R,A,o){const{mc:i,pc:a,pbc:I,o:{insert:l,querySelector:U,createText:B,createComment:V}}=o,$=mt(E.props);let{shapeFlag:J,children:Q,dynamicChildren:H}=E;if(e==null){const ee=E.el=B(""),Ce=E.anchor=B("");l(ee,t,T),l(Ce,t,T);const Ae=E.target=Ir(E.props,U),Ee=E.targetAnchor=B("");Ae&&(l(Ee,Ae),n=n||Xs(Ae));const k=(C,p)=>{J&16&&i(Q,C,p,r,s,n,R,A)};$?k(t,Ce):Ae&&k(Ae,Ee)}else{E.el=e.el;const ee=E.anchor=e.anchor,Ce=E.target=e.target,Ae=E.targetAnchor=e.targetAnchor,Ee=mt(e.props),k=Ee?t:Ce,C=Ee?ee:Ae;if(n=n||Xs(Ce),H?(I(e.dynamicChildren,H,k,r,s,n,R),Jr(e,E,!0)):A||a(e,E,k,C,r,s,n,R,!1),$)Ee?E.props&&e.props&&E.props.to!==e.props.to&&(E.props.to=e.props.to):TT(E,t,ee,o,1);else if((E.props&&E.props.to)!==(e.props&&e.props.to)){const p=E.target=Ir(E.props,U);p&&TT(E,p,null,o,0)}else Ee&&TT(E,Ce,Ae,o,1)}Do(E)},remove(e,E,t,T,{um:r,o:{remove:s}},n){const{shapeFlag:R,children:A,anchor:o,targetAnchor:i,target:a,props:I}=e;if(a&&s(i),n&&s(o),R&16){const l=n||!mt(I);for(let U=0;U<A.length;U++){const B=A[U];r(B,E,t,l,!!B.dynamicChildren)}}},move:TT,hydrate:DO};function TT(e,E,t,{o:{insert:T},m:r},s=2){s===0&&T(e.targetAnchor,E,t);const{el:n,anchor:R,shapeFlag:A,children:o,props:i}=e,a=s===2;if(a&&T(n,E,t),(!a||mt(i))&&A&16)for(let I=0;I<o.length;I++)r(o[I],E,t,2);a&&T(R,E,t)}function DO(e,E,t,T,r,s,{o:{nextSibling:n,parentNode:R,querySelector:A}},o){const i=E.target=Ir(E.props,A);if(i){const a=i._lpa||i.firstChild;if(E.shapeFlag&16)if(mt(E.props))E.anchor=o(n(e),E,R(e),t,T,r,s),E.targetAnchor=a;else{E.anchor=n(e);let I=a;for(;I;)if(I=n(I),I&&I.nodeType===8&&I.data==="teleport anchor"){E.targetAnchor=I,i._lpa=E.targetAnchor&&n(E.targetAnchor);break}o(a,E,i,t,T,r,s)}Do(E)}return E.anchor&&n(E.anchor)}const dO=PO;function Do(e){const E=e.ctx;if(E&&E.ut){let t=e.children[0].el;for(;t&&t!==e.targetAnchor;)t.nodeType===1&&t.setAttribute("data-v-owner",E.uid),t=t.nextSibling;E.ut()}}const Le=Symbol.for("v-fgt"),bT=Symbol.for("v-txt"),DE=Symbol.for("v-cmt"),sT=Symbol.for("v-stc"),Ht=[];let Ze=null;function h(e=!1){Ht.push(Ze=e?null:[])}function MO(){Ht.pop(),Ze=Ht[Ht.length-1]||null}let wt=1;function $s(e){wt+=e}function Mo(e){return e.dynamicChildren=wt>0?Ze||ZE:null,MO(),wt>0&&Ze&&Ze.push(e),e}function Y(e,E,t,T,r,s){return Mo(O(e,E,t,T,r,s,!0))}function fe(e,E,t,T,r){return Mo(X(e,E,t,T,r,!0))}function lT(e){return e?e.__v_isVNode===!0:!1}function pt(e,E){return e.type===E.type&&e.key===E.key}const BT="__vInternal",Uo=({key:e})=>e??null,nT=({ref:e,ref_key:E,ref_for:t})=>(typeof e=="number"&&(e=""+e),e!=null?de(e)||Ue(e)||re(e)?{i:Be,r:e,k:E,f:!!t}:e:null);function O(e,E=null,t=null,T=0,r=null,s=e===Le?0:1,n=!1,R=!1){const A={__v_isVNode:!0,__v_skip:!0,type:e,props:E,key:E&&Uo(E),ref:E&&nT(E),scopeId:Ao,slotScopeIds:null,children:t,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:T,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Be};return R?(kr(A,t),s&128&&e.normalize(A)):t&&(A.shapeFlag|=de(t)?8:16),wt>0&&!n&&Ze&&(A.patchFlag>0||s&6)&&A.patchFlag!==32&&Ze.push(A),A}const X=UO;function UO(e,E=null,t=null,T=0,r=null,s=!1){if((!e||e===WS)&&(e=DE),lT(e)){const R=rt(e,E,!0);return t&&kr(R,t),wt>0&&!s&&Ze&&(R.shapeFlag&6?Ze[Ze.indexOf(e)]=R:Ze.push(R)),R.patchFlag|=-2,R}if(xO(e)&&(e=e.__vccOpts),E){E=hO(E);let{class:R,style:A}=E;R&&!de(R)&&(E.class=$e(R)),ue(A)&&(zR(A)&&!z(A)&&(A=He({},A)),E.style=hT(A))}const n=de(e)?1:$S(e)?128:fO(e)?64:ue(e)?4:re(e)?2:0;return O(e,E,t,T,r,n,s,!0)}function hO(e){return e?zR(e)||BT in e?He({},e):e:null}function rt(e,E,t=!1){const{props:T,ref:r,patchFlag:s,children:n}=e,R=E?gO(T||{},E):T;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:R,key:R&&Uo(R),ref:E&&E.ref?t&&r?z(r)?r.concat(nT(E)):[r,nT(E)]:nT(E):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:n,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:E&&e.type!==Le?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&rt(e.ssContent),ssFallback:e.ssFallback&&rt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ye(e=" ",E=0){return X(bT,null,e,E)}function GO(e,E){const t=X(sT,null,e);return t.staticCount=E,t}function oe(e="",E=!1){return E?(h(),fe(DE,null,e)):X(DE,null,e)}function rE(e){return e==null||typeof e=="boolean"?X(DE):z(e)?X(Le,null,e.slice()):typeof e=="object"?CE(e):X(bT,null,String(e))}function CE(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:rt(e)}function kr(e,E){let t=0;const{shapeFlag:T}=e;if(E==null)E=null;else if(z(E))t=16;else if(typeof E=="object")if(T&65){const r=E.default;r&&(r._c&&(r._d=!1),kr(e,r()),r._c&&(r._d=!0));return}else{t=32;const r=E._;!r&&!(BT in E)?E._ctx=Be:r===3&&Be&&(Be.slots._===1?E._=1:(E._=2,e.patchFlag|=1024))}else re(E)?(E={default:E,_ctx:Be},t=32):(E=String(E),T&64?(t=16,E=[Ye(E)]):t=8);e.children=E,e.shapeFlag|=t}function gO(...e){const E={};for(let t=0;t<e.length;t++){const T=e[t];for(const r in T)if(r==="class")E.class!==T.class&&(E.class=$e([E.class,T.class]));else if(r==="style")E.style=hT([E.style,T.style]);else if(DT(r)){const s=E[r],n=T[r];n&&s!==n&&!(z(s)&&s.includes(n))&&(E[r]=s?[].concat(s,n):n)}else r!==""&&(E[r]=T[r])}return E}function TE(e,E,t,T=null){eE(e,E,7,[t,T])}const mO=co();let HO=0;function yO(e,E,t){const T=e.type,r=(E?E.appContext:e.appContext)||mO,s={uid:HO++,vnode:e,type:T,parent:E,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new YR(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:E?E.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:uo(T,r),emitsOptions:oo(T,r),emit:null,emitted:null,propsDefaults:ce,inheritAttrs:T.inheritAttrs,ctx:ce,data:ce,props:ce,attrs:ce,slots:ce,refs:ce,setupState:ce,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:t,suspenseId:t?t.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=E?E.root:s,s.emit=vS.bind(null,s),e.ce&&e.ce(s),s}let me=null,jr,JE,Ks="__VUE_INSTANCE_SETTERS__";(JE=rr()[Ks])||(JE=rr()[Ks]=[]),JE.push(e=>me=e),jr=e=>{JE.length>1?JE.forEach(E=>E(e)):JE[0](e)};const st=e=>{jr(e),e.scope.on()},YE=()=>{me&&me.scope.off(),jr(null)};function ho(e){return e.vnode.shapeFlag&4}let Wt=!1;function bO(e,E=!1){Wt=E;const{props:t,children:T}=e.vnode,r=ho(e);IO(e,t,r,E),_O(e,T);const s=r?BO(e,E):void 0;return Wt=!1,s}function BO(e,E){const t=e.type;e.accessCache=Object.create(null),e.proxy=gT(new Proxy(e.ctx,rO));const{setup:T}=t;if(T){const r=e.setupContext=T.length>1?vO(e):null;st(e),At();const s=fE(T,e,0,[e.props,r]);if(it(),YE(),yR(s)){if(s.then(YE,YE),E)return s.then(n=>{Js(e,n,E)}).catch(n=>{mT(n,e,0)});e.asyncDep=s}else Js(e,s,E)}else Go(e,E)}function Js(e,E,t){re(E)?e.type.__ssrInlineRender?e.ssrRender=E:e.render=E:ue(E)&&(e.setupState=to(E)),Go(e,t)}let ks;function Go(e,E,t){const T=e.type;if(!e.render){if(!E&&ks&&!T.render){const r=T.template||$r(e).template;if(r){const{isCustomElement:s,compilerOptions:n}=e.appContext.config,{delimiters:R,compilerOptions:A}=T,o=He(He({isCustomElement:s,delimiters:R},n),A);T.render=ks(r,o)}}e.render=T.render||nE}{st(e),At();try{sO(e)}finally{it(),YE()}}}function FO(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(E,t){return we(e,"get","$attrs"),E[t]}}))}function vO(e){const E=t=>{e.exposed=t||{}};return{get attrs(){return FO(e)},slots:e.slots,emit:e.emit,expose:E}}function qr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(to(gT(e.exposed)),{get(E,t){if(t in E)return E[t];if(t in Gt)return Gt[t](e)},has(E,t){return t in E||t in Gt}}))}function YO(e,E=!0){return re(e)?e.displayName||e.name:e.name||E&&e.__name}function xO(e){return re(e)&&"__vccOpts"in e}const ze=(e,E)=>mS(e,E,Wt);function Xt(e,E,t){const T=arguments.length;return T===2?ue(E)&&!z(E)?lT(E)?X(e,null,[E]):X(e,E):X(e,null,E):(T>3?t=Array.prototype.slice.call(arguments,2):T===3&&lT(t)&&(t=[t]),X(e,E,t))}const VO=Symbol.for("v-scx"),wO=()=>gt(VO),WO="3.3.13",XO="http://www.w3.org/2000/svg",BE=typeof document<"u"?document:null,js=BE&&BE.createElement("template"),$O={insert:(e,E,t)=>{E.insertBefore(e,t||null)},remove:e=>{const E=e.parentNode;E&&E.removeChild(e)},createElement:(e,E,t,T)=>{const r=E?BE.createElementNS(XO,e):BE.createElement(e,t?{is:t}:void 0);return e==="select"&&T&&T.multiple!=null&&r.setAttribute("multiple",T.multiple),r},createText:e=>BE.createTextNode(e),createComment:e=>BE.createComment(e),setText:(e,E)=>{e.nodeValue=E},setElementText:(e,E)=>{e.textContent=E},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>BE.querySelector(e),setScopeId(e,E){e.setAttribute(E,"")},insertStaticContent(e,E,t,T,r,s){const n=t?t.previousSibling:E.lastChild;if(r&&(r===s||r.nextSibling))for(;E.insertBefore(r.cloneNode(!0),t),!(r===s||!(r=r.nextSibling)););else{js.innerHTML=T?`<svg>${e}</svg>`:e;const R=js.content;if(T){const A=R.firstChild;for(;A.firstChild;)R.appendChild(A.firstChild);R.removeChild(A)}E.insertBefore(R,t)}return[n?n.nextSibling:E.firstChild,t?t.previousSibling:E.lastChild]}},KO=Symbol("_vtc");function JO(e,E,t){const T=e[KO];T&&(E=(E?[E,...T]:[...T]).join(" ")),E==null?e.removeAttribute("class"):t?e.setAttribute("class",E):e.className=E}const kO=Symbol("_vod"),jO=Symbol("");function qO(e,E,t){const T=e.style,r=de(t);if(t&&!r){if(E&&!de(E))for(const s in E)t[s]==null&&Nr(T,s,"");for(const s in t)Nr(T,s,t[s])}else{const s=T.display;if(r){if(E!==t){const n=T[jO];n&&(t+=";"+n),T.cssText=t}}else E&&e.removeAttribute("style");kO in e&&(T.display=s)}}const qs=/\s*!important$/;function Nr(e,E,t){if(z(t))t.forEach(T=>Nr(e,E,T));else if(t==null&&(t=""),E.startsWith("--"))e.setProperty(E,t);else{const T=QO(e,E);qs.test(t)?e.setProperty(ot(T),t.replace(qs,""),"important"):e[T]=t}}const Qs=["Webkit","Moz","ms"],qT={};function QO(e,E){const t=qT[E];if(t)return t;let T=RE(E);if(T!=="filter"&&T in e)return qT[E]=T;T=UT(T);for(let r=0;r<Qs.length;r++){const s=Qs[r]+T;if(s in e)return qT[E]=s}return E}const Zs="http://www.w3.org/1999/xlink";function ZO(e,E,t,T,r){if(T&&E.startsWith("xlink:"))t==null?e.removeAttributeNS(Zs,E.slice(6,E.length)):e.setAttributeNS(Zs,E,t);else{const s=eS(E);t==null||s&&!FR(t)?e.removeAttribute(E):e.setAttribute(E,s?"":t)}}function zO(e,E,t,T,r,s,n){if(E==="innerHTML"||E==="textContent"){T&&n(T,r,s),e[E]=t??"";return}const R=e.tagName;if(E==="value"&&R!=="PROGRESS"&&!R.includes("-")){e._value=t;const o=R==="OPTION"?e.getAttribute("value"):e.value,i=t??"";o!==i&&(e.value=i),t==null&&e.removeAttribute(E);return}let A=!1;if(t===""||t==null){const o=typeof e[E];o==="boolean"?t=FR(t):t==null&&o==="string"?(t="",A=!0):o==="number"&&(t=0,A=!0)}try{e[E]=t}catch{}A&&e.removeAttribute(E)}function ea(e,E,t,T){e.addEventListener(E,t,T)}function Ea(e,E,t,T){e.removeEventListener(E,t,T)}const zs=Symbol("_vei");function ta(e,E,t,T,r=null){const s=e[zs]||(e[zs]={}),n=s[E];if(T&&n)n.value=T;else{const[R,A]=Ta(E);if(T){const o=s[E]=na(T,r);ea(e,R,o,A)}else n&&(Ea(e,R,n,A),s[E]=void 0)}}const en=/(?:Once|Passive|Capture)$/;function Ta(e){let E;if(en.test(e)){E={};let T;for(;T=e.match(en);)e=e.slice(0,e.length-T[0].length),E[T[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ot(e.slice(2)),E]}let QT=0;const ra=Promise.resolve(),sa=()=>QT||(ra.then(()=>QT=0),QT=Date.now());function na(e,E){const t=T=>{if(!T._vts)T._vts=Date.now();else if(T._vts<=t.attached)return;eE(Ra(T,t.value),E,5,[T])};return t.value=e,t.attached=sa(),t}function Ra(e,E){if(z(E)){const t=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{t.call(e),e._stopped=!0},E.map(T=>r=>!r._stopped&&T&&T(r))}else return E}const En=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,oa=(e,E,t,T,r=!1,s,n,R,A)=>{E==="class"?JO(e,T,r):E==="style"?qO(e,t,T):DT(E)?Hr(E)||ta(e,E,t,T,n):(E[0]==="."?(E=E.slice(1),!0):E[0]==="^"?(E=E.slice(1),!1):Aa(e,E,T,r))?zO(e,E,T,s,n,R,A):(E==="true-value"?e._trueValue=T:E==="false-value"&&(e._falseValue=T),ZO(e,E,T,r))};function Aa(e,E,t,T){if(T)return!!(E==="innerHTML"||E==="textContent"||E in e&&En(E)&&re(t));if(E==="spellcheck"||E==="draggable"||E==="translate"||E==="form"||E==="list"&&e.tagName==="INPUT"||E==="type"&&e.tagName==="TEXTAREA")return!1;if(E==="width"||E==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return En(E)&&de(t)?!1:E in e}const ia=He({patchProp:oa},$O);let tn;function Sa(){return tn||(tn=cO(ia))}const Oa=(...e)=>{const E=Sa().createApp(...e),{mount:t}=E;return E.mount=T=>{const r=aa(T);if(!r)return;const s=E._component;!re(s)&&!s.render&&!s.template&&(s.template=r.innerHTML),r.innerHTML="";const n=t(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),n},E};function aa(e){return de(e)?document.querySelector(e):e}var Tn=Me({props:{code:{type:String,required:!0},language:{type:String,default:""},autodetect:{type:Boolean,default:!0},ignoreIllegals:{type:Boolean,default:!0}},setup:function(e){var E=LE(e.language);Et(function(){return e.language},function(r){E.value=r});var t=ze(function(){return e.autodetect||!E.value}),T=ze(function(){return!t.value&&!Ut.getLanguage(E.value)});return{className:ze(function(){return T.value?"":"hljs "+E.value}),highlightedCode:ze(function(){var r;if(T.value)return console.warn('The language "'+E.value+'" you specified could not be found.'),e.code.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'");if(t.value){var s=Ut.highlightAuto(e.code);return E.value=(r=s.language)!==null&&r!==void 0?r:"",s.value}return(s=Ut.highlight(e.code,{language:E.value,ignoreIllegals:e.ignoreIllegals})).value})}},render:function(){return Xt("pre",{},[Xt("code",{class:this.className,innerHTML:this.highlightedCode})])}}),Ia={install:function(e){e.component("highlightjs",Tn)},component:Tn},Na=!1;/*!
|
3
3
|
* pinia v2.1.7
|
4
4
|
* (c) 2023 Eduardo San Martin Morote
|
5
5
|
* @license MIT
|
6
|
-
*/let Go;const FT=e=>Go=e,go=Symbol();function lr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var yt;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(yt||(yt={}));function Na(){const e=YR(!0),E=e.run(()=>LE({}));let t=[],T=[];const r=gT({install(s){FT(r),r._a=s,s.provide(go,r),s.config.globalProperties.$pinia=r,T.forEach(n=>t.push(n)),T=[]},use(s){return!this._a&&!Ia?T.push(s):t.push(s),this},_p:t,_a:null,_e:e,_s:new Map,state:E});return r}const mo=()=>{};function Tn(e,E,t,T=mo){e.push(E);const r=()=>{const s=e.indexOf(E);s>-1&&(e.splice(s,1),T())};return!t&&VR()&&ES(r),r}function kE(e,...E){e.slice().forEach(t=>{t(...E)})}const la=e=>e();function _r(e,E){e instanceof Map&&E instanceof Map&&E.forEach((t,T)=>e.set(T,t)),e instanceof Set&&E instanceof Set&&E.forEach(e.add,e);for(const t in E){if(!E.hasOwnProperty(t))continue;const T=E[t],r=e[t];lr(r)&&lr(T)&&e.hasOwnProperty(t)&&!Ue(T)&&!pE(T)?e[t]=_r(r,T):e[t]=T}return e}const _a=Symbol();function Ca(e){return!lr(e)||!e.hasOwnProperty(_a)}const{assign:_E}=Object;function ca(e){return!!(Ue(e)&&e.effect)}function La(e,E,t,T){const{state:r,actions:s,getters:n}=E,R=t.state.value[e];let A;function o(){R||(t.state.value[e]=r?r():{});const i=MS(t.state.value[e]);return _E(i,s,Object.keys(n||{}).reduce((a,I)=>(a[I]=gT(ze(()=>{FT(t);const l=t._s.get(e);return n[I].call(l,l)})),a),{}))}return A=Ho(e,o,E,t,T,!0),A}function Ho(e,E,t={},T,r,s){let n;const R=_E({actions:{}},t),A={deep:!0};let o,i,a=[],I=[],l;const U=T.state.value[e];!s&&!U&&(T.state.value[e]={}),LE({});let B;function x(Ee){let k;o=i=!1,typeof Ee=="function"?(Ee(T.state.value[e]),k={type:yt.patchFunction,storeId:e,events:l}):(_r(T.state.value[e],Ee),k={type:yt.patchObject,payload:Ee,storeId:e,events:l});const C=B=Symbol();To().then(()=>{B===C&&(o=!0)}),i=!0,kE(a,k,T.state.value[e])}const $=s?function(){const{state:k}=t,C=k?k():{};this.$patch(p=>{_E(p,C)})}:mo;function J(){n.stop(),a=[],I=[],T._s.delete(e)}function Q(Ee,k){return function(){FT(T);const C=Array.from(arguments),p=[],L=[];function v(Z){p.push(Z)}function K(Z){L.push(Z)}kE(I,{args:C,name:Ee,store:ee,after:v,onError:K});let le;try{le=k.apply(this&&this.$id===e?this:ee,C)}catch(Z){throw kE(L,Z),Z}return le instanceof Promise?le.then(Z=>(kE(p,Z),Z)).catch(Z=>(kE(L,Z),Promise.reject(Z))):(kE(p,le),le)}}const H={_p:T,$id:e,$onAction:Tn.bind(null,I),$patch:x,$reset:$,$subscribe(Ee,k={}){const C=Tn(a,Ee,k.detached,()=>p()),p=n.run(()=>Et(()=>T.state.value[e],L=>{(k.flush==="sync"?i:o)&&Ee({storeId:e,type:yt.direct,events:l},L)},_E({},A,k)));return C},$dispose:J},ee=dE(H);T._s.set(e,ee);const Ae=(T._a&&T._a.runWithContext||la)(()=>T._e.run(()=>(n=YR()).run(E)));for(const Ee in Ae){const k=Ae[Ee];if(Ue(k)&&!ca(k)||pE(k))s||(U&&Ca(k)&&(Ue(k)?k.value=U[Ee]:_r(k,U[Ee])),T.state.value[e][Ee]=k);else if(typeof k=="function"){const C=Q(Ee,k);Ae[Ee]=C,R.actions[Ee]=k}}return _E(ee,Ae),_E(Oe(ee),Ae),Object.defineProperty(ee,"$state",{get:()=>T.state.value[e],set:Ee=>{x(k=>{_E(k,Ee)})}}),T._p.forEach(Ee=>{_E(ee,n.run(()=>Ee({store:ee,app:T._a,pinia:T,options:R})))}),U&&s&&t.hydrate&&t.hydrate(ee.$state,U),o=!0,i=!0,ee}function yo(e,E,t){let T,r;const s=typeof E=="function";typeof e=="string"?(T=e,r=s?t:E):(r=e,T=e.id);function n(R,A){const o=OO();return R=R||(o?gt(go,null):null),R&&FT(R),R=Go,R._s.has(T)||(s?Ho(T,E,r,R):La(T,r,R)),R._s.get(T)}return n.$id=T,n}function ua(e,E){return Cr(e,e.childNodes,E)}function Cr(e,E,{mode:t="open",delegatesFocus:T=!1}={mode:"open"}){try{const r=e.shadowRoot;if(r!=null){console.error("[shadow] Attach shadow multiple times",e,E,r);return}else{const s=e.attachShadow({mode:t,delegatesFocus:T});return E&&pa(s,E),s}}catch(r){console.error("[shadow] make shadow-root failed",e,E),console.error(r)}}function pa(e,E){const t=document.createDocumentFragment();for(const T of E)t.appendChild(T);e.appendChild(t)}const fa=document.createDocumentFragment(),_T=Me({props:{media:String,nonce:String},setup(e,{slots:E}){return()=>{var t;return Xt("style",{media:e.media,nonce:e.nonce},(t=E.default)==null?void 0:t.call(E))}}}),CT=Pa()(Me({props:{mode:{type:String,default:"open"},delegatesFocus:{type:Boolean,default:!1},abstract:{type:Boolean,default:!1},tag:{type:String,default:"div"},adoptedStyleSheets:{type:Array}},emits:["error"],setup(e,{slots:E,expose:t,emit:T}){const r=LE(!1),s=LE(),n=LE(),R=LE(),A=ze(()=>R.value??fa),o=dE({shadow_root:R});return t(o),Io(()=>{r.value=e.abstract}),Xr(()=>{var i;try{r.value?n.value.parentElement.shadowRoot?R.value=n.value.parentElement.shadowRoot:R.value=Cr(n.value.parentElement,void 0,{mode:e.mode,delegatesFocus:e.delegatesFocus}):R.value=Cr(s.value,void 0,{mode:e.mode,delegatesFocus:e.delegatesFocus}),(i=R.value)==null||i.styleSheets}catch(a){console.error(a),T("error",a)}}),Et([R,()=>e.adoptedStyleSheets],([i,a])=>{if(!(!i||!a))try{i.adoptedStyleSheets=a}catch(I){console.error(I),T("error",I)}}),()=>{var a;const i=Xt(DO,{ref:n,to:A.value},[(a=E.default)==null?void 0:a.call(E)]);return r.value?i:Xt(e.tag,{ref:s},i)}},install:bo,Style:_T}));function Pa(){return e=>e}function bo(e){e.component("shadow-root",CT),e.directive("shadow",{beforeMount(E){console.warn("[VueShadowDom] Deprecated v-shadow directive, use <shadow-root> component"),ua(E)}})}var Da={ShadowRoot:CT,ShadowStyle:_T,shadow_root:CT,shadow_style:_T,install:bo},cr={exports:{}};(function(e,E){(function(t,T){T(E)})(qE,function(t){var T={logger:self.console,WebSocket:self.WebSocket},r={log:function(){if(this.enabled){for(var p,L=arguments.length,v=Array(L),K=0;K<L;K++)v[K]=arguments[K];v.push(Date.now()),(p=T.logger).log.apply(p,["[ActionCable]"].concat(v))}}},s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},n=function(C,p){if(!(C instanceof p))throw new TypeError("Cannot call a class as a function")},R=function(){function C(p,L){for(var v=0;v<L.length;v++){var K=L[v];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(p,K.key,K)}}return function(p,L,v){return L&&C(p.prototype,L),v&&C(p,v),p}}(),A=function(){return new Date().getTime()},o=function(p){return(A()-p)/1e3},i=function(p,L,v){return Math.max(L,Math.min(v,p))},a=function(){function C(p){n(this,C),this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=p,this.reconnectAttempts=0}return C.prototype.start=function(){this.isRunning()||(this.startedAt=A(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),r.log("ConnectionMonitor started. pollInterval = "+this.getPollInterval()+" ms"))},C.prototype.stop=function(){this.isRunning()&&(this.stoppedAt=A(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),r.log("ConnectionMonitor stopped"))},C.prototype.isRunning=function(){return this.startedAt&&!this.stoppedAt},C.prototype.recordPing=function(){this.pingedAt=A()},C.prototype.recordConnect=function(){this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,r.log("ConnectionMonitor recorded connect")},C.prototype.recordDisconnect=function(){this.disconnectedAt=A(),r.log("ConnectionMonitor recorded disconnect")},C.prototype.startPolling=function(){this.stopPolling(),this.poll()},C.prototype.stopPolling=function(){clearTimeout(this.pollTimeout)},C.prototype.poll=function(){var L=this;this.pollTimeout=setTimeout(function(){L.reconnectIfStale(),L.poll()},this.getPollInterval())},C.prototype.getPollInterval=function(){var L=this.constructor.pollInterval,v=L.min,K=L.max,le=L.multiplier,Z=le*Math.log(this.reconnectAttempts+1);return Math.round(i(Z,v,K)*1e3)},C.prototype.reconnectIfStale=function(){this.connectionIsStale()&&(r.log("ConnectionMonitor detected stale connection. reconnectAttempts = "+this.reconnectAttempts+", pollInterval = "+this.getPollInterval()+" ms, time disconnected = "+o(this.disconnectedAt)+" s, stale threshold = "+this.constructor.staleThreshold+" s"),this.reconnectAttempts++,this.disconnectedRecently()?r.log("ConnectionMonitor skipping reopening recent disconnect"):(r.log("ConnectionMonitor reopening"),this.connection.reopen()))},C.prototype.connectionIsStale=function(){return o(this.pingedAt?this.pingedAt:this.startedAt)>this.constructor.staleThreshold},C.prototype.disconnectedRecently=function(){return this.disconnectedAt&&o(this.disconnectedAt)<this.constructor.staleThreshold},C.prototype.visibilityDidChange=function(){var L=this;document.visibilityState==="visible"&&setTimeout(function(){(L.connectionIsStale()||!L.connection.isOpen())&&(r.log("ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = "+document.visibilityState),L.connection.reopen())},200)},C}();a.pollInterval={min:3,max:30,multiplier:5},a.staleThreshold=6;var I={message_types:{welcome:"welcome",disconnect:"disconnect",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},disconnect_reasons:{unauthorized:"unauthorized",invalid_request:"invalid_request",server_restart:"server_restart"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]},l=I.message_types,U=I.protocols,B=U.slice(0,U.length-1),x=[].indexOf,$=function(){function C(p){n(this,C),this.open=this.open.bind(this),this.consumer=p,this.subscriptions=this.consumer.subscriptions,this.monitor=new a(this),this.disconnected=!0}return C.prototype.send=function(L){return this.isOpen()?(this.webSocket.send(JSON.stringify(L)),!0):!1},C.prototype.open=function(){return this.isActive()?(r.log("Attempted to open WebSocket, but existing socket is "+this.getState()),!1):(r.log("Opening WebSocket, current state is "+this.getState()+", subprotocols: "+U),this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new T.WebSocket(this.consumer.url,U),this.installEventHandlers(),this.monitor.start(),!0)},C.prototype.close=function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{allowReconnect:!0},v=L.allowReconnect;if(v||this.monitor.stop(),this.isActive())return this.webSocket.close()},C.prototype.reopen=function(){if(r.log("Reopening WebSocket, current state is "+this.getState()),this.isActive())try{return this.close()}catch(L){r.log("Failed to reopen WebSocket",L)}finally{r.log("Reopening WebSocket in "+this.constructor.reopenDelay+"ms"),setTimeout(this.open,this.constructor.reopenDelay)}else return this.open()},C.prototype.getProtocol=function(){if(this.webSocket)return this.webSocket.protocol},C.prototype.isOpen=function(){return this.isState("open")},C.prototype.isActive=function(){return this.isState("open","connecting")},C.prototype.isProtocolSupported=function(){return x.call(B,this.getProtocol())>=0},C.prototype.isState=function(){for(var L=arguments.length,v=Array(L),K=0;K<L;K++)v[K]=arguments[K];return x.call(v,this.getState())>=0},C.prototype.getState=function(){if(this.webSocket){for(var L in T.WebSocket)if(T.WebSocket[L]===this.webSocket.readyState)return L.toLowerCase()}return null},C.prototype.installEventHandlers=function(){for(var L in this.events){var v=this.events[L].bind(this);this.webSocket["on"+L]=v}},C.prototype.uninstallEventHandlers=function(){for(var L in this.events)this.webSocket["on"+L]=function(){}},C}();$.reopenDelay=500,$.prototype.events={message:function(p){if(this.isProtocolSupported()){var L=JSON.parse(p.data),v=L.identifier,K=L.message,le=L.reason,Z=L.reconnect,u=L.type;switch(u){case l.welcome:return this.monitor.recordConnect(),this.subscriptions.reload();case l.disconnect:return r.log("Disconnecting. Reason: "+le),this.close({allowReconnect:Z});case l.ping:return this.monitor.recordPing();case l.confirmation:return this.subscriptions.confirmSubscription(v),this.subscriptions.notify(v,"connected");case l.rejection:return this.subscriptions.reject(v);default:return this.subscriptions.notify(v,"received",K)}}},open:function(){if(r.log("WebSocket onopen event, using '"+this.getProtocol()+"' subprotocol"),this.disconnected=!1,!this.isProtocolSupported())return r.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close:function(p){if(r.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error:function(){r.log("WebSocket onerror event")}};var J=function(p,L){if(L!=null)for(var v in L){var K=L[v];p[v]=K}return p},Q=function(){function C(p){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v=arguments[2];n(this,C),this.consumer=p,this.identifier=JSON.stringify(L),J(this,v)}return C.prototype.perform=function(L){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return v.action=L,this.send(v)},C.prototype.send=function(L){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(L)})},C.prototype.unsubscribe=function(){return this.consumer.subscriptions.remove(this)},C}(),H=function(){function C(p){n(this,C),this.subscriptions=p,this.pendingSubscriptions=[]}return C.prototype.guarantee=function(L){this.pendingSubscriptions.indexOf(L)==-1?(r.log("SubscriptionGuarantor guaranteeing "+L.identifier),this.pendingSubscriptions.push(L)):r.log("SubscriptionGuarantor already guaranteeing "+L.identifier),this.startGuaranteeing()},C.prototype.forget=function(L){r.log("SubscriptionGuarantor forgetting "+L.identifier),this.pendingSubscriptions=this.pendingSubscriptions.filter(function(v){return v!==L})},C.prototype.startGuaranteeing=function(){this.stopGuaranteeing(),this.retrySubscribing()},C.prototype.stopGuaranteeing=function(){clearTimeout(this.retryTimeout)},C.prototype.retrySubscribing=function(){var L=this;this.retryTimeout=setTimeout(function(){L.subscriptions&&typeof L.subscriptions.subscribe=="function"&&L.pendingSubscriptions.map(function(v){r.log("SubscriptionGuarantor resubscribing "+v.identifier),L.subscriptions.subscribe(v)})},500)},C}(),ee=function(){function C(p){n(this,C),this.consumer=p,this.guarantor=new H(this),this.subscriptions=[]}return C.prototype.create=function(L,v){var K=L,le=(typeof K>"u"?"undefined":s(K))==="object"?K:{channel:K},Z=new Q(this.consumer,le,v);return this.add(Z)},C.prototype.add=function(L){return this.subscriptions.push(L),this.consumer.ensureActiveConnection(),this.notify(L,"initialized"),this.subscribe(L),L},C.prototype.remove=function(L){return this.forget(L),this.findAll(L.identifier).length||this.sendCommand(L,"unsubscribe"),L},C.prototype.reject=function(L){var v=this;return this.findAll(L).map(function(K){return v.forget(K),v.notify(K,"rejected"),K})},C.prototype.forget=function(L){return this.guarantor.forget(L),this.subscriptions=this.subscriptions.filter(function(v){return v!==L}),L},C.prototype.findAll=function(L){return this.subscriptions.filter(function(v){return v.identifier===L})},C.prototype.reload=function(){var L=this;return this.subscriptions.map(function(v){return L.subscribe(v)})},C.prototype.notifyAll=function(L){for(var v=this,K=arguments.length,le=Array(K>1?K-1:0),Z=1;Z<K;Z++)le[Z-1]=arguments[Z];return this.subscriptions.map(function(u){return v.notify.apply(v,[u,L].concat(le))})},C.prototype.notify=function(L,v){for(var K=arguments.length,le=Array(K>2?K-2:0),Z=2;Z<K;Z++)le[Z-2]=arguments[Z];var u=void 0;return typeof L=="string"?u=this.findAll(L):u=[L],u.map(function(g){return typeof g[v]=="function"?g[v].apply(g,le):void 0})},C.prototype.subscribe=function(L){this.sendCommand(L,"subscribe")&&this.guarantor.guarantee(L)},C.prototype.confirmSubscription=function(L){var v=this;r.log("Subscription confirmed "+L),this.findAll(L).map(function(K){return v.guarantor.forget(K)})},C.prototype.sendCommand=function(L,v){var K=L.identifier;return this.consumer.send({command:v,identifier:K})},C}(),Ce=function(){function C(p){n(this,C),this._url=p,this.subscriptions=new ee(this),this.connection=new $(this)}return C.prototype.send=function(L){return this.connection.send(L)},C.prototype.connect=function(){return this.connection.open()},C.prototype.disconnect=function(){return this.connection.close({allowReconnect:!1})},C.prototype.ensureActiveConnection=function(){if(!this.connection.isActive())return this.connection.open()},R(C,[{key:"url",get:function(){return Ae(this._url)}}]),C}();function Ae(C){if(typeof C=="function"&&(C=C()),C&&!/^wss?:/i.test(C)){var p=document.createElement("a");return p.href=C,p.href=p.href,p.protocol=p.protocol.replace("http","ws"),p.href}else return C}function Ee(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:k("url")||I.default_mount_path;return new Ce(C)}function k(C){var p=document.head.querySelector("meta[name='action-cable-"+C+"']");if(p)return p.getAttribute("content")}t.Connection=$,t.ConnectionMonitor=a,t.Consumer=Ce,t.INTERNAL=I,t.Subscription=Q,t.Subscriptions=ee,t.SubscriptionGuarantor=H,t.adapters=T,t.createWebSocketURL=Ae,t.logger=r,t.createConsumer=Ee,t.getConfig=k,Object.defineProperty(t,"__esModule",{value:!0})})})(cr,cr.exports);var da=cr.exports;function rn(e,E){return h(),Y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"fill-rule":"evenodd",d:"M11.78 4.22a.75.75 0 0 1 0 1.06L6.56 10.5h3.69a.75.75 0 0 1 0 1.5h-5.5a.75.75 0 0 1-.75-.75v-5.5a.75.75 0 0 1 1.5 0v3.69l5.22-5.22a.75.75 0 0 1 1.06 0Z","clip-rule":"evenodd"})])}function Ma(e,E){return h(),Y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"fill-rule":"evenodd",d:"M13.78 10.47a.75.75 0 0 1 0 1.06l-2.25 2.25a.75.75 0 0 1-1.06 0l-2.25-2.25a.75.75 0 1 1 1.06-1.06l.97.97V5.75a.75.75 0 0 1 1.5 0v5.69l.97-.97a.75.75 0 0 1 1.06 0ZM2.22 5.53a.75.75 0 0 1 0-1.06l2.25-2.25a.75.75 0 0 1 1.06 0l2.25 2.25a.75.75 0 0 1-1.06 1.06l-.97-.97v5.69a.75.75 0 0 1-1.5 0V4.56l-.97.97a.75.75 0 0 1-1.06 0Z","clip-rule":"evenodd"})])}function Bo(e,E){return h(),Y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"fill-rule":"evenodd",d:"M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"})])}function Ua(e,E){return h(),Y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{d:"M8 7c3.314 0 6-1.343 6-3s-2.686-3-6-3-6 1.343-6 3 2.686 3 6 3Z"}),O("path",{d:"M8 8.5c1.84 0 3.579-.37 4.914-1.037A6.33 6.33 0 0 0 14 6.78V8c0 1.657-2.686 3-6 3S2 9.657 2 8V6.78c.346.273.72.5 1.087.683C4.42 8.131 6.16 8.5 8 8.5Z"}),O("path",{d:"M8 12.5c1.84 0 3.579-.37 4.914-1.037.366-.183.74-.41 1.086-.684V12c0 1.657-2.686 3-6 3s-6-1.343-6-3v-1.22c.346.273.72.5 1.087.683C4.42 12.131 6.16 12.5 8 12.5Z"})])}function ha(e,E){return h(),Y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"fill-rule":"evenodd",d:"M4.78 4.97a.75.75 0 0 1 0 1.06L2.81 8l1.97 1.97a.75.75 0 1 1-1.06 1.06l-2.5-2.5a.75.75 0 0 1 0-1.06l2.5-2.5a.75.75 0 0 1 1.06 0ZM11.22 4.97a.75.75 0 0 0 0 1.06L13.19 8l-1.97 1.97a.75.75 0 1 0 1.06 1.06l2.5-2.5a.75.75 0 0 0 0-1.06l-2.5-2.5a.75.75 0 0 0-1.06 0ZM8.856 2.008a.75.75 0 0 1 .636.848l-1.5 10.5a.75.75 0 0 1-1.484-.212l1.5-10.5a.75.75 0 0 1 .848-.636Z","clip-rule":"evenodd"})])}function Ga(e,E){return h(),Y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{d:"M6 6v4h4V6H6Z"}),O("path",{"fill-rule":"evenodd",d:"M5.75 1a.75.75 0 0 0-.75.75V3a2 2 0 0 0-2 2H1.75a.75.75 0 0 0 0 1.5H3v.75H1.75a.75.75 0 0 0 0 1.5H3v.75H1.75a.75.75 0 0 0 0 1.5H3a2 2 0 0 0 2 2v1.25a.75.75 0 0 0 1.5 0V13h.75v1.25a.75.75 0 0 0 1.5 0V13h.75v1.25a.75.75 0 0 0 1.5 0V13a2 2 0 0 0 2-2h1.25a.75.75 0 0 0 0-1.5H13v-.75h1.25a.75.75 0 0 0 0-1.5H13V6.5h1.25a.75.75 0 0 0 0-1.5H13a2 2 0 0 0-2-2V1.75a.75.75 0 0 0-1.5 0V3h-.75V1.75a.75.75 0 0 0-1.5 0V3H6.5V1.75A.75.75 0 0 0 5.75 1ZM11 4.5a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5h6Z","clip-rule":"evenodd"})])}function ga(e,E){return h(),Y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{d:"M4.5 2a.5.5 0 0 0-.5.5v11a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-11a.5.5 0 0 0-.5-.5h-1ZM10.5 2a.5.5 0 0 0-.5.5v11a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-11a.5.5 0 0 0-.5-.5h-1Z"})])}function ma(e,E){return h(),Y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{d:"M3 3.732a1.5 1.5 0 0 1 2.305-1.265l6.706 4.267a1.5 1.5 0 0 1 0 2.531l-6.706 4.268A1.5 1.5 0 0 1 3 12.267V3.732Z"})])}function Ha(e,E){return h(),Y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"fill-rule":"evenodd",d:"M5 3.25V4H2.75a.75.75 0 0 0 0 1.5h.3l.815 8.15A1.5 1.5 0 0 0 5.357 15h5.285a1.5 1.5 0 0 0 1.493-1.35l.815-8.15h.3a.75.75 0 0 0 0-1.5H11v-.75A2.25 2.25 0 0 0 8.75 1h-1.5A2.25 2.25 0 0 0 5 3.25Zm2.25-.75a.75.75 0 0 0-.75.75V4h3v-.75a.75.75 0 0 0-.75-.75h-1.5ZM6.05 6a.75.75 0 0 1 .787.713l.275 5.5a.75.75 0 0 1-1.498.075l-.275-5.5A.75.75 0 0 1 6.05 6Zm3.9 0a.75.75 0 0 1 .712.787l-.275 5.5a.75.75 0 0 1-1.498-.075l.275-5.5a.75.75 0 0 1 .786-.711Z","clip-rule":"evenodd"})])}function ya(e,E){return h(),Y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"fill-rule":"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Zm2.78-4.22a.75.75 0 0 1-1.06 0L8 9.06l-1.72 1.72a.75.75 0 1 1-1.06-1.06L6.94 8 5.22 6.28a.75.75 0 0 1 1.06-1.06L8 6.94l1.72-1.72a.75.75 0 1 1 1.06 1.06L9.06 8l1.72 1.72a.75.75 0 0 1 0 1.06Z","clip-rule":"evenodd"})])}const ba=["textContent"],Ba=Me({__name:"TabButton",props:{label:{},count:{},isActive:{type:Boolean}},setup(e){const E=e;return(t,T)=>(h(),Y("button",{class:$e(["text-sm flex items-center space-x-1 px-3 py-2 border-0",{"bg-stone-300 rounded-sm":E.isActive}])},[O("span",{class:$e({"font-medium":E.isActive})},[St(t.$slots,"default")],2),E.count!=null?(h(),Y("span",{key:0,class:$e(["p-0.5 rounded-full text-xs",{"px-1.5":E.count<10,hidden:E.count==0,"bg-stone-300":E.count>0&&!E.isActive,"bg-stone-400":E.count>0&&E.isActive}]),textContent:Re(E.count)},null,10,ba)):oe("",!0)],2))}}),Fo=(e,E)=>{const t=e.__vccOpts||e;for(const[T,r]of E)t[T]=r;return t},Fa={},va={class:"px-3 py-2"};function Ya(e,E){return h(),Y("div",va,[St(e.$slots,"default")])}const OE=Fo(Fa,[["render",Ya]]),Va={key:0},xa=O("div",{class:"text-gray-500"},"No models were initialized.",-1),wa=[xa],Wa={key:1,class:"divide-y divide-stone-300"},Xa=O("thead",null,[O("tr",null,[O("th",{scope:"col",class:"w-36 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-stone-900 sm:pl-0"}," Model "),O("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-stone-900"},"Count")])],-1),$a={class:"divide-y divide-stone-200"},Ka={class:"whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-stone-900 sm:pl-0"},Ja={class:"whitespace-nowrap px-3 py-4 text-sm text-stone-500 text-center"},ka=Me({__name:"ModelsPanel",props:{models:{},count:{}},setup(e){const E=e;return(t,T)=>(h(),fe(OE,null,{default:ie(()=>[E.count==0?(h(),Y("div",Va,wa)):oe("",!0),E.count>0?(h(),Y("table",Wa,[Xa,O("tbody",$a,[(h(!0),Y(Le,null,Je(E.models,(r,s)=>(h(),Y("tr",{key:s},[O("td",Ka,Re(s),1),O("td",Ja,Re(r),1)]))),128))])])):oe("",!0)]),_:1}))}});var vo={exports:{}};(function(e){(function(E,t){e.exports?e.exports=t():E.nearley=t()})(qE,function(){function E(o,i,a){return this.id=++E.highestId,this.name=o,this.symbols=i,this.postprocess=a,this}E.highestId=0,E.prototype.toString=function(o){var i=typeof o>"u"?this.symbols.map(A).join(" "):this.symbols.slice(0,o).map(A).join(" ")+" ● "+this.symbols.slice(o).map(A).join(" ");return this.name+" → "+i};function t(o,i,a,I){this.rule=o,this.dot=i,this.reference=a,this.data=[],this.wantedBy=I,this.isComplete=this.dot===o.symbols.length}t.prototype.toString=function(){return"{"+this.rule.toString(this.dot)+"}, from: "+(this.reference||0)},t.prototype.nextState=function(o){var i=new t(this.rule,this.dot+1,this.reference,this.wantedBy);return i.left=this,i.right=o,i.isComplete&&(i.data=i.build(),i.right=void 0),i},t.prototype.build=function(){var o=[],i=this;do o.push(i.right.data),i=i.left;while(i.left);return o.reverse(),o},t.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,n.fail))};function T(o,i){this.grammar=o,this.index=i,this.states=[],this.wants={},this.scannable=[],this.completed={}}T.prototype.process=function(o){for(var i=this.states,a=this.wants,I=this.completed,l=0;l<i.length;l++){var U=i[l];if(U.isComplete){if(U.finish(),U.data!==n.fail){for(var B=U.wantedBy,x=B.length;x--;){var $=B[x];this.complete($,U)}if(U.reference===this.index){var J=U.rule.name;(this.completed[J]=this.completed[J]||[]).push(U)}}}else{var J=U.rule.symbols[U.dot];if(typeof J!="string"){this.scannable.push(U);continue}if(a[J]){if(a[J].push(U),I.hasOwnProperty(J))for(var Q=I[J],x=0;x<Q.length;x++){var H=Q[x];this.complete(U,H)}}else a[J]=[U],this.predict(J)}}},T.prototype.predict=function(o){for(var i=this.grammar.byName[o]||[],a=0;a<i.length;a++){var I=i[a],l=this.wants[o],U=new t(I,0,this.index,l);this.states.push(U)}},T.prototype.complete=function(o,i){var a=o.nextState(i);this.states.push(a)};function r(o,i){this.rules=o,this.start=i||this.rules[0].name;var a=this.byName={};this.rules.forEach(function(I){a.hasOwnProperty(I.name)||(a[I.name]=[]),a[I.name].push(I)})}r.fromCompiled=function(I,i){var a=I.Lexer;I.ParserStart&&(i=I.ParserStart,I=I.ParserRules);var I=I.map(function(U){return new E(U.name,U.symbols,U.postprocess)}),l=new r(I,i);return l.lexer=a,l};function s(){this.reset("")}s.prototype.reset=function(o,i){this.buffer=o,this.index=0,this.line=i?i.line:1,this.lastLineBreak=i?-i.col:0},s.prototype.next=function(){if(this.index<this.buffer.length){var o=this.buffer[this.index++];return o===`
|
6
|
+
*/let go;const FT=e=>go=e,mo=Symbol();function lr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var yt;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(yt||(yt={}));function la(){const e=xR(!0),E=e.run(()=>LE({}));let t=[],T=[];const r=gT({install(s){FT(r),r._a=s,s.provide(mo,r),s.config.globalProperties.$pinia=r,T.forEach(n=>t.push(n)),T=[]},use(s){return!this._a&&!Na?T.push(s):t.push(s),this},_p:t,_a:null,_e:e,_s:new Map,state:E});return r}const Ho=()=>{};function rn(e,E,t,T=Ho){e.push(E);const r=()=>{const s=e.indexOf(E);s>-1&&(e.splice(s,1),T())};return!t&&VR()&&tS(r),r}function kE(e,...E){e.slice().forEach(t=>{t(...E)})}const _a=e=>e();function _r(e,E){e instanceof Map&&E instanceof Map&&E.forEach((t,T)=>e.set(T,t)),e instanceof Set&&E instanceof Set&&E.forEach(e.add,e);for(const t in E){if(!E.hasOwnProperty(t))continue;const T=E[t],r=e[t];lr(r)&&lr(T)&&e.hasOwnProperty(t)&&!Ue(T)&&!pE(T)?e[t]=_r(r,T):e[t]=T}return e}const Ca=Symbol();function ca(e){return!lr(e)||!e.hasOwnProperty(Ca)}const{assign:_E}=Object;function La(e){return!!(Ue(e)&&e.effect)}function ua(e,E,t,T){const{state:r,actions:s,getters:n}=E,R=t.state.value[e];let A;function o(){R||(t.state.value[e]=r?r():{});const i=US(t.state.value[e]);return _E(i,s,Object.keys(n||{}).reduce((a,I)=>(a[I]=gT(ze(()=>{FT(t);const l=t._s.get(e);return n[I].call(l,l)})),a),{}))}return A=yo(e,o,E,t,T,!0),A}function yo(e,E,t={},T,r,s){let n;const R=_E({actions:{}},t),A={deep:!0};let o,i,a=[],I=[],l;const U=T.state.value[e];!s&&!U&&(T.state.value[e]={}),LE({});let B;function V(Ee){let k;o=i=!1,typeof Ee=="function"?(Ee(T.state.value[e]),k={type:yt.patchFunction,storeId:e,events:l}):(_r(T.state.value[e],Ee),k={type:yt.patchObject,payload:Ee,storeId:e,events:l});const C=B=Symbol();ro().then(()=>{B===C&&(o=!0)}),i=!0,kE(a,k,T.state.value[e])}const $=s?function(){const{state:k}=t,C=k?k():{};this.$patch(p=>{_E(p,C)})}:Ho;function J(){n.stop(),a=[],I=[],T._s.delete(e)}function Q(Ee,k){return function(){FT(T);const C=Array.from(arguments),p=[],L=[];function v(Z){p.push(Z)}function K(Z){L.push(Z)}kE(I,{args:C,name:Ee,store:ee,after:v,onError:K});let le;try{le=k.apply(this&&this.$id===e?this:ee,C)}catch(Z){throw kE(L,Z),Z}return le instanceof Promise?le.then(Z=>(kE(p,Z),Z)).catch(Z=>(kE(L,Z),Promise.reject(Z))):(kE(p,le),le)}}const H={_p:T,$id:e,$onAction:rn.bind(null,I),$patch:V,$reset:$,$subscribe(Ee,k={}){const C=rn(a,Ee,k.detached,()=>p()),p=n.run(()=>Et(()=>T.state.value[e],L=>{(k.flush==="sync"?i:o)&&Ee({storeId:e,type:yt.direct,events:l},L)},_E({},A,k)));return C},$dispose:J},ee=dE(H);T._s.set(e,ee);const Ae=(T._a&&T._a.runWithContext||_a)(()=>T._e.run(()=>(n=xR()).run(E)));for(const Ee in Ae){const k=Ae[Ee];if(Ue(k)&&!La(k)||pE(k))s||(U&&ca(k)&&(Ue(k)?k.value=U[Ee]:_r(k,U[Ee])),T.state.value[e][Ee]=k);else if(typeof k=="function"){const C=Q(Ee,k);Ae[Ee]=C,R.actions[Ee]=k}}return _E(ee,Ae),_E(Oe(ee),Ae),Object.defineProperty(ee,"$state",{get:()=>T.state.value[e],set:Ee=>{V(k=>{_E(k,Ee)})}}),T._p.forEach(Ee=>{_E(ee,n.run(()=>Ee({store:ee,app:T._a,pinia:T,options:R})))}),U&&s&&t.hydrate&&t.hydrate(ee.$state,U),o=!0,i=!0,ee}function bo(e,E,t){let T,r;const s=typeof E=="function";typeof e=="string"?(T=e,r=s?t:E):(r=e,T=e.id);function n(R,A){const o=aO();return R=R||(o?gt(mo,null):null),R&&FT(R),R=go,R._s.has(T)||(s?yo(T,E,r,R):ua(T,r,R)),R._s.get(T)}return n.$id=T,n}function pa(e,E){return Cr(e,e.childNodes,E)}function Cr(e,E,{mode:t="open",delegatesFocus:T=!1}={mode:"open"}){try{const r=e.shadowRoot;if(r!=null){console.error("[shadow] Attach shadow multiple times",e,E,r);return}else{const s=e.attachShadow({mode:t,delegatesFocus:T});return E&&fa(s,E),s}}catch(r){console.error("[shadow] make shadow-root failed",e,E),console.error(r)}}function fa(e,E){const t=document.createDocumentFragment();for(const T of E)t.appendChild(T);e.appendChild(t)}const Pa=document.createDocumentFragment(),_T=Me({props:{media:String,nonce:String},setup(e,{slots:E}){return()=>{var t;return Xt("style",{media:e.media,nonce:e.nonce},(t=E.default)==null?void 0:t.call(E))}}}),CT=Da()(Me({props:{mode:{type:String,default:"open"},delegatesFocus:{type:Boolean,default:!1},abstract:{type:Boolean,default:!1},tag:{type:String,default:"div"},adoptedStyleSheets:{type:Array}},emits:["error"],setup(e,{slots:E,expose:t,emit:T}){const r=LE(!1),s=LE(),n=LE(),R=LE(),A=ze(()=>R.value??Pa),o=dE({shadow_root:R});return t(o),No(()=>{r.value=e.abstract}),Xr(()=>{var i;try{r.value?n.value.parentElement.shadowRoot?R.value=n.value.parentElement.shadowRoot:R.value=Cr(n.value.parentElement,void 0,{mode:e.mode,delegatesFocus:e.delegatesFocus}):R.value=Cr(s.value,void 0,{mode:e.mode,delegatesFocus:e.delegatesFocus}),(i=R.value)==null||i.styleSheets}catch(a){console.error(a),T("error",a)}}),Et([R,()=>e.adoptedStyleSheets],([i,a])=>{if(!(!i||!a))try{i.adoptedStyleSheets=a}catch(I){console.error(I),T("error",I)}}),()=>{var a;const i=Xt(dO,{ref:n,to:A.value},[(a=E.default)==null?void 0:a.call(E)]);return r.value?i:Xt(e.tag,{ref:s},i)}},install:Bo,Style:_T}));function Da(){return e=>e}function Bo(e){e.component("shadow-root",CT),e.directive("shadow",{beforeMount(E){console.warn("[VueShadowDom] Deprecated v-shadow directive, use <shadow-root> component"),pa(E)}})}var da={ShadowRoot:CT,ShadowStyle:_T,shadow_root:CT,shadow_style:_T,install:Bo},cr={exports:{}};(function(e,E){(function(t,T){T(E)})(qE,function(t){var T={logger:self.console,WebSocket:self.WebSocket},r={log:function(){if(this.enabled){for(var p,L=arguments.length,v=Array(L),K=0;K<L;K++)v[K]=arguments[K];v.push(Date.now()),(p=T.logger).log.apply(p,["[ActionCable]"].concat(v))}}},s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},n=function(C,p){if(!(C instanceof p))throw new TypeError("Cannot call a class as a function")},R=function(){function C(p,L){for(var v=0;v<L.length;v++){var K=L[v];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(p,K.key,K)}}return function(p,L,v){return L&&C(p.prototype,L),v&&C(p,v),p}}(),A=function(){return new Date().getTime()},o=function(p){return(A()-p)/1e3},i=function(p,L,v){return Math.max(L,Math.min(v,p))},a=function(){function C(p){n(this,C),this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=p,this.reconnectAttempts=0}return C.prototype.start=function(){this.isRunning()||(this.startedAt=A(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),r.log("ConnectionMonitor started. pollInterval = "+this.getPollInterval()+" ms"))},C.prototype.stop=function(){this.isRunning()&&(this.stoppedAt=A(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),r.log("ConnectionMonitor stopped"))},C.prototype.isRunning=function(){return this.startedAt&&!this.stoppedAt},C.prototype.recordPing=function(){this.pingedAt=A()},C.prototype.recordConnect=function(){this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,r.log("ConnectionMonitor recorded connect")},C.prototype.recordDisconnect=function(){this.disconnectedAt=A(),r.log("ConnectionMonitor recorded disconnect")},C.prototype.startPolling=function(){this.stopPolling(),this.poll()},C.prototype.stopPolling=function(){clearTimeout(this.pollTimeout)},C.prototype.poll=function(){var L=this;this.pollTimeout=setTimeout(function(){L.reconnectIfStale(),L.poll()},this.getPollInterval())},C.prototype.getPollInterval=function(){var L=this.constructor.pollInterval,v=L.min,K=L.max,le=L.multiplier,Z=le*Math.log(this.reconnectAttempts+1);return Math.round(i(Z,v,K)*1e3)},C.prototype.reconnectIfStale=function(){this.connectionIsStale()&&(r.log("ConnectionMonitor detected stale connection. reconnectAttempts = "+this.reconnectAttempts+", pollInterval = "+this.getPollInterval()+" ms, time disconnected = "+o(this.disconnectedAt)+" s, stale threshold = "+this.constructor.staleThreshold+" s"),this.reconnectAttempts++,this.disconnectedRecently()?r.log("ConnectionMonitor skipping reopening recent disconnect"):(r.log("ConnectionMonitor reopening"),this.connection.reopen()))},C.prototype.connectionIsStale=function(){return o(this.pingedAt?this.pingedAt:this.startedAt)>this.constructor.staleThreshold},C.prototype.disconnectedRecently=function(){return this.disconnectedAt&&o(this.disconnectedAt)<this.constructor.staleThreshold},C.prototype.visibilityDidChange=function(){var L=this;document.visibilityState==="visible"&&setTimeout(function(){(L.connectionIsStale()||!L.connection.isOpen())&&(r.log("ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = "+document.visibilityState),L.connection.reopen())},200)},C}();a.pollInterval={min:3,max:30,multiplier:5},a.staleThreshold=6;var I={message_types:{welcome:"welcome",disconnect:"disconnect",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},disconnect_reasons:{unauthorized:"unauthorized",invalid_request:"invalid_request",server_restart:"server_restart"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]},l=I.message_types,U=I.protocols,B=U.slice(0,U.length-1),V=[].indexOf,$=function(){function C(p){n(this,C),this.open=this.open.bind(this),this.consumer=p,this.subscriptions=this.consumer.subscriptions,this.monitor=new a(this),this.disconnected=!0}return C.prototype.send=function(L){return this.isOpen()?(this.webSocket.send(JSON.stringify(L)),!0):!1},C.prototype.open=function(){return this.isActive()?(r.log("Attempted to open WebSocket, but existing socket is "+this.getState()),!1):(r.log("Opening WebSocket, current state is "+this.getState()+", subprotocols: "+U),this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new T.WebSocket(this.consumer.url,U),this.installEventHandlers(),this.monitor.start(),!0)},C.prototype.close=function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{allowReconnect:!0},v=L.allowReconnect;if(v||this.monitor.stop(),this.isActive())return this.webSocket.close()},C.prototype.reopen=function(){if(r.log("Reopening WebSocket, current state is "+this.getState()),this.isActive())try{return this.close()}catch(L){r.log("Failed to reopen WebSocket",L)}finally{r.log("Reopening WebSocket in "+this.constructor.reopenDelay+"ms"),setTimeout(this.open,this.constructor.reopenDelay)}else return this.open()},C.prototype.getProtocol=function(){if(this.webSocket)return this.webSocket.protocol},C.prototype.isOpen=function(){return this.isState("open")},C.prototype.isActive=function(){return this.isState("open","connecting")},C.prototype.isProtocolSupported=function(){return V.call(B,this.getProtocol())>=0},C.prototype.isState=function(){for(var L=arguments.length,v=Array(L),K=0;K<L;K++)v[K]=arguments[K];return V.call(v,this.getState())>=0},C.prototype.getState=function(){if(this.webSocket){for(var L in T.WebSocket)if(T.WebSocket[L]===this.webSocket.readyState)return L.toLowerCase()}return null},C.prototype.installEventHandlers=function(){for(var L in this.events){var v=this.events[L].bind(this);this.webSocket["on"+L]=v}},C.prototype.uninstallEventHandlers=function(){for(var L in this.events)this.webSocket["on"+L]=function(){}},C}();$.reopenDelay=500,$.prototype.events={message:function(p){if(this.isProtocolSupported()){var L=JSON.parse(p.data),v=L.identifier,K=L.message,le=L.reason,Z=L.reconnect,u=L.type;switch(u){case l.welcome:return this.monitor.recordConnect(),this.subscriptions.reload();case l.disconnect:return r.log("Disconnecting. Reason: "+le),this.close({allowReconnect:Z});case l.ping:return this.monitor.recordPing();case l.confirmation:return this.subscriptions.confirmSubscription(v),this.subscriptions.notify(v,"connected");case l.rejection:return this.subscriptions.reject(v);default:return this.subscriptions.notify(v,"received",K)}}},open:function(){if(r.log("WebSocket onopen event, using '"+this.getProtocol()+"' subprotocol"),this.disconnected=!1,!this.isProtocolSupported())return r.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close:function(p){if(r.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error:function(){r.log("WebSocket onerror event")}};var J=function(p,L){if(L!=null)for(var v in L){var K=L[v];p[v]=K}return p},Q=function(){function C(p){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v=arguments[2];n(this,C),this.consumer=p,this.identifier=JSON.stringify(L),J(this,v)}return C.prototype.perform=function(L){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return v.action=L,this.send(v)},C.prototype.send=function(L){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(L)})},C.prototype.unsubscribe=function(){return this.consumer.subscriptions.remove(this)},C}(),H=function(){function C(p){n(this,C),this.subscriptions=p,this.pendingSubscriptions=[]}return C.prototype.guarantee=function(L){this.pendingSubscriptions.indexOf(L)==-1?(r.log("SubscriptionGuarantor guaranteeing "+L.identifier),this.pendingSubscriptions.push(L)):r.log("SubscriptionGuarantor already guaranteeing "+L.identifier),this.startGuaranteeing()},C.prototype.forget=function(L){r.log("SubscriptionGuarantor forgetting "+L.identifier),this.pendingSubscriptions=this.pendingSubscriptions.filter(function(v){return v!==L})},C.prototype.startGuaranteeing=function(){this.stopGuaranteeing(),this.retrySubscribing()},C.prototype.stopGuaranteeing=function(){clearTimeout(this.retryTimeout)},C.prototype.retrySubscribing=function(){var L=this;this.retryTimeout=setTimeout(function(){L.subscriptions&&typeof L.subscriptions.subscribe=="function"&&L.pendingSubscriptions.map(function(v){r.log("SubscriptionGuarantor resubscribing "+v.identifier),L.subscriptions.subscribe(v)})},500)},C}(),ee=function(){function C(p){n(this,C),this.consumer=p,this.guarantor=new H(this),this.subscriptions=[]}return C.prototype.create=function(L,v){var K=L,le=(typeof K>"u"?"undefined":s(K))==="object"?K:{channel:K},Z=new Q(this.consumer,le,v);return this.add(Z)},C.prototype.add=function(L){return this.subscriptions.push(L),this.consumer.ensureActiveConnection(),this.notify(L,"initialized"),this.subscribe(L),L},C.prototype.remove=function(L){return this.forget(L),this.findAll(L.identifier).length||this.sendCommand(L,"unsubscribe"),L},C.prototype.reject=function(L){var v=this;return this.findAll(L).map(function(K){return v.forget(K),v.notify(K,"rejected"),K})},C.prototype.forget=function(L){return this.guarantor.forget(L),this.subscriptions=this.subscriptions.filter(function(v){return v!==L}),L},C.prototype.findAll=function(L){return this.subscriptions.filter(function(v){return v.identifier===L})},C.prototype.reload=function(){var L=this;return this.subscriptions.map(function(v){return L.subscribe(v)})},C.prototype.notifyAll=function(L){for(var v=this,K=arguments.length,le=Array(K>1?K-1:0),Z=1;Z<K;Z++)le[Z-1]=arguments[Z];return this.subscriptions.map(function(u){return v.notify.apply(v,[u,L].concat(le))})},C.prototype.notify=function(L,v){for(var K=arguments.length,le=Array(K>2?K-2:0),Z=2;Z<K;Z++)le[Z-2]=arguments[Z];var u=void 0;return typeof L=="string"?u=this.findAll(L):u=[L],u.map(function(g){return typeof g[v]=="function"?g[v].apply(g,le):void 0})},C.prototype.subscribe=function(L){this.sendCommand(L,"subscribe")&&this.guarantor.guarantee(L)},C.prototype.confirmSubscription=function(L){var v=this;r.log("Subscription confirmed "+L),this.findAll(L).map(function(K){return v.guarantor.forget(K)})},C.prototype.sendCommand=function(L,v){var K=L.identifier;return this.consumer.send({command:v,identifier:K})},C}(),Ce=function(){function C(p){n(this,C),this._url=p,this.subscriptions=new ee(this),this.connection=new $(this)}return C.prototype.send=function(L){return this.connection.send(L)},C.prototype.connect=function(){return this.connection.open()},C.prototype.disconnect=function(){return this.connection.close({allowReconnect:!1})},C.prototype.ensureActiveConnection=function(){if(!this.connection.isActive())return this.connection.open()},R(C,[{key:"url",get:function(){return Ae(this._url)}}]),C}();function Ae(C){if(typeof C=="function"&&(C=C()),C&&!/^wss?:/i.test(C)){var p=document.createElement("a");return p.href=C,p.href=p.href,p.protocol=p.protocol.replace("http","ws"),p.href}else return C}function Ee(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:k("url")||I.default_mount_path;return new Ce(C)}function k(C){var p=document.head.querySelector("meta[name='action-cable-"+C+"']");if(p)return p.getAttribute("content")}t.Connection=$,t.ConnectionMonitor=a,t.Consumer=Ce,t.INTERNAL=I,t.Subscription=Q,t.Subscriptions=ee,t.SubscriptionGuarantor=H,t.adapters=T,t.createWebSocketURL=Ae,t.logger=r,t.createConsumer=Ee,t.getConfig=k,Object.defineProperty(t,"__esModule",{value:!0})})})(cr,cr.exports);var Ma=cr.exports;function sn(e,E){return h(),Y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"fill-rule":"evenodd",d:"M11.78 4.22a.75.75 0 0 1 0 1.06L6.56 10.5h3.69a.75.75 0 0 1 0 1.5h-5.5a.75.75 0 0 1-.75-.75v-5.5a.75.75 0 0 1 1.5 0v3.69l5.22-5.22a.75.75 0 0 1 1.06 0Z","clip-rule":"evenodd"})])}function Ua(e,E){return h(),Y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"fill-rule":"evenodd",d:"M13.78 10.47a.75.75 0 0 1 0 1.06l-2.25 2.25a.75.75 0 0 1-1.06 0l-2.25-2.25a.75.75 0 1 1 1.06-1.06l.97.97V5.75a.75.75 0 0 1 1.5 0v5.69l.97-.97a.75.75 0 0 1 1.06 0ZM2.22 5.53a.75.75 0 0 1 0-1.06l2.25-2.25a.75.75 0 0 1 1.06 0l2.25 2.25a.75.75 0 0 1-1.06 1.06l-.97-.97v5.69a.75.75 0 0 1-1.5 0V4.56l-.97.97a.75.75 0 0 1-1.06 0Z","clip-rule":"evenodd"})])}function Fo(e,E){return h(),Y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"fill-rule":"evenodd",d:"M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"})])}function ha(e,E){return h(),Y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{d:"M8 7c3.314 0 6-1.343 6-3s-2.686-3-6-3-6 1.343-6 3 2.686 3 6 3Z"}),O("path",{d:"M8 8.5c1.84 0 3.579-.37 4.914-1.037A6.33 6.33 0 0 0 14 6.78V8c0 1.657-2.686 3-6 3S2 9.657 2 8V6.78c.346.273.72.5 1.087.683C4.42 8.131 6.16 8.5 8 8.5Z"}),O("path",{d:"M8 12.5c1.84 0 3.579-.37 4.914-1.037.366-.183.74-.41 1.086-.684V12c0 1.657-2.686 3-6 3s-6-1.343-6-3v-1.22c.346.273.72.5 1.087.683C4.42 12.131 6.16 12.5 8 12.5Z"})])}function Ga(e,E){return h(),Y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"fill-rule":"evenodd",d:"M4.78 4.97a.75.75 0 0 1 0 1.06L2.81 8l1.97 1.97a.75.75 0 1 1-1.06 1.06l-2.5-2.5a.75.75 0 0 1 0-1.06l2.5-2.5a.75.75 0 0 1 1.06 0ZM11.22 4.97a.75.75 0 0 0 0 1.06L13.19 8l-1.97 1.97a.75.75 0 1 0 1.06 1.06l2.5-2.5a.75.75 0 0 0 0-1.06l-2.5-2.5a.75.75 0 0 0-1.06 0ZM8.856 2.008a.75.75 0 0 1 .636.848l-1.5 10.5a.75.75 0 0 1-1.484-.212l1.5-10.5a.75.75 0 0 1 .848-.636Z","clip-rule":"evenodd"})])}function ga(e,E){return h(),Y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{d:"M6 6v4h4V6H6Z"}),O("path",{"fill-rule":"evenodd",d:"M5.75 1a.75.75 0 0 0-.75.75V3a2 2 0 0 0-2 2H1.75a.75.75 0 0 0 0 1.5H3v.75H1.75a.75.75 0 0 0 0 1.5H3v.75H1.75a.75.75 0 0 0 0 1.5H3a2 2 0 0 0 2 2v1.25a.75.75 0 0 0 1.5 0V13h.75v1.25a.75.75 0 0 0 1.5 0V13h.75v1.25a.75.75 0 0 0 1.5 0V13a2 2 0 0 0 2-2h1.25a.75.75 0 0 0 0-1.5H13v-.75h1.25a.75.75 0 0 0 0-1.5H13V6.5h1.25a.75.75 0 0 0 0-1.5H13a2 2 0 0 0-2-2V1.75a.75.75 0 0 0-1.5 0V3h-.75V1.75a.75.75 0 0 0-1.5 0V3H6.5V1.75A.75.75 0 0 0 5.75 1ZM11 4.5a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5h6Z","clip-rule":"evenodd"})])}function ma(e,E){return h(),Y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{d:"M4.5 2a.5.5 0 0 0-.5.5v11a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-11a.5.5 0 0 0-.5-.5h-1ZM10.5 2a.5.5 0 0 0-.5.5v11a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-11a.5.5 0 0 0-.5-.5h-1Z"})])}function Ha(e,E){return h(),Y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{d:"M3 3.732a1.5 1.5 0 0 1 2.305-1.265l6.706 4.267a1.5 1.5 0 0 1 0 2.531l-6.706 4.268A1.5 1.5 0 0 1 3 12.267V3.732Z"})])}function ya(e,E){return h(),Y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"fill-rule":"evenodd",d:"M5 3.25V4H2.75a.75.75 0 0 0 0 1.5h.3l.815 8.15A1.5 1.5 0 0 0 5.357 15h5.285a1.5 1.5 0 0 0 1.493-1.35l.815-8.15h.3a.75.75 0 0 0 0-1.5H11v-.75A2.25 2.25 0 0 0 8.75 1h-1.5A2.25 2.25 0 0 0 5 3.25Zm2.25-.75a.75.75 0 0 0-.75.75V4h3v-.75a.75.75 0 0 0-.75-.75h-1.5ZM6.05 6a.75.75 0 0 1 .787.713l.275 5.5a.75.75 0 0 1-1.498.075l-.275-5.5A.75.75 0 0 1 6.05 6Zm3.9 0a.75.75 0 0 1 .712.787l-.275 5.5a.75.75 0 0 1-1.498-.075l.275-5.5a.75.75 0 0 1 .786-.711Z","clip-rule":"evenodd"})])}function ba(e,E){return h(),Y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"fill-rule":"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Zm2.78-4.22a.75.75 0 0 1-1.06 0L8 9.06l-1.72 1.72a.75.75 0 1 1-1.06-1.06L6.94 8 5.22 6.28a.75.75 0 0 1 1.06-1.06L8 6.94l1.72-1.72a.75.75 0 1 1 1.06 1.06L9.06 8l1.72 1.72a.75.75 0 0 1 0 1.06Z","clip-rule":"evenodd"})])}const Ba=["textContent"],Fa=Me({__name:"TabButton",props:{label:{},count:{},isActive:{type:Boolean}},setup(e){const E=e;return(t,T)=>(h(),Y("button",{class:$e(["text-sm flex items-center space-x-1 px-3 py-2 border-0",{"bg-stone-300 rounded-sm":E.isActive}])},[O("span",{class:$e({"font-medium":E.isActive})},[St(t.$slots,"default")],2),E.count!=null?(h(),Y("span",{key:0,class:$e(["p-0.5 rounded-full text-xs",{"px-1.5":E.count<10,hidden:E.count==0,"bg-stone-300":E.count>0&&!E.isActive,"bg-stone-400":E.count>0&&E.isActive}]),textContent:ne(E.count)},null,10,Ba)):oe("",!0)],2))}}),vo=(e,E)=>{const t=e.__vccOpts||e;for(const[T,r]of E)t[T]=r;return t},va={},Ya={class:"px-3 py-2"};function xa(e,E){return h(),Y("div",Ya,[St(e.$slots,"default")])}const OE=vo(va,[["render",xa]]),Va={key:0},wa=O("div",{class:"text-gray-500"},"No models were initialized.",-1),Wa=[wa],Xa={key:1,class:"divide-y divide-stone-300"},$a=O("thead",null,[O("tr",null,[O("th",{scope:"col",class:"w-36 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-stone-900 sm:pl-0"}," Model "),O("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-stone-900"},"Count")])],-1),Ka={class:"divide-y divide-stone-200"},Ja={class:"whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-stone-900 sm:pl-0"},ka={class:"whitespace-nowrap px-3 py-4 text-sm text-stone-500 text-center"},ja=Me({__name:"ModelsPanel",props:{models:{},count:{}},setup(e){const E=e;return(t,T)=>(h(),fe(OE,null,{default:ie(()=>[E.count==0?(h(),Y("div",Va,Wa)):oe("",!0),E.count>0?(h(),Y("table",Xa,[$a,O("tbody",Ka,[(h(!0),Y(Le,null,Je(E.models,(r,s)=>(h(),Y("tr",{key:s},[O("td",Ja,ne(s),1),O("td",ka,ne(r),1)]))),128))])])):oe("",!0)]),_:1}))}});var Yo={exports:{}};(function(e){(function(E,t){e.exports?e.exports=t():E.nearley=t()})(qE,function(){function E(o,i,a){return this.id=++E.highestId,this.name=o,this.symbols=i,this.postprocess=a,this}E.highestId=0,E.prototype.toString=function(o){var i=typeof o>"u"?this.symbols.map(A).join(" "):this.symbols.slice(0,o).map(A).join(" ")+" ● "+this.symbols.slice(o).map(A).join(" ");return this.name+" → "+i};function t(o,i,a,I){this.rule=o,this.dot=i,this.reference=a,this.data=[],this.wantedBy=I,this.isComplete=this.dot===o.symbols.length}t.prototype.toString=function(){return"{"+this.rule.toString(this.dot)+"}, from: "+(this.reference||0)},t.prototype.nextState=function(o){var i=new t(this.rule,this.dot+1,this.reference,this.wantedBy);return i.left=this,i.right=o,i.isComplete&&(i.data=i.build(),i.right=void 0),i},t.prototype.build=function(){var o=[],i=this;do o.push(i.right.data),i=i.left;while(i.left);return o.reverse(),o},t.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,n.fail))};function T(o,i){this.grammar=o,this.index=i,this.states=[],this.wants={},this.scannable=[],this.completed={}}T.prototype.process=function(o){for(var i=this.states,a=this.wants,I=this.completed,l=0;l<i.length;l++){var U=i[l];if(U.isComplete){if(U.finish(),U.data!==n.fail){for(var B=U.wantedBy,V=B.length;V--;){var $=B[V];this.complete($,U)}if(U.reference===this.index){var J=U.rule.name;(this.completed[J]=this.completed[J]||[]).push(U)}}}else{var J=U.rule.symbols[U.dot];if(typeof J!="string"){this.scannable.push(U);continue}if(a[J]){if(a[J].push(U),I.hasOwnProperty(J))for(var Q=I[J],V=0;V<Q.length;V++){var H=Q[V];this.complete(U,H)}}else a[J]=[U],this.predict(J)}}},T.prototype.predict=function(o){for(var i=this.grammar.byName[o]||[],a=0;a<i.length;a++){var I=i[a],l=this.wants[o],U=new t(I,0,this.index,l);this.states.push(U)}},T.prototype.complete=function(o,i){var a=o.nextState(i);this.states.push(a)};function r(o,i){this.rules=o,this.start=i||this.rules[0].name;var a=this.byName={};this.rules.forEach(function(I){a.hasOwnProperty(I.name)||(a[I.name]=[]),a[I.name].push(I)})}r.fromCompiled=function(I,i){var a=I.Lexer;I.ParserStart&&(i=I.ParserStart,I=I.ParserRules);var I=I.map(function(U){return new E(U.name,U.symbols,U.postprocess)}),l=new r(I,i);return l.lexer=a,l};function s(){this.reset("")}s.prototype.reset=function(o,i){this.buffer=o,this.index=0,this.line=i?i.line:1,this.lastLineBreak=i?-i.col:0},s.prototype.next=function(){if(this.index<this.buffer.length){var o=this.buffer[this.index++];return o===`
|
7
7
|
`&&(this.line+=1,this.lastLineBreak=this.index),{value:o}}},s.prototype.save=function(){return{line:this.line,col:this.index-this.lastLineBreak}},s.prototype.formatError=function(o,i){var a=this.buffer;if(typeof a=="string"){var I=a.split(`
|
8
8
|
`).slice(Math.max(0,this.line-5),this.line),l=a.indexOf(`
|
9
9
|
`,this.index);l===-1&&(l=a.length);var U=this.index-this.lastLineBreak,B=String(this.line).length;return i+=" at line "+this.line+" col "+U+`:
|
10
10
|
|
11
|
-
`,i+=I.map(function($,J){return
|
11
|
+
`,i+=I.map(function($,J){return V(this.line-I.length+J+1,B)+" "+$},this).join(`
|
12
12
|
`),i+=`
|
13
|
-
`+
|
14
|
-
`,i}else return i+" at index "+(this.index-1);function
|
13
|
+
`+V("",B+U)+`^
|
14
|
+
`,i}else return i+" at index "+(this.index-1);function V($,J){var Q=String($);return Array(J-Q.length+1).join(" ")+Q}};function n(o,i,a){if(o instanceof r)var I=o,a=i;else var I=r.fromCompiled(o,i);this.grammar=I,this.options={keepHistory:!1,lexer:I.lexer||new s};for(var l in a||{})this.options[l]=a[l];this.lexer=this.options.lexer,this.lexerState=void 0;var U=new T(I,0);this.table=[U],U.wants[I.start]=[],U.predict(I.start),U.process(),this.current=0}n.fail={},n.prototype.feed=function(o){var i=this.lexer;i.reset(o,this.lexerState);for(var a;;){try{if(a=i.next(),!a)break}catch(Ae){var B=new T(this.grammar,this.current+1);this.table.push(B);var I=new Error(this.reportLexerError(Ae));throw I.offset=this.current,I.token=Ae.token,I}var l=this.table[this.current];this.options.keepHistory||delete this.table[this.current-1];var U=this.current+1,B=new T(this.grammar,U);this.table.push(B);for(var V=a.text!==void 0?a.text:a.value,$=i.constructor===s?a.value:a,J=l.scannable,Q=J.length;Q--;){var H=J[Q],ee=H.rule.symbols[H.dot];if(ee.test?ee.test($):ee.type?ee.type===a.type:ee.literal===V){var Ce=H.nextState({data:$,token:a,isToken:!0,reference:U-1});B.states.push(Ce)}}if(B.process(),B.states.length===0){var I=new Error(this.reportError(a));throw I.offset=this.current,I.token=a,I}this.options.keepHistory&&(l.lexerState=i.save()),this.current++}return l&&(this.lexerState=i.save()),this.results=this.finish(),this},n.prototype.reportLexerError=function(o){var i,a,I=o.token;return I?(i="input "+JSON.stringify(I.text[0])+" (lexer error)",a=this.lexer.formatError(I,"Syntax error")):(i="input (lexer error)",a=o.message),this.reportErrorCommon(a,i)},n.prototype.reportError=function(o){var i=(o.type?o.type+" token: ":"")+JSON.stringify(o.value!==void 0?o.value:o),a=this.lexer.formatError(o,"Syntax error");return this.reportErrorCommon(a,i)},n.prototype.reportErrorCommon=function(o,i){var a=[];a.push(o);var I=this.table.length-2,l=this.table[I],U=l.states.filter(function(V){var $=V.rule.symbols[V.dot];return $&&typeof $!="string"});if(U.length===0)a.push("Unexpected "+i+`. I did not expect any more input. Here is the state of my parse table:
|
15
15
|
`),this.displayStateStack(l.states,a);else{a.push("Unexpected "+i+`. Instead, I was expecting to see one of the following:
|
16
|
-
`);var B=U.map(function(
|
17
|
-
`)},n.prototype.displayStateStack=function(o,i){for(var a,I=0,l=0;l<o.length;l++){var U=o[l],B=U.rule.toString(U.dot);B===a?I++:(I>0&&i.push(" ^ "+I+" more lines identical to this"),I=0,i.push(" "+B)),a=B}},n.prototype.getSymbolDisplay=function(o){return R(o)},n.prototype.buildFirstStateStack=function(o,i){if(i.indexOf(o)!==-1)return null;if(o.wantedBy.length===0)return[o];var a=o.wantedBy[0],I=[o].concat(i),l=this.buildFirstStateStack(a,I);return l===null?null:[o].concat(l)},n.prototype.save=function(){var o=this.table[this.current];return o.lexerState=this.lexerState,o},n.prototype.restore=function(o){var i=o.index;this.current=i,this.table[i]=o,this.table.splice(i+1),this.lexerState=o.lexerState,this.results=this.finish()},n.prototype.rewind=function(o){if(!this.options.keepHistory)throw new Error("set option `keepHistory` to enable rewinding");this.restore(this.table[o])},n.prototype.finish=function(){var o=[],i=this.grammar.start,a=this.table[this.table.length-1];return a.states.forEach(function(I){I.rule.name===i&&I.dot===I.rule.symbols.length&&I.reference===0&&I.data!==n.fail&&o.push(I)}),o.map(function(I){return I.data})};function R(o){var i=typeof o;if(i==="string")return o;if(i==="object"){if(o.literal)return JSON.stringify(o.literal);if(o instanceof RegExp)return"character matching "+o;if(o.type)return o.type+" token";if(o.test)return"token matching "+String(o.test);throw new Error("Unknown symbol type: "+o)}}function A(o){var i=typeof o;if(i==="string")return o;if(i==="object"){if(o.literal)return JSON.stringify(o.literal);if(o instanceof RegExp)return o.toString();if(o.type)return"%"+o.type;if(o.test)return"<"+String(o.test)+">";throw new Error("Unknown symbol type: "+o)}}return{Parser:n,Grammar:r,Rule:E}})})(vo);var ja=vo.exports;const qa=fT(ja);var Yo=Object.defineProperty,Qa=Object.defineProperties,Za=Object.getOwnPropertyDescriptors,cT=Object.getOwnPropertySymbols,Vo=Object.prototype.hasOwnProperty,xo=Object.prototype.propertyIsEnumerable,sn=(e,E,t)=>E in e?Yo(e,E,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[E]=t,ye=(e,E)=>{for(var t in E||(E={}))Vo.call(E,t)&&sn(e,t,E[t]);if(cT)for(var t of cT(E))xo.call(E,t)&&sn(e,t,E[t]);return e},Ve=(e,E)=>Qa(e,Za(E)),za=(e,E)=>{var t={};for(var T in e)Vo.call(e,T)&&E.indexOf(T)<0&&(t[T]=e[T]);if(e!=null&&cT)for(var T of cT(e))E.indexOf(T)<0&&xo.call(e,T)&&(t[T]=e[T]);return t},eI=(e,E)=>{for(var t in E)Yo(e,t,{get:E[t],enumerable:!0})},wo={};eI(wo,{bigquery:()=>CI,db2:()=>gI,db2i:()=>VI,hive:()=>jI,mariadb:()=>rN,mysql:()=>aN,n1ql:()=>pN,plsql:()=>gN,postgresql:()=>xN,redshift:()=>qN,singlestoredb:()=>Ql,snowflake:()=>n_,spark:()=>sl,sql:()=>Pl,sqlite:()=>Nl,transactsql:()=>wl,trino:()=>Hl});var d=e=>e.flatMap(EI),EI=e=>RT(TI(e)).map(tI),tI=e=>e.replace(/ +/g," ").trim(),TI=e=>({type:"mandatory_block",items:Qr(e,0)[0]}),Qr=(e,E,t)=>{const T=[];for(;e[E];){const[r,s]=rI(e,E);if(T.push(r),E=s,e[E]==="|")E++;else if(e[E]==="}"||e[E]==="]"){if(t!==e[E])throw new Error(`Unbalanced parenthesis in: ${e}`);return E++,[T,E]}else if(E===e.length){if(t)throw new Error(`Unbalanced parenthesis in: ${e}`);return[T,E]}else throw new Error(`Unexpected "${e[E]}"`)}return[T,E]},rI=(e,E)=>{const t=[];for(;;){const[T,r]=sI(e,E);if(T)t.push(T),E=r;else break}return t.length===1?[t[0],E]:[{type:"concatenation",items:t},E]},sI=(e,E)=>{if(e[E]==="{")return nI(e,E+1);if(e[E]==="[")return RI(e,E+1);{let t="";for(;e[E]&&/[A-Za-z0-9_ ]/.test(e[E]);)t+=e[E],E++;return[t,E]}},nI=(e,E)=>{const[t,T]=Qr(e,E,"}");return[{type:"mandatory_block",items:t},T]},RI=(e,E)=>{const[t,T]=Qr(e,E,"]");return[{type:"optional_block",items:t},T]},RT=e=>{if(typeof e=="string")return[e];if(e.type==="concatenation")return e.items.map(RT).reduce(oI,[""]);if(e.type==="mandatory_block")return e.items.flatMap(RT);if(e.type==="optional_block")return["",...e.items.flatMap(RT)];throw new Error(`Unknown node type: ${e}`)},oI=(e,E)=>{const t=[];for(const T of e)for(const r of E)t.push(T+r);return t},Wo=(e=>(e.QUOTED_IDENTIFIER="QUOTED_IDENTIFIER",e.IDENTIFIER="IDENTIFIER",e.STRING="STRING",e.VARIABLE="VARIABLE",e.RESERVED_DATA_TYPE="RESERVED_DATA_TYPE",e.RESERVED_PARAMETERIZED_DATA_TYPE="RESERVED_PARAMETERIZED_DATA_TYPE",e.RESERVED_KEYWORD="RESERVED_KEYWORD",e.RESERVED_FUNCTION_NAME="RESERVED_FUNCTION_NAME",e.RESERVED_PHRASE="RESERVED_PHRASE",e.RESERVED_SET_OPERATION="RESERVED_SET_OPERATION",e.RESERVED_CLAUSE="RESERVED_CLAUSE",e.RESERVED_SELECT="RESERVED_SELECT",e.RESERVED_JOIN="RESERVED_JOIN",e.ARRAY_IDENTIFIER="ARRAY_IDENTIFIER",e.ARRAY_KEYWORD="ARRAY_KEYWORD",e.CASE="CASE",e.END="END",e.WHEN="WHEN",e.ELSE="ELSE",e.THEN="THEN",e.LIMIT="LIMIT",e.BETWEEN="BETWEEN",e.AND="AND",e.OR="OR",e.XOR="XOR",e.OPERATOR="OPERATOR",e.COMMA="COMMA",e.ASTERISK="ASTERISK",e.DOT="DOT",e.OPEN_PAREN="OPEN_PAREN",e.CLOSE_PAREN="CLOSE_PAREN",e.LINE_COMMENT="LINE_COMMENT",e.BLOCK_COMMENT="BLOCK_COMMENT",e.NUMBER="NUMBER",e.NAMED_PARAMETER="NAMED_PARAMETER",e.QUOTED_PARAMETER="QUOTED_PARAMETER",e.NUMBERED_PARAMETER="NUMBERED_PARAMETER",e.POSITIONAL_PARAMETER="POSITIONAL_PARAMETER",e.CUSTOM_PARAMETER="CUSTOM_PARAMETER",e.DELIMITER="DELIMITER",e.EOF="EOF",e))(Wo||{}),Xo=e=>({type:"EOF",raw:"«EOF»",text:"«EOF»",start:e}),nt=Xo(1/0),jE=e=>E=>E.type===e.type&&E.text===e.text,xE={ARRAY:jE({text:"ARRAY",type:"RESERVED_DATA_TYPE"}),BY:jE({text:"BY",type:"RESERVED_KEYWORD"}),SET:jE({text:"SET",type:"RESERVED_CLAUSE"}),STRUCT:jE({text:"STRUCT",type:"RESERVED_DATA_TYPE"}),WINDOW:jE({text:"WINDOW",type:"RESERVED_CLAUSE"}),VALUES:jE({text:"VALUES",type:"RESERVED_CLAUSE"})},$o=e=>e==="RESERVED_DATA_TYPE"||e==="RESERVED_KEYWORD"||e==="RESERVED_FUNCTION_NAME"||e==="RESERVED_PHRASE"||e==="RESERVED_CLAUSE"||e==="RESERVED_SELECT"||e==="RESERVED_SET_OPERATION"||e==="RESERVED_JOIN"||e==="ARRAY_KEYWORD"||e==="CASE"||e==="END"||e==="WHEN"||e==="ELSE"||e==="THEN"||e==="LIMIT"||e==="BETWEEN"||e==="AND"||e==="OR"||e==="XOR",AI=e=>e==="AND"||e==="OR"||e==="XOR",iI=["KEYS.NEW_KEYSET","KEYS.ADD_KEY_FROM_RAW_BYTES","AEAD.DECRYPT_BYTES","AEAD.DECRYPT_STRING","AEAD.ENCRYPT","KEYS.KEYSET_CHAIN","KEYS.KEYSET_FROM_JSON","KEYS.KEYSET_TO_JSON","KEYS.ROTATE_KEYSET","KEYS.KEYSET_LENGTH","ANY_VALUE","ARRAY_AGG","AVG","CORR","COUNT","COUNTIF","COVAR_POP","COVAR_SAMP","MAX","MIN","ST_CLUSTERDBSCAN","STDDEV_POP","STDDEV_SAMP","STRING_AGG","SUM","VAR_POP","VAR_SAMP","ANY_VALUE","ARRAY_AGG","ARRAY_CONCAT_AGG","AVG","BIT_AND","BIT_OR","BIT_XOR","COUNT","COUNTIF","LOGICAL_AND","LOGICAL_OR","MAX","MIN","STRING_AGG","SUM","APPROX_COUNT_DISTINCT","APPROX_QUANTILES","APPROX_TOP_COUNT","APPROX_TOP_SUM","ARRAY_CONCAT","ARRAY_LENGTH","ARRAY_TO_STRING","GENERATE_ARRAY","GENERATE_DATE_ARRAY","GENERATE_TIMESTAMP_ARRAY","ARRAY_REVERSE","OFFSET","SAFE_OFFSET","ORDINAL","SAFE_ORDINAL","BIT_COUNT","PARSE_BIGNUMERIC","PARSE_NUMERIC","SAFE_CAST","CURRENT_DATE","EXTRACT","DATE","DATE_ADD","DATE_SUB","DATE_DIFF","DATE_TRUNC","DATE_FROM_UNIX_DATE","FORMAT_DATE","LAST_DAY","PARSE_DATE","UNIX_DATE","CURRENT_DATETIME","DATETIME","EXTRACT","DATETIME_ADD","DATETIME_SUB","DATETIME_DIFF","DATETIME_TRUNC","FORMAT_DATETIME","LAST_DAY","PARSE_DATETIME","ERROR","EXTERNAL_QUERY","S2_CELLIDFROMPOINT","S2_COVERINGCELLIDS","ST_ANGLE","ST_AREA","ST_ASBINARY","ST_ASGEOJSON","ST_ASTEXT","ST_AZIMUTH","ST_BOUNDARY","ST_BOUNDINGBOX","ST_BUFFER","ST_BUFFERWITHTOLERANCE","ST_CENTROID","ST_CENTROID_AGG","ST_CLOSESTPOINT","ST_CLUSTERDBSCAN","ST_CONTAINS","ST_CONVEXHULL","ST_COVEREDBY","ST_COVERS","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_DUMP","ST_DWITHIN","ST_ENDPOINT","ST_EQUALS","ST_EXTENT","ST_EXTERIORRING","ST_GEOGFROM","ST_GEOGFROMGEOJSON","ST_GEOGFROMTEXT","ST_GEOGFROMWKB","ST_GEOGPOINT","ST_GEOGPOINTFROMGEOHASH","ST_GEOHASH","ST_GEOMETRYTYPE","ST_INTERIORRINGS","ST_INTERSECTION","ST_INTERSECTS","ST_INTERSECTSBOX","ST_ISCOLLECTION","ST_ISEMPTY","ST_LENGTH","ST_MAKELINE","ST_MAKEPOLYGON","ST_MAKEPOLYGONORIENTED","ST_MAXDISTANCE","ST_NPOINTS","ST_NUMGEOMETRIES","ST_NUMPOINTS","ST_PERIMETER","ST_POINTN","ST_SIMPLIFY","ST_SNAPTOGRID","ST_STARTPOINT","ST_TOUCHES","ST_UNION","ST_UNION_AGG","ST_WITHIN","ST_X","ST_Y","FARM_FINGERPRINT","MD5","SHA1","SHA256","SHA512","HLL_COUNT.INIT","HLL_COUNT.MERGE","HLL_COUNT.MERGE_PARTIAL","HLL_COUNT.EXTRACT","MAKE_INTERVAL","EXTRACT","JUSTIFY_DAYS","JUSTIFY_HOURS","JUSTIFY_INTERVAL","JSON_EXTRACT","JSON_QUERY","JSON_EXTRACT_SCALAR","JSON_VALUE","JSON_EXTRACT_ARRAY","JSON_QUERY_ARRAY","JSON_EXTRACT_STRING_ARRAY","JSON_VALUE_ARRAY","TO_JSON_STRING","ABS","SIGN","IS_INF","IS_NAN","IEEE_DIVIDE","RAND","SQRT","POW","POWER","EXP","LN","LOG","LOG10","GREATEST","LEAST","DIV","SAFE_DIVIDE","SAFE_MULTIPLY","SAFE_NEGATE","SAFE_ADD","SAFE_SUBTRACT","MOD","ROUND","TRUNC","CEIL","CEILING","FLOOR","COS","COSH","ACOS","ACOSH","SIN","SINH","ASIN","ASINH","TAN","TANH","ATAN","ATANH","ATAN2","RANGE_BUCKET","FIRST_VALUE","LAST_VALUE","NTH_VALUE","LEAD","LAG","PERCENTILE_CONT","PERCENTILE_DISC","NET.IP_FROM_STRING","NET.SAFE_IP_FROM_STRING","NET.IP_TO_STRING","NET.IP_NET_MASK","NET.IP_TRUNC","NET.IPV4_FROM_INT64","NET.IPV4_TO_INT64","NET.HOST","NET.PUBLIC_SUFFIX","NET.REG_DOMAIN","RANK","DENSE_RANK","PERCENT_RANK","CUME_DIST","NTILE","ROW_NUMBER","SESSION_USER","CORR","COVAR_POP","COVAR_SAMP","STDDEV_POP","STDDEV_SAMP","STDDEV","VAR_POP","VAR_SAMP","VARIANCE","ASCII","BYTE_LENGTH","CHAR_LENGTH","CHARACTER_LENGTH","CHR","CODE_POINTS_TO_BYTES","CODE_POINTS_TO_STRING","CONCAT","CONTAINS_SUBSTR","ENDS_WITH","FORMAT","FROM_BASE32","FROM_BASE64","FROM_HEX","INITCAP","INSTR","LEFT","LENGTH","LPAD","LOWER","LTRIM","NORMALIZE","NORMALIZE_AND_CASEFOLD","OCTET_LENGTH","REGEXP_CONTAINS","REGEXP_EXTRACT","REGEXP_EXTRACT_ALL","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","REPLACE","REPEAT","REVERSE","RIGHT","RPAD","RTRIM","SAFE_CONVERT_BYTES_TO_STRING","SOUNDEX","SPLIT","STARTS_WITH","STRPOS","SUBSTR","SUBSTRING","TO_BASE32","TO_BASE64","TO_CODE_POINTS","TO_HEX","TRANSLATE","TRIM","UNICODE","UPPER","CURRENT_TIME","TIME","EXTRACT","TIME_ADD","TIME_SUB","TIME_DIFF","TIME_TRUNC","FORMAT_TIME","PARSE_TIME","CURRENT_TIMESTAMP","EXTRACT","STRING","TIMESTAMP","TIMESTAMP_ADD","TIMESTAMP_SUB","TIMESTAMP_DIFF","TIMESTAMP_TRUNC","FORMAT_TIMESTAMP","PARSE_TIMESTAMP","TIMESTAMP_SECONDS","TIMESTAMP_MILLIS","TIMESTAMP_MICROS","UNIX_SECONDS","UNIX_MILLIS","UNIX_MICROS","GENERATE_UUID","COALESCE","IF","IFNULL","NULLIF","AVG","BIT_AND","BIT_OR","BIT_XOR","CORR","COUNT","COVAR_POP","COVAR_SAMP","EXACT_COUNT_DISTINCT","FIRST","GROUP_CONCAT","GROUP_CONCAT_UNQUOTED","LAST","MAX","MIN","NEST","NTH","QUANTILES","STDDEV","STDDEV_POP","STDDEV_SAMP","SUM","TOP","UNIQUE","VARIANCE","VAR_POP","VAR_SAMP","BIT_COUNT","BOOLEAN","BYTES","CAST","FLOAT","HEX_STRING","INTEGER","STRING","COALESCE","GREATEST","IFNULL","IS_INF","IS_NAN","IS_EXPLICITLY_DEFINED","LEAST","NVL","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE","DATE_ADD","DATEDIFF","DAY","DAYOFWEEK","DAYOFYEAR","FORMAT_UTC_USEC","HOUR","MINUTE","MONTH","MSEC_TO_TIMESTAMP","NOW","PARSE_UTC_USEC","QUARTER","SEC_TO_TIMESTAMP","SECOND","STRFTIME_UTC_USEC","TIME","TIMESTAMP","TIMESTAMP_TO_MSEC","TIMESTAMP_TO_SEC","TIMESTAMP_TO_USEC","USEC_TO_TIMESTAMP","UTC_USEC_TO_DAY","UTC_USEC_TO_HOUR","UTC_USEC_TO_MONTH","UTC_USEC_TO_WEEK","UTC_USEC_TO_YEAR","WEEK","YEAR","FORMAT_IP","PARSE_IP","FORMAT_PACKED_IP","PARSE_PACKED_IP","JSON_EXTRACT","JSON_EXTRACT_SCALAR","ABS","ACOS","ACOSH","ASIN","ASINH","ATAN","ATANH","ATAN2","CEIL","COS","COSH","DEGREES","EXP","FLOOR","LN","LOG","LOG2","LOG10","PI","POW","RADIANS","RAND","ROUND","SIN","SINH","SQRT","TAN","TANH","REGEXP_MATCH","REGEXP_EXTRACT","REGEXP_REPLACE","CONCAT","INSTR","LEFT","LENGTH","LOWER","LPAD","LTRIM","REPLACE","RIGHT","RPAD","RTRIM","SPLIT","SUBSTR","UPPER","TABLE_DATE_RANGE","TABLE_DATE_RANGE_STRICT","TABLE_QUERY","HOST","DOMAIN","TLD","AVG","COUNT","MAX","MIN","STDDEV","SUM","CUME_DIST","DENSE_RANK","FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","RANK","RATIO_TO_REPORT","ROW_NUMBER","CURRENT_USER","EVERY","FROM_BASE64","HASH","FARM_FINGERPRINT","IF","POSITION","SHA1","SOME","TO_BASE64","BQ.JOBS.CANCEL","BQ.REFRESH_MATERIALIZED_VIEW","OPTIONS","PIVOT","UNPIVOT"],SI=["ALL","AND","ANY","AS","ASC","ASSERT_ROWS_MODIFIED","AT","BETWEEN","BY","CASE","CAST","COLLATE","CONTAINS","CREATE","CROSS","CUBE","CURRENT","DEFAULT","DEFINE","DESC","DISTINCT","ELSE","END","ENUM","ESCAPE","EXCEPT","EXCLUDE","EXISTS","EXTRACT","FALSE","FETCH","FOLLOWING","FOR","FROM","FULL","GROUP","GROUPING","GROUPS","HASH","HAVING","IF","IGNORE","IN","INNER","INTERSECT","INTO","IS","JOIN","LATERAL","LEFT","LIMIT","LOOKUP","MERGE","NATURAL","NEW","NO","NOT","NULL","NULLS","OF","ON","OR","ORDER","OUTER","OVER","PARTITION","PRECEDING","PROTO","RANGE","RECURSIVE","RESPECT","RIGHT","ROLLUP","ROWS","SELECT","SET","SOME","TABLE","TABLESAMPLE","THEN","TO","TREAT","TRUE","UNBOUNDED","UNION","UNNEST","USING","WHEN","WHERE","WINDOW","WITH","WITHIN","SAFE","LIKE","COPY","CLONE","IN","OUT","INOUT","RETURNS","LANGUAGE","CASCADE","RESTRICT","DETERMINISTIC"],OI=["ARRAY","BOOL","BYTES","DATE","DATETIME","GEOGRAPHY","INTERVAL","INT64","INT","SMALLINT","INTEGER","BIGINT","TINYINT","BYTEINT","NUMERIC","DECIMAL","BIGNUMERIC","BIGDECIMAL","FLOAT64","STRING","STRUCT","TIME","TIMEZONE"],aI=d(["SELECT [ALL | DISTINCT] [AS STRUCT | AS VALUE]"]),II=d(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","QUALIFY","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","OMIT RECORD IF","INSERT [INTO]","VALUES","SET","MERGE [INTO]","WHEN [NOT] MATCHED [BY SOURCE | BY TARGET] [THEN]","UPDATE SET","CLUSTER BY","FOR SYSTEM_TIME AS OF","WITH CONNECTION","WITH PARTITION COLUMNS","REMOTE WITH CONNECTION"]),nn=d(["CREATE [OR REPLACE] [TEMP|TEMPORARY|SNAPSHOT|EXTERNAL] TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] [MATERIALIZED] VIEW [IF NOT EXISTS]","UPDATE","DELETE [FROM]","DROP [SNAPSHOT | EXTERNAL] TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS]","ADD COLUMN [IF NOT EXISTS]","DROP COLUMN [IF EXISTS]","RENAME TO","ALTER COLUMN [IF EXISTS]","SET DEFAULT COLLATE","SET OPTIONS","DROP NOT NULL","SET DATA TYPE","ALTER SCHEMA [IF EXISTS]","ALTER [MATERIALIZED] VIEW [IF EXISTS]","ALTER BI_CAPACITY","TRUNCATE TABLE","CREATE SCHEMA [IF NOT EXISTS]","DEFAULT COLLATE","CREATE [OR REPLACE] [TEMP|TEMPORARY|TABLE] FUNCTION [IF NOT EXISTS]","CREATE [OR REPLACE] PROCEDURE [IF NOT EXISTS]","CREATE [OR REPLACE] ROW ACCESS POLICY [IF NOT EXISTS]","GRANT TO","FILTER USING","CREATE CAPACITY","AS JSON","CREATE RESERVATION","CREATE ASSIGNMENT","CREATE SEARCH INDEX [IF NOT EXISTS]","DROP SCHEMA [IF EXISTS]","DROP [MATERIALIZED] VIEW [IF EXISTS]","DROP [TABLE] FUNCTION [IF EXISTS]","DROP PROCEDURE [IF EXISTS]","DROP ROW ACCESS POLICY","DROP ALL ROW ACCESS POLICIES","DROP CAPACITY [IF EXISTS]","DROP RESERVATION [IF EXISTS]","DROP ASSIGNMENT [IF EXISTS]","DROP SEARCH INDEX [IF EXISTS]","DROP [IF EXISTS]","GRANT","REVOKE","DECLARE","EXECUTE IMMEDIATE","LOOP","END LOOP","REPEAT","END REPEAT","WHILE","END WHILE","BREAK","LEAVE","CONTINUE","ITERATE","FOR","END FOR","BEGIN","BEGIN TRANSACTION","COMMIT TRANSACTION","ROLLBACK TRANSACTION","RAISE","RETURN","CALL","ASSERT","EXPORT DATA"]),NI=d(["UNION {ALL | DISTINCT}","EXCEPT DISTINCT","INTERSECT DISTINCT"]),lI=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN"]),_I=d(["TABLESAMPLE SYSTEM","ANY TYPE","ALL COLUMNS","NOT DETERMINISTIC","{ROWS | RANGE} BETWEEN","IS [NOT] DISTINCT FROM"]),CI={name:"bigquery",tokenizerOptions:{reservedSelect:aI,reservedClauses:[...II,...nn],reservedSetOperations:NI,reservedJoins:lI,reservedPhrases:_I,reservedKeywords:SI,reservedDataTypes:OI,reservedFunctionNames:iI,extraParens:["[]"],stringTypes:[{quote:'""".."""',prefixes:["R","B","RB","BR"]},{quote:"'''..'''",prefixes:["R","B","RB","BR"]},'""-bs',"''-bs",{quote:'""-raw',prefixes:["R","B","RB","BR"],requirePrefix:!0},{quote:"''-raw",prefixes:["R","B","RB","BR"],requirePrefix:!0}],identTypes:["``"],identChars:{dashes:!0},paramTypes:{positional:!0,named:["@"],quoted:["@"]},variableTypes:[{regex:String.raw`@@\w+`}],lineCommentTypes:["--","#"],operators:["&","|","^","~",">>","<<","||","=>"],postProcess:cI},formatOptions:{onelineClauses:nn}};function cI(e){return LI(uI(e))}function LI(e){let E=nt;return e.map(t=>t.text==="OFFSET"&&E.text==="["?(E=t,Ve(ye({},t),{type:"RESERVED_FUNCTION_NAME"})):(E=t,t))}function uI(e){var E;const t=[];for(let T=0;T<e.length;T++){const r=e[T];if((xE.ARRAY(r)||xE.STRUCT(r))&&((E=e[T+1])==null?void 0:E.text)==="<"){const s=pI(e,T+1),n=e.slice(T,s+1);t.push({type:"IDENTIFIER",raw:n.map(Rn("raw")).join(""),text:n.map(Rn("text")).join(""),start:r.start}),T=s}else t.push(r)}return t}var Rn=e=>E=>E.type==="IDENTIFIER"||E.type==="COMMA"?E[e]+" ":E[e];function pI(e,E){let t=0;for(let T=E;T<e.length;T++){const r=e[T];if(r.text==="<"?t++:r.text===">"?t--:r.text===">>"&&(t-=2),t===0)return T}return e.length-1}var fI=["ARRAY_AGG","AVG","CORRELATION","COUNT","COUNT_BIG","COVARIANCE","COVARIANCE_SAMP","CUME_DIST","GROUPING","LISTAGG","MAX","MEDIAN","MIN","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_ICPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV","STDDEV_SAMP","SUM","VARIANCE","VARIANCE_SAMP","XMLAGG","XMLGROUP","ABS","ABSVAL","ACOS","ADD_DAYS","ADD_HOURS","ADD_MINUTES","ADD_MONTHS","ADD_SECONDS","ADD_YEARS","AGE","ARRAY_DELETE","ARRAY_FIRST","ARRAY_LAST","ARRAY_NEXT","ARRAY_PRIOR","ASCII","ASCII_STR","ASIN","ATAN","ATAN2","ATANH","BITAND","BITANDNOT","BITOR","BITXOR","BITNOT","BPCHAR","BSON_TO_JSON","BTRIM","CARDINALITY","CEILING","CEIL","CHARACTER_LENGTH","CHR","COALESCE","COLLATION_KEY","COLLATION_KEY_BIT","COMPARE_DECFLOAT","CONCAT","COS","COSH","COT","CURSOR_ROWCOUNT","DATAPARTITIONNUM","DATE_PART","DATE_TRUNC","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFWEEK_ISO","DAYOFYEAR","DAYS","DAYS_BETWEEN","DAYS_TO_END_OF_MONTH","DBPARTITIONNUM","DECFLOAT","DECFLOAT_FORMAT","DECODE","DECRYPT_BIN","DECRYPT_CHAR","DEGREES","DEREF","DIFFERENCE","DIGITS","DOUBLE_PRECISION","EMPTY_BLOB","EMPTY_CLOB","EMPTY_DBCLOB","EMPTY_NCLOB","ENCRYPT","EVENT_MON_STATE","EXP","EXTRACT","FIRST_DAY","FLOOR","FROM_UTC_TIMESTAMP","GENERATE_UNIQUE","GETHINT","GREATEST","HASH","HASH4","HASH8","HASHEDVALUE","HEX","HEXTORAW","HOUR","HOURS_BETWEEN","IDENTITY_VAL_LOCAL","IFNULL","INITCAP","INSERT","INSTR","INSTR2","INSTR4","INSTRB","INTNAND","INTNOR","INTNXOR","INTNNOT","ISNULL","JSON_ARRAY","JSON_OBJECT","JSON_QUERY","JSON_TO_BSON","JSON_VALUE","JULIAN_DAY","LAST_DAY","LCASE","LEAST","LEFT","LENGTH","LENGTH2","LENGTH4","LENGTHB","LN","LOCATE","LOCATE_IN_STRING","LOG10","LONG_VARCHAR","LONG_VARGRAPHIC","LOWER","LPAD","LTRIM","MAX","MAX_CARDINALITY","MICROSECOND","MIDNIGHT_SECONDS","MIN","MINUTE","MINUTES_BETWEEN","MOD","MONTH","MONTHNAME","MONTHS_BETWEEN","MULTIPLY_ALT","NEXT_DAY","NEXT_MONTH","NEXT_QUARTER","NEXT_WEEK","NEXT_YEAR","NORMALIZE_DECFLOAT","NOW","NULLIF","NVL","NVL2","OCTET_LENGTH","OVERLAY","PARAMETER","POSITION","POSSTR","POW","POWER","QUANTIZE","QUARTER","QUOTE_IDENT","QUOTE_LITERAL","RADIANS","RAISE_ERROR","RAND","RANDOM","RAWTOHEX","REC2XML","REGEXP_COUNT","REGEXP_EXTRACT","REGEXP_INSTR","REGEXP_LIKE","REGEXP_MATCH_COUNT","REGEXP_REPLACE","REGEXP_SUBSTR","REPEAT","REPLACE","RID","RID_BIT","RIGHT","ROUND","ROUND_TIMESTAMP","RPAD","RTRIM","SECLABEL","SECLABEL_BY_NAME","SECLABEL_TO_CHAR","SECOND","SECONDS_BETWEEN","SIGN","SIN","SINH","SOUNDEX","SPACE","SQRT","STRIP","STRLEFT","STRPOS","STRRIGHT","SUBSTR","SUBSTR2","SUBSTR4","SUBSTRB","SUBSTRING","TABLE_NAME","TABLE_SCHEMA","TAN","TANH","THIS_MONTH","THIS_QUARTER","THIS_WEEK","THIS_YEAR","TIMESTAMP_FORMAT","TIMESTAMP_ISO","TIMESTAMPDIFF","TIMEZONE","TO_CHAR","TO_CLOB","TO_DATE","TO_HEX","TO_MULTI_BYTE","TO_NCHAR","TO_NCLOB","TO_NUMBER","TO_SINGLE_BYTE","TO_TIMESTAMP","TO_UTC_TIMESTAMP","TOTALORDER","TRANSLATE","TRIM","TRIM_ARRAY","TRUNC_TIMESTAMP","TRUNCATE","TRUNC","TYPE_ID","TYPE_NAME","TYPE_SCHEMA","UCASE","UNICODE_STR","UPPER","VALUE","VARCHAR_BIT_FORMAT","VARCHAR_FORMAT","VARCHAR_FORMAT_BIT","VERIFY_GROUP_FOR_USER","VERIFY_ROLE_FOR_USER","VERIFY_TRUSTED_CONTEXT_ROLE_FOR_USER","WEEK","WEEK_ISO","WEEKS_BETWEEN","WIDTH_BUCKET","XMLATTRIBUTES","XMLCOMMENT","XMLCONCAT","XMLDOCUMENT","XMLELEMENT","XMLFOREST","XMLNAMESPACES","XMLPARSE","XMLPI","XMLQUERY","XMLROW","XMLSERIALIZE","XMLTEXT","XMLVALIDATE","XMLXSROBJECTID","XSLTRANSFORM","YEAR","YEARS_BETWEEN","YMD_BETWEEN","BASE_TABLE","JSON_TABLE","UNNEST","XMLTABLE","RANK","DENSE_RANK","NTILE","LAG","LEAD","ROW_NUMBER","FIRST_VALUE","LAST_VALUE","NTH_VALUE","RATIO_TO_REPORT","CAST"],PI=["ACTIVATE","ADD","AFTER","ALIAS","ALL","ALLOCATE","ALLOW","ALTER","AND","ANY","AS","ASENSITIVE","ASSOCIATE","ASUTIME","AT","ATTRIBUTES","AUDIT","AUTHORIZATION","AUX","AUXILIARY","BEFORE","BEGIN","BETWEEN","BINARY","BUFFERPOOL","BY","CACHE","CALL","CALLED","CAPTURE","CARDINALITY","CASCADED","CASE","CAST","CHECK","CLONE","CLOSE","CLUSTER","COLLECTION","COLLID","COLUMN","COMMENT","COMMIT","CONCAT","CONDITION","CONNECT","CONNECTION","CONSTRAINT","CONTAINS","CONTINUE","COUNT","COUNT_BIG","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_LC_CTYPE","CURRENT_PATH","CURRENT_SCHEMA","CURRENT_SERVER","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_USER","CURSOR","CYCLE","DATA","DATABASE","DATAPARTITIONNAME","DATAPARTITIONNUM","DAY","DAYS","DB2GENERAL","DB2GENRL","DB2SQL","DBINFO","DBPARTITIONNAME","DBPARTITIONNUM","DEALLOCATE","DECLARE","DEFAULT","DEFAULTS","DEFINITION","DELETE","DENSERANK","DENSE_RANK","DESCRIBE","DESCRIPTOR","DETERMINISTIC","DIAGNOSTICS","DISABLE","DISALLOW","DISCONNECT","DISTINCT","DO","DOCUMENT","DROP","DSSIZE","DYNAMIC","EACH","EDITPROC","ELSE","ELSEIF","ENABLE","ENCODING","ENCRYPTION","END","END-EXEC","ENDING","ERASE","ESCAPE","EVERY","EXCEPT","EXCEPTION","EXCLUDING","EXCLUSIVE","EXECUTE","EXISTS","EXIT","EXPLAIN","EXTENDED","EXTERNAL","EXTRACT","FENCED","FETCH","FIELDPROC","FILE","FINAL","FIRST1","FOR","FOREIGN","FREE","FROM","FULL","FUNCTION","GENERAL","GENERATED","GET","GLOBAL","GO","GOTO","GRANT","GRAPHIC","GROUP","HANDLER","HASH","HASHED_VALUE","HAVING","HINT","HOLD","HOUR","HOURS","IDENTITY","IF","IMMEDIATE","IMPORT","IN","INCLUDING","INCLUSIVE","INCREMENT","INDEX","INDICATOR","INDICATORS","INF","INFINITY","INHERIT","INNER","INOUT","INSENSITIVE","INSERT","INTEGRITY","INTERSECT","INTO","IS","ISNULL","ISOBID","ISOLATION","ITERATE","JAR","JAVA","JOIN","KEEP","KEY","LABEL","LANGUAGE","LAST3","LATERAL","LC_CTYPE","LEAVE","LEFT","LIKE","LIMIT","LINKTYPE","LOCAL","LOCALDATE","LOCALE","LOCALTIME","LOCALTIMESTAMP","LOCATOR","LOCATORS","LOCK","LOCKMAX","LOCKSIZE","LOOP","MAINTAINED","MATERIALIZED","MAXVALUE","MICROSECOND","MICROSECONDS","MINUTE","MINUTES","MINVALUE","MODE","MODIFIES","MONTH","MONTHS","NAN","NEW","NEW_TABLE","NEXTVAL","NO","NOCACHE","NOCYCLE","NODENAME","NODENUMBER","NOMAXVALUE","NOMINVALUE","NONE","NOORDER","NORMALIZED","NOT2","NOTNULL","NULL","NULLS","NUMPARTS","OBID","OF","OFF","OFFSET","OLD","OLD_TABLE","ON","OPEN","OPTIMIZATION","OPTIMIZE","OPTION","OR","ORDER","OUT","OUTER","OVER","OVERRIDING","PACKAGE","PADDED","PAGESIZE","PARAMETER","PART","PARTITION","PARTITIONED","PARTITIONING","PARTITIONS","PASSWORD","PATH","PERCENT","PIECESIZE","PLAN","POSITION","PRECISION","PREPARE","PREVVAL","PRIMARY","PRIQTY","PRIVILEGES","PROCEDURE","PROGRAM","PSID","PUBLIC","QUERY","QUERYNO","RANGE","RANK","READ","READS","RECOVERY","REFERENCES","REFERENCING","REFRESH","RELEASE","RENAME","REPEAT","RESET","RESIGNAL","RESTART","RESTRICT","RESULT","RESULT_SET_LOCATOR","RETURN","RETURNS","REVOKE","RIGHT","ROLE","ROLLBACK","ROUND_CEILING","ROUND_DOWN","ROUND_FLOOR","ROUND_HALF_DOWN","ROUND_HALF_EVEN","ROUND_HALF_UP","ROUND_UP","ROUTINE","ROW","ROWNUMBER","ROWS","ROWSET","ROW_NUMBER","RRN","RUN","SAVEPOINT","SCHEMA","SCRATCHPAD","SCROLL","SEARCH","SECOND","SECONDS","SECQTY","SECURITY","SELECT","SENSITIVE","SEQUENCE","SESSION","SESSION_USER","SET","SIGNAL","SIMPLE","SNAN","SOME","SOURCE","SPECIFIC","SQL","SQLID","STACKED","STANDARD","START","STARTING","STATEMENT","STATIC","STATMENT","STAY","STOGROUP","STORES","STYLE","SUBSTRING","SUMMARY","SYNONYM","SYSFUN","SYSIBM","SYSPROC","SYSTEM","SYSTEM_USER","TABLE","TABLESPACE","THEN","TO","TRANSACTION","TRIGGER","TRIM","TRUNCATE","TYPE","UNDO","UNION","UNIQUE","UNTIL","UPDATE","USAGE","USER","USING","VALIDPROC","VALUE","VALUES","VARIABLE","VARIANT","VCAT","VERSION","VIEW","VOLATILE","VOLUMES","WHEN","WHENEVER","WHERE","WHILE","WITH","WITHOUT","WLM","WRITE","XMLELEMENT","XMLEXISTS","XMLNAMESPACES","YEAR","YEARS"],DI=["ARRAY","BIGINT","BINARY","BLOB","BOOLEAN","CCSID","CHAR","CHARACTER","CLOB","DATE","DATETIME","DBCLOB","DEC","DECIMAL","DOUBLE","DOUBLE PRECISION","FLOAT","FLOAT4","FLOAT8","GRAPHIC","INT","INT2","INT4","INT8","INTEGER","INTERVAL","LONG VARCHAR","LONG VARGRAPHIC","NCHAR","NCHR","NCLOB","NVARCHAR","NUMERIC","SMALLINT","REAL","TIME","TIMESTAMP","VARBINARY","VARCHAR","VARGRAPHIC"],dI=d(["SELECT [ALL | DISTINCT]"]),MI=d(["WITH","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY [INPUT SEQUENCE]","LIMIT","OFFSET","FETCH NEXT","FOR UPDATE [OF]","FOR {READ | FETCH} ONLY","FOR {RR | CS | UR | RS} [USE AND KEEP {SHARE | UPDATE | EXCLUSIVE} LOCKS]","WAIT FOR OUTCOME","SKIP LOCKED DATA","INTO","INSERT INTO","VALUES","SET","MERGE INTO","WHEN [NOT] MATCHED [THEN]","UPDATE SET","INSERT"]),on=d(["CREATE [GLOBAL TEMPORARY | EXTERNAL] TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] VIEW","UPDATE","WHERE CURRENT OF","WITH {RR | RS | CS | UR}","DELETE FROM","DROP TABLE [IF EXISTS]","ALTER TABLE","ADD [COLUMN]","DROP [COLUMN]","RENAME COLUMN","ALTER [COLUMN]","SET DATA TYPE","SET NOT NULL","DROP {DEFAULT | GENERATED | NOT NULL}","TRUNCATE [TABLE]","ALLOCATE","ALTER AUDIT POLICY","ALTER BUFFERPOOL","ALTER DATABASE PARTITION GROUP","ALTER DATABASE","ALTER EVENT MONITOR","ALTER FUNCTION","ALTER HISTOGRAM TEMPLATE","ALTER INDEX","ALTER MASK","ALTER METHOD","ALTER MODULE","ALTER NICKNAME","ALTER PACKAGE","ALTER PERMISSION","ALTER PROCEDURE","ALTER SCHEMA","ALTER SECURITY LABEL COMPONENT","ALTER SECURITY POLICY","ALTER SEQUENCE","ALTER SERVER","ALTER SERVICE CLASS","ALTER STOGROUP","ALTER TABLESPACE","ALTER THRESHOLD","ALTER TRIGGER","ALTER TRUSTED CONTEXT","ALTER TYPE","ALTER USAGE LIST","ALTER USER MAPPING","ALTER VIEW","ALTER WORK ACTION SET","ALTER WORK CLASS SET","ALTER WORKLOAD","ALTER WRAPPER","ALTER XSROBJECT","ALTER STOGROUP","ALTER TABLESPACE","ALTER TRIGGER","ALTER TRUSTED CONTEXT","ALTER VIEW","ASSOCIATE [RESULT SET] {LOCATOR | LOCATORS}","AUDIT","BEGIN DECLARE SECTION","CALL","CLOSE","COMMENT ON","COMMIT [WORK]","CONNECT","CREATE [OR REPLACE] [PUBLIC] ALIAS","CREATE AUDIT POLICY","CREATE BUFFERPOOL","CREATE DATABASE PARTITION GROUP","CREATE EVENT MONITOR","CREATE [OR REPLACE] FUNCTION","CREATE FUNCTION MAPPING","CREATE HISTOGRAM TEMPLATE","CREATE [UNIQUE] INDEX","CREATE INDEX EXTENSION","CREATE [OR REPLACE] MASK","CREATE [SPECIFIC] METHOD","CREATE [OR REPLACE] MODULE","CREATE [OR REPLACE] NICKNAME","CREATE [OR REPLACE] PERMISSION","CREATE [OR REPLACE] PROCEDURE","CREATE ROLE","CREATE SCHEMA","CREATE SECURITY LABEL [COMPONENT]","CREATE SECURITY POLICY","CREATE [OR REPLACE] SEQUENCE","CREATE SERVICE CLASS","CREATE SERVER","CREATE STOGROUP","CREATE SYNONYM","CREATE [LARGE | REGULAR | {SYSTEM | USER} TEMPORARY] TABLESPACE","CREATE THRESHOLD","CREATE {TRANSFORM | TRANSFORMS} FOR","CREATE [OR REPLACE] TRIGGER","CREATE TRUSTED CONTEXT","CREATE [OR REPLACE] TYPE","CREATE TYPE MAPPING","CREATE USAGE LIST","CREATE USER MAPPING FOR","CREATE [OR REPLACE] VARIABLE","CREATE WORK ACTION SET","CREATE WORK CLASS SET","CREATE WORKLOAD","CREATE WRAPPER","DECLARE","DECLARE GLOBAL TEMPORARY TABLE","DESCRIBE [INPUT | OUTPUT]","DISCONNECT","DROP [PUBLIC] ALIAS","DROP AUDIT POLICY","DROP BUFFERPOOL","DROP DATABASE PARTITION GROUP","DROP EVENT MONITOR","DROP [SPECIFIC] FUNCTION","DROP FUNCTION MAPPING","DROP HISTOGRAM TEMPLATE","DROP INDEX [EXTENSION]","DROP MASK","DROP [SPECIFIC] METHOD","DROP MODULE","DROP NICKNAME","DROP PACKAGE","DROP PERMISSION","DROP [SPECIFIC] PROCEDURE","DROP ROLE","DROP SCHEMA","DROP SECURITY LABEL [COMPONENT]","DROP SECURITY POLICY","DROP SEQUENCE","DROP SERVER","DROP SERVICE CLASS","DROP STOGROUP","DROP TABLE HIERARCHY","DROP {TABLESPACE | TABLESPACES}","DROP {TRANSFORM | TRANSFORMS}","DROP THRESHOLD","DROP TRIGGER","DROP TRUSTED CONTEXT","DROP TYPE [MAPPING]","DROP USAGE LIST","DROP USER MAPPING FOR","DROP VARIABLE","DROP VIEW [HIERARCHY]","DROP WORK {ACTION | CLASS} SET","DROP WORKLOAD","DROP WRAPPER","DROP XSROBJECT","END DECLARE SECTION","EXECUTE [IMMEDIATE]","EXPLAIN {PLAN [SECTION] | ALL}","FETCH [FROM]","FLUSH {BUFFERPOOL | BUFFERPOOLS} ALL","FLUSH EVENT MONITOR","FLUSH FEDERATED CACHE","FLUSH OPTIMIZATION PROFILE CACHE","FLUSH PACKAGE CACHE [DYNAMIC]","FLUSH AUTHENTICATION CACHE [FOR ALL]","FREE LOCATOR","GET DIAGNOSTICS","GOTO","GRANT","INCLUDE","ITERATE","LEAVE","LOCK TABLE","LOOP","OPEN","PIPE","PREPARE","REFRESH TABLE","RELEASE","RELEASE [TO] SAVEPOINT","RENAME [TABLE | INDEX | STOGROUP | TABLESPACE]","REPEAT","RESIGNAL","RETURN","REVOKE","ROLLBACK [WORK] [TO SAVEPOINT]","SAVEPOINT","SET COMPILATION ENVIRONMENT","SET CONNECTION","SET CURRENT","SET ENCRYPTION PASSWORD","SET EVENT MONITOR STATE","SET INTEGRITY","SET PASSTHRU","SET PATH","SET ROLE","SET SCHEMA","SET SERVER OPTION","SET {SESSION AUTHORIZATION | SESSION_USER}","SET USAGE LIST","SIGNAL","TRANSFER OWNERSHIP OF","WHENEVER {NOT FOUND | SQLERROR | SQLWARNING}","WHILE"]),UI=d(["UNION [ALL]","EXCEPT [ALL]","INTERSECT [ALL]"]),hI=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN"]),GI=d(["ON DELETE","ON UPDATE","SET NULL","{ROWS | RANGE} BETWEEN"]),gI={name:"db2",tokenizerOptions:{reservedSelect:dI,reservedClauses:[...MI,...on],reservedSetOperations:UI,reservedJoins:hI,reservedPhrases:GI,reservedKeywords:PI,reservedDataTypes:DI,reservedFunctionNames:fI,extraParens:["[]"],stringTypes:[{quote:"''-qq",prefixes:["G","N","U&"]},{quote:"''-raw",prefixes:["X","BX","GX","UX"],requirePrefix:!0}],identTypes:['""-qq'],identChars:{first:"@#$",rest:"@#$"},paramTypes:{positional:!0,named:[":"]},paramChars:{first:"@#$",rest:"@#$"},operators:["**","%","|","&","^","~","¬=","¬>","¬<","!>","!<","^=","^>","^<","||","->","=>"]},formatOptions:{onelineClauses:on}},mI=["ARRAY_AGG","AVG","CORR","CORRELATION","COUNT","COUNT_BIG","COVAR_POP","COVARIANCE","COVAR","COVAR_SAMP","COVARIANCE_SAMP","EVERY","GROUPING","JSON_ARRAYAGG","JSON_OBJECTAGG","LISTAGG","MAX","MEDIAN","MIN","PERCENTILE_CONT","PERCENTILE_DISC","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","SOME","STDDEV_POP","STDDEV","STDDEV_SAMP","SUM","VAR_POP","VARIANCE","VAR","VAR_SAMP","VARIANCE_SAMP","XMLAGG","XMLGROUP","ABS","ABSVAL","ACOS","ADD_DAYS","ADD_HOURS","ADD_MINUTES","ADD_MONTHS","ADD_SECONDS","ADD_YEARS","ANTILOG","ARRAY_MAX_CARDINALITY","ARRAY_TRIM","ASCII","ASIN","ATAN","ATAN2","ATANH","BASE64_DECODE","BASE64_ENCODE","BIT_LENGTH","BITAND","BITANDNOT","BITNOT","BITOR","BITXOR","BSON_TO_JSON","CARDINALITY","CEIL","CEILING","CHAR_LENGTH","CHARACTER_LENGTH","CHR","COALESCE","COMPARE_DECFLOAT","CONCAT","CONTAINS","COS","COSH","COT","CURDATE","CURTIME","DATABASE","DATAPARTITIONNAME","DATAPARTITIONNUM","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK_ISO","DAYOFWEEK","DAYOFYEAR","DAYS","DBPARTITIONNAME","DBPARTITIONNUM","DECFLOAT_FORMAT","DECFLOAT_SORTKEY","DECRYPT_BINARY","DECRYPT_BIT","DECRYPT_CHAR","DECRYPT_DB","DEGREES","DIFFERENCE","DIGITS","DLCOMMENT","DLLINKTYPE","DLURLCOMPLETE","DLURLPATH","DLURLPATHONLY","DLURLSCHEME","DLURLSERVER","DLVALUE","DOUBLE_PRECISION","DOUBLE","ENCRPYT","ENCRYPT_AES","ENCRYPT_AES256","ENCRYPT_RC2","ENCRYPT_TDES","EXP","EXTRACT","FIRST_DAY","FLOOR","GENERATE_UNIQUE","GET_BLOB_FROM_FILE","GET_CLOB_FROM_FILE","GET_DBCLOB_FROM_FILE","GET_XML_FILE","GETHINT","GREATEST","HASH_MD5","HASH_ROW","HASH_SHA1","HASH_SHA256","HASH_SHA512","HASH_VALUES","HASHED_VALUE","HEX","HEXTORAW","HOUR","HTML_ENTITY_DECODE","HTML_ENTITY_ENCODE","HTTP_DELETE_BLOB","HTTP_DELETE","HTTP_GET_BLOB","HTTP_GET","HTTP_PATCH_BLOB","HTTP_PATCH","HTTP_POST_BLOB","HTTP_POST","HTTP_PUT_BLOB","HTTP_PUT","IDENTITY_VAL_LOCAL","IFNULL","INSERT","INSTR","INTERPRET","ISFALSE","ISNOTFALSE","ISNOTTRUE","ISTRUE","JSON_ARRAY","JSON_OBJECT","JSON_QUERY","JSON_TO_BSON","JSON_UPDATE","JSON_VALUE","JULIAN_DAY","LAND","LAST_DAY","LCASE","LEAST","LEFT","LENGTH","LN","LNOT","LOCATE_IN_STRING","LOCATE","LOG10","LOR","LOWER","LPAD","LTRIM","MAX_CARDINALITY","MAX","MICROSECOND","MIDNIGHT_SECONDS","MIN","MINUTE","MOD","MONTH","MONTHNAME","MONTHS_BETWEEN","MQREAD","MQREADCLOB","MQRECEIVE","MQRECEIVECLOB","MQSEND","MULTIPLY_ALT","NEXT_DAY","NORMALIZE_DECFLOAT","NOW","NULLIF","NVL","OCTET_LENGTH","OVERLAY","PI","POSITION","POSSTR","POW","POWER","QUANTIZE","QUARTER","RADIANS","RAISE_ERROR","RANDOM","RAND","REGEXP_COUNT","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","REPEAT","REPLACE","RID","RIGHT","ROUND_TIMESTAMP","ROUND","RPAD","RRN","RTRIM","SCORE","SECOND","SIGN","SIN","SINH","SOUNDEX","SPACE","SQRT","STRIP","STRLEFT","STRPOS","STRRIGHT","SUBSTR","SUBSTRING","TABLE_NAME","TABLE_SCHEMA","TAN","TANH","TIMESTAMP_FORMAT","TIMESTAMP_ISO","TIMESTAMPDIFF_BIG","TIMESTAMPDIFF","TO_CHAR","TO_CLOB","TO_DATE","TO_NUMBER","TO_TIMESTAMP","TOTALORDER","TRANSLATE","TRIM_ARRAY","TRIM","TRUNC_TIMESTAMP","TRUNC","TRUNCATE","UCASE","UPPER","URL_DECODE","URL_ENCODE","VALUE","VARBINARY_FORMAT","VARCHAR_BIT_FORMAT","VARCHAR_FORMAT_BINARY","VARCHAR_FORMAT","VERIFY_GROUP_FOR_USER","WEEK_ISO","WEEK","WRAP","XMLATTRIBUTES","XMLCOMMENT","XMLCONCAT","XMLDOCUMENT","XMLELEMENT","XMLFOREST","XMLNAMESPACES","XMLPARSE","XMLPI","XMLROW","XMLSERIALIZE","XMLTEXT","XMLVALIDATE","XOR","XSLTRANSFORM","YEAR","ZONED","BASE_TABLE","HTTP_DELETE_BLOB_VERBOSE","HTTP_DELETE_VERBOSE","HTTP_GET_BLOB_VERBOSE","HTTP_GET_VERBOSE","HTTP_PATCH_BLOB_VERBOSE","HTTP_PATCH_VERBOSE","HTTP_POST_BLOB_VERBOSE","HTTP_POST_VERBOSE","HTTP_PUT_BLOB_VERBOSE","HTTP_PUT_VERBOSE","JSON_TABLE","MQREADALL","MQREADALLCLOB","MQRECEIVEALL","MQRECEIVEALLCLOB","XMLTABLE","UNPACK","CUME_DIST","DENSE_RANK","FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","RANK","RATIO_TO_REPORT","ROW_NUMBER","CAST"],HI=["ABSENT","ACCORDING","ACCTNG","ACTION","ACTIVATE","ADD","ALIAS","ALL","ALLOCATE","ALLOW","ALTER","AND","ANY","APPEND","APPLNAME","ARRAY","ARRAY_AGG","ARRAY_TRIM","AS","ASC","ASENSITIVE","ASSOCIATE","ATOMIC","ATTACH","ATTRIBUTES","AUTHORIZATION","AUTONOMOUS","BEFORE","BEGIN","BETWEEN","BIND","BSON","BUFFERPOOL","BY","CACHE","CALL","CALLED","CARDINALITY","CASE","CAST","CHECK","CL","CLOSE","CLUSTER","COLLECT","COLLECTION","COLUMN","COMMENT","COMMIT","COMPACT","COMPARISONS","COMPRESS","CONCAT","CONCURRENT","CONDITION","CONNECT","CONNECT_BY_ROOT","CONNECTION","CONSTANT","CONSTRAINT","CONTAINS","CONTENT","CONTINUE","COPY","COUNT","COUNT_BIG","CREATE","CREATEIN","CROSS","CUBE","CUME_DIST","CURRENT","CURRENT_DATE","CURRENT_PATH","CURRENT_SCHEMA","CURRENT_SERVER","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_USER","CURSOR","CYCLE","DATABASE","DATAPARTITIONNAME","DATAPARTITIONNUM","DAY","DAYS","DB2GENERAL","DB2GENRL","DB2SQL","DBINFO","DBPARTITIONNAME","DBPARTITIONNUM","DEACTIVATE","DEALLOCATE","DECLARE","DEFAULT","DEFAULTS","DEFER","DEFINE","DEFINITION","DELETE","DELETING","DENSE_RANK","DENSERANK","DESC","DESCRIBE","DESCRIPTOR","DETACH","DETERMINISTIC","DIAGNOSTICS","DISABLE","DISALLOW","DISCONNECT","DISTINCT","DO","DOCUMENT","DROP","DYNAMIC","EACH","ELSE","ELSEIF","EMPTY","ENABLE","ENCODING","ENCRYPTION","END","END-EXEC","ENDING","ENFORCED","ERROR","ESCAPE","EVERY","EXCEPT","EXCEPTION","EXCLUDING","EXCLUSIVE","EXECUTE","EXISTS","EXIT","EXTEND","EXTERNAL","EXTRACT","FALSE","FENCED","FETCH","FIELDPROC","FILE","FINAL","FIRST_VALUE","FOR","FOREIGN","FORMAT","FREE","FREEPAGE","FROM","FULL","FUNCTION","GBPCACHE","GENERAL","GENERATED","GET","GLOBAL","GO","GOTO","GRANT","GROUP","HANDLER","HASH","HASH_ROW","HASHED_VALUE","HAVING","HINT","HOLD","HOUR","HOURS","IDENTITY","IF","IGNORE","IMMEDIATE","IMPLICITLY","IN","INCLUDE","INCLUDING","INCLUSIVE","INCREMENT","INDEX","INDEXBP","INDICATOR","INF","INFINITY","INHERIT","INLINE","INNER","INOUT","INSENSITIVE","INSERT","INSERTING","INTEGRITY","INTERPRET","INTERSECT","INTO","IS","ISNULL","ISOLATION","ITERATE","JAVA","JOIN","JSON","JSON_ARRAY","JSON_ARRAYAGG","JSON_EXISTS","JSON_OBJECT","JSON_OBJECTAGG","JSON_QUERY","JSON_TABLE","JSON_VALUE","KEEP","KEY","KEYS","LABEL","LAG","LANGUAGE","LAST_VALUE","LATERAL","LEAD","LEAVE","LEFT","LEVEL2","LIKE","LIMIT","LINKTYPE","LISTAGG","LOCAL","LOCALDATE","LOCALTIME","LOCALTIMESTAMP","LOCATION","LOCATOR","LOCK","LOCKSIZE","LOG","LOGGED","LOOP","MAINTAINED","MASK","MATCHED","MATERIALIZED","MAXVALUE","MERGE","MICROSECOND","MICROSECONDS","MINPCTUSED","MINUTE","MINUTES","MINVALUE","MIRROR","MIXED","MODE","MODIFIES","MONTH","MONTHS","NAMESPACE","NAN","NATIONAL","NCHAR","NCLOB","NESTED","NEW","NEW_TABLE","NEXTVAL","NO","NOCACHE","NOCYCLE","NODENAME","NODENUMBER","NOMAXVALUE","NOMINVALUE","NONE","NOORDER","NORMALIZED","NOT","NOTNULL","NTH_VALUE","NTILE","NULL","NULLS","NVARCHAR","OBID","OBJECT","OF","OFF","OFFSET","OLD","OLD_TABLE","OMIT","ON","ONLY","OPEN","OPTIMIZE","OPTION","OR","ORDER","ORDINALITY","ORGANIZE","OUT","OUTER","OVER","OVERLAY","OVERRIDING","PACKAGE","PADDED","PAGE","PAGESIZE","PARAMETER","PART","PARTITION","PARTITIONED","PARTITIONING","PARTITIONS","PASSING","PASSWORD","PATH","PCTFREE","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","PERIOD","PERMISSION","PIECESIZE","PIPE","PLAN","POSITION","PREPARE","PREVVAL","PRIMARY","PRIOR","PRIQTY","PRIVILEGES","PROCEDURE","PROGRAM","PROGRAMID","QUERY","RANGE","RANK","RATIO_TO_REPORT","RCDFMT","READ","READS","RECOVERY","REFERENCES","REFERENCING","REFRESH","REGEXP_LIKE","RELEASE","RENAME","REPEAT","RESET","RESIGNAL","RESTART","RESULT","RESULT_SET_LOCATOR","RETURN","RETURNING","RETURNS","REVOKE","RID","RIGHT","ROLLBACK","ROLLUP","ROUTINE","ROW","ROW_NUMBER","ROWNUMBER","ROWS","RRN","RUN","SAVEPOINT","SBCS","SCALAR","SCHEMA","SCRATCHPAD","SCROLL","SEARCH","SECOND","SECONDS","SECQTY","SECURED","SELECT","SENSITIVE","SEQUENCE","SESSION","SESSION_USER","SET","SIGNAL","SIMPLE","SKIP","SNAN","SOME","SOURCE","SPECIFIC","SQL","SQLID","SQLIND_DEFAULT","SQLIND_UNASSIGNED","STACKED","START","STARTING","STATEMENT","STATIC","STOGROUP","SUBSTRING","SUMMARY","SYNONYM","SYSTEM_TIME","SYSTEM_USER","TABLE","TABLESPACE","TABLESPACES","TAG","THEN","THREADSAFE","TO","TRANSACTION","TRANSFER","TRIGGER","TRIM","TRIM_ARRAY","TRUE","TRUNCATE","TRY_CAST","TYPE","UNDO","UNION","UNIQUE","UNIT","UNKNOWN","UNNEST","UNTIL","UPDATE","UPDATING","URI","USAGE","USE","USER","USERID","USING","VALUE","VALUES","VARIABLE","VARIANT","VCAT","VERSION","VERSIONING","VIEW","VOLATILE","WAIT","WHEN","WHENEVER","WHERE","WHILE","WITH","WITHIN","WITHOUT","WRAPPED","WRAPPER","WRITE","WRKSTNNAME","XMLAGG","XMLATTRIBUTES","XMLCAST","XMLCOMMENT","XMLCONCAT","XMLDOCUMENT","XMLELEMENT","XMLFOREST","XMLGROUP","XMLNAMESPACES","XMLPARSE","XMLPI","XMLROW","XMLSERIALIZE","XMLTABLE","XMLTEXT","XMLVALIDATE","XSLTRANSFORM","XSROBJECT","YEAR","YEARS","YES","ZONE"],yI=["ARRAY","BIGINT","BINARY","BIT","BLOB","BOOLEAN","CCSID","CHAR","CHARACTER","CLOB","DATA","DATALINK","DATE","DBCLOB","DECFLOAT","DECIMAL","DEC","DOUBLE","DOUBLE PRECISION","FLOAT","GRAPHIC","INT","INTEGER","LONG","NUMERIC","REAL","ROWID","SMALLINT","TIME","TIMESTAMP","VARBINARY","VARCHAR","VARGRAPHIC","XML"],bI=d(["SELECT [ALL | DISTINCT]"]),BI=d(["WITH [RECURSIVE]","INTO","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER [SIBLINGS] BY [INPUT SEQUENCE]","LIMIT","OFFSET","FETCH {FIRST | NEXT}","FOR UPDATE [OF]","FOR READ ONLY","OPTIMIZE FOR","INSERT INTO","VALUES","SET","MERGE INTO","WHEN [NOT] MATCHED [THEN]","UPDATE SET","DELETE","INSERT","FOR SYSTEM NAME"]),An=d(["CREATE [OR REPLACE] TABLE","CREATE [OR REPLACE] [RECURSIVE] VIEW","UPDATE","WHERE CURRENT OF","WITH {NC | RR | RS | CS | UR}","DELETE FROM","DROP TABLE","ALTER TABLE","ADD [COLUMN]","ALTER [COLUMN]","DROP [COLUMN]","SET DATA TYPE","SET {GENERATED ALWAYS | GENERATED BY DEFAULT}","SET NOT NULL","SET {NOT HIDDEN | IMPLICITLY HIDDEN}","SET FIELDPROC","DROP {DEFAULT | NOT NULL | GENERATED | IDENTITY | ROW CHANGE TIMESTAMP | FIELDPROC}","TRUNCATE [TABLE]","SET [CURRENT] SCHEMA","SET CURRENT_SCHEMA","ALLOCATE CURSOR","ALLOCATE [SQL] DESCRIPTOR [LOCAL | GLOBAL] SQL","ALTER [SPECIFIC] {FUNCTION | PROCEDURE}","ALTER {MASK | PERMISSION | SEQUENCE | TRIGGER}","ASSOCIATE [RESULT SET] {LOCATOR | LOCATORS}","BEGIN DECLARE SECTION","CALL","CLOSE","COMMENT ON {ALIAS | COLUMN | CONSTRAINT | INDEX | MASK | PACKAGE | PARAMETER | PERMISSION | SEQUENCE | TABLE | TRIGGER | VARIABLE | XSROBJECT}","COMMENT ON [SPECIFIC] {FUNCTION | PROCEDURE | ROUTINE}","COMMENT ON PARAMETER SPECIFIC {FUNCTION | PROCEDURE | ROUTINE}","COMMENT ON [TABLE FUNCTION] RETURN COLUMN","COMMENT ON [TABLE FUNCTION] RETURN COLUMN SPECIFIC [PROCEDURE | ROUTINE]","COMMIT [WORK] [HOLD]","CONNECT [TO | RESET] USER","CREATE [OR REPLACE] {ALIAS | FUNCTION | MASK | PERMISSION | PROCEDURE | SEQUENCE | TRIGGER | VARIABLE}","CREATE [ENCODED VECTOR] INDEX","CREATE UNIQUE [WHERE NOT NULL] INDEX","CREATE SCHEMA","CREATE TYPE","DEALLOCATE [SQL] DESCRIPTOR [LOCAL | GLOBAL]","DECLARE CURSOR","DECLARE GLOBAL TEMPORARY TABLE","DECLARE","DESCRIBE CURSOR","DESCRIBE INPUT","DESCRIBE [OUTPUT]","DESCRIBE {PROCEDURE | ROUTINE}","DESCRIBE TABLE","DISCONNECT ALL [SQL]","DISCONNECT [CURRENT]","DROP {ALIAS | INDEX | MASK | PACKAGE | PERMISSION | SCHEMA | SEQUENCE | TABLE | TYPE | VARIABLE | XSROBJECT} [IF EXISTS]","DROP [SPECIFIC] {FUNCTION | PROCEDURE | ROUTINE} [IF EXISTS]","END DECLARE SECTION","EXECUTE [IMMEDIATE]","FREE LOCATOR","GET [SQL] DESCRIPTOR [LOCAL | GLOBAL]","GET [CURRENT | STACKED] DIAGNOSTICS","GRANT {ALL [PRIVILEGES] | ALTER | EXECUTE} ON {FUNCTION | PROCEDURE | ROUTINE | PACKAGE | SCHEMA | SEQUENCE | TABLE | TYPE | VARIABLE | XSROBJECT}","HOLD LOCATOR","INCLUDE","LABEL ON {ALIAS | COLUMN | CONSTRAINT | INDEX | MASK | PACKAGE | PERMISSION | SEQUENCE | TABLE | TRIGGER | VARIABLE | XSROBJECT}","LABEL ON [SPECIFIC] {FUNCTION | PROCEDURE | ROUTINE}","LOCK TABLE","OPEN","PREPARE","REFRESH TABLE","RELEASE","RELEASE [TO] SAVEPOINT","RENAME [TABLE | INDEX] TO","REVOKE {ALL [PRIVILEGES] | ALTER | EXECUTE} ON {FUNCTION | PROCEDURE | ROUTINE | PACKAGE | SCHEMA | SEQUENCE | TABLE | TYPE | VARIABLE | XSROBJECT}","ROLLBACK [WORK] [HOLD | TO SAVEPOINT]","SAVEPOINT","SET CONNECTION","SET CURRENT {DEBUG MODE | DECFLOAT ROUNDING MODE | DEGREE | IMPLICIT XMLPARSE OPTION | TEMPORAL SYSTEM_TIME}","SET [SQL] DESCRIPTOR [LOCAL | GLOBAL]","SET ENCRYPTION PASSWORD","SET OPTION","SET {[CURRENT [FUNCTION]] PATH | CURRENT_PATH}","SET RESULT SETS [WITH RETURN [TO CALLER | TO CLIENT]]","SET SESSION AUTHORIZATION","SET SESSION_USER","SET TRANSACTION","SIGNAL SQLSTATE [VALUE]","TAG","TRANSFER OWNERSHIP OF","WHENEVER {NOT FOUND | SQLERROR | SQLWARNING}"]),FI=d(["UNION [ALL]","EXCEPT [ALL]","INTERSECT [ALL]"]),vI=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","[LEFT | RIGHT] EXCEPTION JOIN","{INNER | CROSS} JOIN"]),YI=d(["ON DELETE","ON UPDATE","SET NULL","{ROWS | RANGE} BETWEEN"]),VI={name:"db2i",tokenizerOptions:{reservedSelect:bI,reservedClauses:[...BI,...An],reservedSetOperations:FI,reservedJoins:vI,reservedPhrases:YI,reservedKeywords:HI,reservedDataTypes:yI,reservedFunctionNames:mI,nestedBlockComments:!0,extraParens:["[]"],stringTypes:[{quote:"''-qq",prefixes:["G","N"]},{quote:"''-raw",prefixes:["X","BX","GX","UX"],requirePrefix:!0}],identTypes:['""-qq'],identChars:{first:"@#$",rest:"@#$"},paramTypes:{positional:!0,named:[":"]},paramChars:{first:"@#$",rest:"@#$"},operators:["**","¬=","¬>","¬<","!>","!<","||","=>"]},formatOptions:{onelineClauses:An}},xI=["ABS","ACOS","ASIN","ATAN","BIN","BROUND","CBRT","CEIL","CEILING","CONV","COS","DEGREES","EXP","FACTORIAL","FLOOR","GREATEST","HEX","LEAST","LN","LOG","LOG10","LOG2","NEGATIVE","PI","PMOD","POSITIVE","POW","POWER","RADIANS","RAND","ROUND","SHIFTLEFT","SHIFTRIGHT","SHIFTRIGHTUNSIGNED","SIGN","SIN","SQRT","TAN","UNHEX","WIDTH_BUCKET","ARRAY_CONTAINS","MAP_KEYS","MAP_VALUES","SIZE","SORT_ARRAY","BINARY","CAST","ADD_MONTHS","DATE","DATE_ADD","DATE_FORMAT","DATE_SUB","DATEDIFF","DAY","DAYNAME","DAYOFMONTH","DAYOFYEAR","EXTRACT","FROM_UNIXTIME","FROM_UTC_TIMESTAMP","HOUR","LAST_DAY","MINUTE","MONTH","MONTHS_BETWEEN","NEXT_DAY","QUARTER","SECOND","TIMESTAMP","TO_DATE","TO_UTC_TIMESTAMP","TRUNC","UNIX_TIMESTAMP","WEEKOFYEAR","YEAR","ASSERT_TRUE","COALESCE","IF","ISNOTNULL","ISNULL","NULLIF","NVL","ASCII","BASE64","CHARACTER_LENGTH","CHR","CONCAT","CONCAT_WS","CONTEXT_NGRAMS","DECODE","ELT","ENCODE","FIELD","FIND_IN_SET","FORMAT_NUMBER","GET_JSON_OBJECT","IN_FILE","INITCAP","INSTR","LCASE","LENGTH","LEVENSHTEIN","LOCATE","LOWER","LPAD","LTRIM","NGRAMS","OCTET_LENGTH","PARSE_URL","PRINTF","QUOTE","REGEXP_EXTRACT","REGEXP_REPLACE","REPEAT","REVERSE","RPAD","RTRIM","SENTENCES","SOUNDEX","SPACE","SPLIT","STR_TO_MAP","SUBSTR","SUBSTRING","TRANSLATE","TRIM","UCASE","UNBASE64","UPPER","MASK","MASK_FIRST_N","MASK_HASH","MASK_LAST_N","MASK_SHOW_FIRST_N","MASK_SHOW_LAST_N","AES_DECRYPT","AES_ENCRYPT","CRC32","CURRENT_DATABASE","CURRENT_USER","HASH","JAVA_METHOD","LOGGED_IN_USER","MD5","REFLECT","SHA","SHA1","SHA2","SURROGATE_KEY","VERSION","AVG","COLLECT_LIST","COLLECT_SET","CORR","COUNT","COVAR_POP","COVAR_SAMP","HISTOGRAM_NUMERIC","MAX","MIN","NTILE","PERCENTILE","PERCENTILE_APPROX","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE","EXPLODE","INLINE","JSON_TUPLE","PARSE_URL_TUPLE","POSEXPLODE","STACK","LEAD","LAG","FIRST_VALUE","LAST_VALUE","RANK","ROW_NUMBER","DENSE_RANK","CUME_DIST","PERCENT_RANK","NTILE"],wI=["ADD","ADMIN","AFTER","ANALYZE","ARCHIVE","ASC","BEFORE","BUCKET","BUCKETS","CASCADE","CHANGE","CLUSTER","CLUSTERED","CLUSTERSTATUS","COLLECTION","COLUMNS","COMMENT","COMPACT","COMPACTIONS","COMPUTE","CONCATENATE","CONTINUE","DATA","DATABASES","DATETIME","DAY","DBPROPERTIES","DEFERRED","DEFINED","DELIMITED","DEPENDENCY","DESC","DIRECTORIES","DIRECTORY","DISABLE","DISTRIBUTE","ELEM_TYPE","ENABLE","ESCAPED","EXCLUSIVE","EXPLAIN","EXPORT","FIELDS","FILE","FILEFORMAT","FIRST","FORMAT","FORMATTED","FUNCTIONS","HOLD_DDLTIME","HOUR","IDXPROPERTIES","IGNORE","INDEX","INDEXES","INPATH","INPUTDRIVER","INPUTFORMAT","ITEMS","JAR","KEYS","KEY_TYPE","LIMIT","LINES","LOAD","LOCATION","LOCK","LOCKS","LOGICAL","LONG","MAPJOIN","MATERIALIZED","METADATA","MINUS","MINUTE","MONTH","MSCK","NOSCAN","NO_DROP","OFFLINE","OPTION","OUTPUTDRIVER","OUTPUTFORMAT","OVERWRITE","OWNER","PARTITIONED","PARTITIONS","PLUS","PRETTY","PRINCIPALS","PROTECTION","PURGE","READ","READONLY","REBUILD","RECORDREADER","RECORDWRITER","RELOAD","RENAME","REPAIR","REPLACE","REPLICATION","RESTRICT","REWRITE","ROLE","ROLES","SCHEMA","SCHEMAS","SECOND","SEMI","SERDE","SERDEPROPERTIES","SERVER","SETS","SHARED","SHOW","SHOW_DATABASE","SKEWED","SORT","SORTED","SSL","STATISTICS","STORED","STREAMTABLE","STRING","TABLES","TBLPROPERTIES","TEMPORARY","TERMINATED","TINYINT","TOUCH","TRANSACTIONS","UNARCHIVE","UNDO","UNIONTYPE","UNLOCK","UNSET","UNSIGNED","URI","USE","UTC","UTCTIMESTAMP","VALUE_TYPE","VIEW","WHILE","YEAR","AUTOCOMMIT","ISOLATION","LEVEL","OFFSET","SNAPSHOT","TRANSACTION","WORK","WRITE","ABORT","KEY","LAST","NORELY","NOVALIDATE","NULLS","RELY","VALIDATE","DETAIL","DOW","EXPRESSION","OPERATOR","QUARTER","SUMMARY","VECTORIZATION","WEEK","YEARS","MONTHS","WEEKS","DAYS","HOURS","MINUTES","SECONDS","TIMESTAMPTZ","ZONE","ALL","ALTER","AND","AS","AUTHORIZATION","BETWEEN","BOTH","BY","CASE","CAST","COLUMN","CONF","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIMESTAMP","CURSOR","DATABASE","DELETE","DESCRIBE","DISTINCT","DROP","ELSE","END","EXCHANGE","EXISTS","EXTENDED","EXTERNAL","FALSE","FETCH","FOLLOWING","FOR","FROM","FULL","FUNCTION","GRANT","GROUP","GROUPING","HAVING","IF","IMPORT","IN","INNER","INSERT","INTERSECT","INTO","IS","JOIN","LATERAL","LEFT","LESS","LIKE","LOCAL","MACRO","MORE","NONE","NOT","NULL","OF","ON","OR","ORDER","OUT","OUTER","OVER","PARTIALSCAN","PARTITION","PERCENT","PRECEDING","PRESERVE","PROCEDURE","RANGE","READS","REDUCE","REVOKE","RIGHT","ROLLUP","ROW","ROWS","SELECT","SET","TABLE","TABLESAMPLE","THEN","TO","TRANSFORM","TRIGGER","TRUE","TRUNCATE","UNBOUNDED","UNION","UNIQUEJOIN","UPDATE","USER","USING","UTC_TMESTAMP","VALUES","WHEN","WHERE","WINDOW","WITH","COMMIT","ONLY","REGEXP","RLIKE","ROLLBACK","START","CACHE","CONSTRAINT","FOREIGN","PRIMARY","REFERENCES","DAYOFWEEK","EXTRACT","FLOOR","VIEWS","TIME","SYNC","TEXTFILE","SEQUENCEFILE","ORC","CSV","TSV","PARQUET","AVRO","RCFILE","JSONFILE","INPUTFORMAT","OUTPUTFORMAT"],WI=["ARRAY","BIGINT","BINARY","BOOLEAN","CHAR","DATE","DECIMAL","DOUBLE","FLOAT","INT","INTEGER","INTERVAL","MAP","NUMERIC","PRECISION","SMALLINT","STRUCT","TIMESTAMP","VARCHAR"],XI=d(["SELECT [ALL | DISTINCT]"]),$I=d(["WITH","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","SORT BY","CLUSTER BY","DISTRIBUTE BY","LIMIT","INSERT INTO [TABLE]","VALUES","SET","MERGE INTO","WHEN [NOT] MATCHED [THEN]","UPDATE SET","INSERT [VALUES]","INSERT OVERWRITE [LOCAL] DIRECTORY","LOAD DATA [LOCAL] INPATH","[OVERWRITE] INTO TABLE"]),Sn=d(["CREATE [TEMPORARY] [EXTERNAL] TABLE [IF NOT EXISTS]","CREATE [MATERIALIZED] VIEW [IF NOT EXISTS]","UPDATE","DELETE FROM","DROP TABLE [IF EXISTS]","ALTER TABLE","RENAME TO","TRUNCATE [TABLE]","ALTER","CREATE","USE","DESCRIBE","DROP","FETCH","SHOW","STORED AS","STORED BY","ROW FORMAT"]),KI=d(["UNION [ALL | DISTINCT]"]),JI=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","LEFT SEMI JOIN"]),kI=d(["{ROWS | RANGE} BETWEEN"]),jI={name:"hive",tokenizerOptions:{reservedSelect:XI,reservedClauses:[...$I,...Sn],reservedSetOperations:KI,reservedJoins:JI,reservedPhrases:kI,reservedKeywords:wI,reservedDataTypes:WI,reservedFunctionNames:xI,extraParens:["[]"],stringTypes:['""-bs',"''-bs"],identTypes:["``"],variableTypes:[{quote:"{}",prefixes:["$"],requirePrefix:!0}],operators:["%","~","^","|","&","<=>","==","!","||"]},formatOptions:{onelineClauses:Sn}};function Zr(e){return e.map((E,t)=>{const T=e[t+1]||nt;if(xE.SET(E)&&T.text==="(")return Ve(ye({},E),{type:"RESERVED_FUNCTION_NAME"});const r=e[t-1]||nt;return xE.VALUES(E)&&r.text==="="?Ve(ye({},E),{type:"RESERVED_FUNCTION_NAME"}):E})}var qI=["ACCESSIBLE","ADD","ALL","ALTER","ANALYZE","AND","AS","ASC","ASENSITIVE","BEFORE","BETWEEN","BOTH","BY","CALL","CASCADE","CASE","CHANGE","CHECK","COLLATE","COLUMN","CONDITION","CONSTRAINT","CONTINUE","CONVERT","CREATE","CROSS","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATABASES","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DECLARE","DEFAULT","DELAYED","DELETE","DELETE_DOMAIN_ID","DESC","DESCRIBE","DETERMINISTIC","DISTINCT","DISTINCTROW","DIV","DO_DOMAIN_IDS","DROP","DUAL","EACH","ELSE","ELSEIF","ENCLOSED","ESCAPED","EXCEPT","EXISTS","EXIT","EXPLAIN","FALSE","FETCH","FOR","FORCE","FOREIGN","FROM","FULLTEXT","GENERAL","GRANT","GROUP","HAVING","HIGH_PRIORITY","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IF","IGNORE","IGNORE_DOMAIN_IDS","IGNORE_SERVER_IDS","IN","INDEX","INFILE","INNER","INOUT","INSENSITIVE","INSERT","INTERSECT","INTERVAL","INTO","IS","ITERATE","JOIN","KEY","KEYS","KILL","LEADING","LEAVE","LEFT","LIKE","LIMIT","LINEAR","LINES","LOAD","LOCALTIME","LOCALTIMESTAMP","LOCK","LOOP","LOW_PRIORITY","MASTER_HEARTBEAT_PERIOD","MASTER_SSL_VERIFY_SERVER_CERT","MATCH","MAXVALUE","MINUTE_MICROSECOND","MINUTE_SECOND","MOD","MODIFIES","NATURAL","NOT","NO_WRITE_TO_BINLOG","NULL","OFFSET","ON","OPTIMIZE","OPTION","OPTIONALLY","OR","ORDER","OUT","OUTER","OUTFILE","OVER","PAGE_CHECKSUM","PARSE_VCOL_EXPR","PARTITION","POSITION","PRIMARY","PROCEDURE","PURGE","RANGE","READ","READS","READ_WRITE","RECURSIVE","REF_SYSTEM_ID","REFERENCES","REGEXP","RELEASE","RENAME","REPEAT","REPLACE","REQUIRE","RESIGNAL","RESTRICT","RETURN","RETURNING","REVOKE","RIGHT","RLIKE","ROW_NUMBER","ROWS","SCHEMA","SCHEMAS","SECOND_MICROSECOND","SELECT","SENSITIVE","SEPARATOR","SET","SHOW","SIGNAL","SLOW","SPATIAL","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_BIG_RESULT","SQL_CALC_FOUND_ROWS","SQL_SMALL_RESULT","SSL","STARTING","STATS_AUTO_RECALC","STATS_PERSISTENT","STATS_SAMPLE_PAGES","STRAIGHT_JOIN","TABLE","TERMINATED","THEN","TO","TRAILING","TRIGGER","TRUE","UNDO","UNION","UNIQUE","UNLOCK","UNSIGNED","UPDATE","USAGE","USE","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALUES","WHEN","WHERE","WHILE","WINDOW","WITH","WRITE","XOR","YEAR_MONTH","ZEROFILL"],QI=["BIGINT","BINARY","BIT","BLOB","CHAR BYTE","CHAR","CHARACTER","DATETIME","DEC","DECIMAL","DOUBLE PRECISION","DOUBLE","ENUM","FIXED","FLOAT","FLOAT4","FLOAT8","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","LONG","LONGBLOB","LONGTEXT","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MIDDLEINT","NATIONAL CHAR","NATIONAL VARCHAR","NUMERIC","PRECISION","REAL","SMALLINT","TEXT","TIMESTAMP","TINYBLOB","TINYINT","TINYTEXT","VARBINARY","VARCHAR","VARCHARACTER","VARYING","YEAR"],ZI=["ADDDATE","ADD_MONTHS","BIT_AND","BIT_OR","BIT_XOR","CAST","COUNT","CUME_DIST","CURDATE","CURTIME","DATE_ADD","DATE_SUB","DATE_FORMAT","DECODE","DENSE_RANK","EXTRACT","FIRST_VALUE","GROUP_CONCAT","JSON_ARRAYAGG","JSON_OBJECTAGG","LAG","LEAD","MAX","MEDIAN","MID","MIN","NOW","NTH_VALUE","NTILE","POSITION","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","RANK","ROW_NUMBER","SESSION_USER","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","SUBDATE","SUBSTR","SUBSTRING","SUM","SYSTEM_USER","TRIM","TRIM_ORACLE","VARIANCE","VAR_POP","VAR_SAMP","ABS","ACOS","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ASIN","ATAN","ATAN2","BENCHMARK","BIN","BINLOG_GTID_POS","BIT_COUNT","BIT_LENGTH","CEIL","CEILING","CHARACTER_LENGTH","CHAR_LENGTH","CHR","COERCIBILITY","COLUMN_CHECK","COLUMN_EXISTS","COLUMN_LIST","COLUMN_JSON","COMPRESS","CONCAT","CONCAT_OPERATOR_ORACLE","CONCAT_WS","CONNECTION_ID","CONV","CONVERT_TZ","COS","COT","CRC32","DATEDIFF","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DEGREES","DECODE_HISTOGRAM","DECODE_ORACLE","DES_DECRYPT","DES_ENCRYPT","ELT","ENCODE","ENCRYPT","EXP","EXPORT_SET","EXTRACTVALUE","FIELD","FIND_IN_SET","FLOOR","FORMAT","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GET_LOCK","GREATEST","HEX","IFNULL","INSTR","ISNULL","IS_FREE_LOCK","IS_USED_LOCK","JSON_ARRAY","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_COMPACT","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_DETAILED","JSON_EXISTS","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_LOOSE","JSON_MERGE","JSON_MERGE_PATCH","JSON_MERGE_PRESERVE","JSON_QUERY","JSON_QUOTE","JSON_OBJECT","JSON_REMOVE","JSON_REPLACE","JSON_SET","JSON_SEARCH","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","JSON_VALUE","LAST_DAY","LAST_INSERT_ID","LCASE","LEAST","LENGTH","LENGTHB","LN","LOAD_FILE","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LPAD_ORACLE","LTRIM","LTRIM_ORACLE","MAKEDATE","MAKETIME","MAKE_SET","MASTER_GTID_WAIT","MASTER_POS_WAIT","MD5","MONTHNAME","NAME_CONST","NVL","NVL2","OCT","OCTET_LENGTH","ORD","PERIOD_ADD","PERIOD_DIFF","PI","POW","POWER","QUOTE","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","RADIANS","RAND","RELEASE_ALL_LOCKS","RELEASE_LOCK","REPLACE_ORACLE","REVERSE","ROUND","RPAD","RPAD_ORACLE","RTRIM","RTRIM_ORACLE","SEC_TO_TIME","SHA","SHA1","SHA2","SIGN","SIN","SLEEP","SOUNDEX","SPACE","SQRT","STRCMP","STR_TO_DATE","SUBSTR_ORACLE","SUBSTRING_INDEX","SUBTIME","SYS_GUID","TAN","TIMEDIFF","TIME_FORMAT","TIME_TO_SEC","TO_BASE64","TO_CHAR","TO_DAYS","TO_SECONDS","UCASE","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","UUID","UUID_SHORT","VERSION","WEEKDAY","WEEKOFYEAR","WSREP_LAST_WRITTEN_GTID","WSREP_LAST_SEEN_GTID","WSREP_SYNC_WAIT_UPTO_GTID","YEARWEEK","COALESCE","NULLIF"],zI=d(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),eN=d(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT [LOW_PRIORITY | DELAYED | HIGH_PRIORITY] [IGNORE] [INTO]","REPLACE [LOW_PRIORITY | DELAYED] [INTO]","VALUES","ON DUPLICATE KEY UPDATE","SET","RETURNING"]),On=d(["CREATE [OR REPLACE] [TEMPORARY] TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] [SQL SECURITY DEFINER | SQL SECURITY INVOKER] VIEW [IF NOT EXISTS]","UPDATE [LOW_PRIORITY] [IGNORE]","DELETE [LOW_PRIORITY] [QUICK] [IGNORE] FROM","DROP [TEMPORARY] TABLE [IF EXISTS]","ALTER [ONLINE] [IGNORE] TABLE [IF EXISTS]","ADD [COLUMN] [IF NOT EXISTS]","{CHANGE | MODIFY} [COLUMN] [IF EXISTS]","DROP [COLUMN] [IF EXISTS]","RENAME [TO]","RENAME COLUMN","ALTER [COLUMN]","{SET | DROP} DEFAULT","SET {VISIBLE | INVISIBLE}","TRUNCATE [TABLE]","ALTER DATABASE","ALTER DATABASE COMMENT","ALTER EVENT","ALTER FUNCTION","ALTER PROCEDURE","ALTER SCHEMA","ALTER SCHEMA COMMENT","ALTER SEQUENCE","ALTER SERVER","ALTER USER","ALTER VIEW","ANALYZE","ANALYZE TABLE","BACKUP LOCK","BACKUP STAGE","BACKUP UNLOCK","BEGIN","BINLOG","CACHE INDEX","CALL","CHANGE MASTER TO","CHECK TABLE","CHECK VIEW","CHECKSUM TABLE","COMMIT","CREATE AGGREGATE FUNCTION","CREATE DATABASE","CREATE EVENT","CREATE FUNCTION","CREATE INDEX","CREATE PROCEDURE","CREATE ROLE","CREATE SEQUENCE","CREATE SERVER","CREATE SPATIAL INDEX","CREATE TRIGGER","CREATE UNIQUE INDEX","CREATE USER","DEALLOCATE PREPARE","DESCRIBE","DROP DATABASE","DROP EVENT","DROP FUNCTION","DROP INDEX","DROP PREPARE","DROP PROCEDURE","DROP ROLE","DROP SEQUENCE","DROP SERVER","DROP TRIGGER","DROP USER","DROP VIEW","EXECUTE","EXPLAIN","FLUSH","GET DIAGNOSTICS","GET DIAGNOSTICS CONDITION","GRANT","HANDLER","HELP","INSTALL PLUGIN","INSTALL SONAME","KILL","LOAD DATA INFILE","LOAD INDEX INTO CACHE","LOAD XML INFILE","LOCK TABLE","OPTIMIZE TABLE","PREPARE","PURGE BINARY LOGS","PURGE MASTER LOGS","RELEASE SAVEPOINT","RENAME TABLE","RENAME USER","REPAIR TABLE","REPAIR VIEW","RESET MASTER","RESET QUERY CACHE","RESET REPLICA","RESET SLAVE","RESIGNAL","REVOKE","ROLLBACK","SAVEPOINT","SET CHARACTER SET","SET DEFAULT ROLE","SET GLOBAL TRANSACTION","SET NAMES","SET PASSWORD","SET ROLE","SET STATEMENT","SET TRANSACTION","SHOW","SHOW ALL REPLICAS STATUS","SHOW ALL SLAVES STATUS","SHOW AUTHORS","SHOW BINARY LOGS","SHOW BINLOG EVENTS","SHOW BINLOG STATUS","SHOW CHARACTER SET","SHOW CLIENT_STATISTICS","SHOW COLLATION","SHOW COLUMNS","SHOW CONTRIBUTORS","SHOW CREATE DATABASE","SHOW CREATE EVENT","SHOW CREATE FUNCTION","SHOW CREATE PACKAGE","SHOW CREATE PACKAGE BODY","SHOW CREATE PROCEDURE","SHOW CREATE SEQUENCE","SHOW CREATE TABLE","SHOW CREATE TRIGGER","SHOW CREATE USER","SHOW CREATE VIEW","SHOW DATABASES","SHOW ENGINE","SHOW ENGINE INNODB STATUS","SHOW ENGINES","SHOW ERRORS","SHOW EVENTS","SHOW EXPLAIN","SHOW FUNCTION CODE","SHOW FUNCTION STATUS","SHOW GRANTS","SHOW INDEX","SHOW INDEXES","SHOW INDEX_STATISTICS","SHOW KEYS","SHOW LOCALES","SHOW MASTER LOGS","SHOW MASTER STATUS","SHOW OPEN TABLES","SHOW PACKAGE BODY CODE","SHOW PACKAGE BODY STATUS","SHOW PACKAGE STATUS","SHOW PLUGINS","SHOW PLUGINS SONAME","SHOW PRIVILEGES","SHOW PROCEDURE CODE","SHOW PROCEDURE STATUS","SHOW PROCESSLIST","SHOW PROFILE","SHOW PROFILES","SHOW QUERY_RESPONSE_TIME","SHOW RELAYLOG EVENTS","SHOW REPLICA","SHOW REPLICA HOSTS","SHOW REPLICA STATUS","SHOW SCHEMAS","SHOW SLAVE","SHOW SLAVE HOSTS","SHOW SLAVE STATUS","SHOW STATUS","SHOW STORAGE ENGINES","SHOW TABLE STATUS","SHOW TABLES","SHOW TRIGGERS","SHOW USER_STATISTICS","SHOW VARIABLES","SHOW WARNINGS","SHOW WSREP_MEMBERSHIP","SHOW WSREP_STATUS","SHUTDOWN","SIGNAL","START ALL REPLICAS","START ALL SLAVES","START REPLICA","START SLAVE","START TRANSACTION","STOP ALL REPLICAS","STOP ALL SLAVES","STOP REPLICA","STOP SLAVE","UNINSTALL PLUGIN","UNINSTALL SONAME","UNLOCK TABLE","USE","XA BEGIN","XA COMMIT","XA END","XA PREPARE","XA RECOVER","XA ROLLBACK","XA START"]),EN=d(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]","MINUS [ALL | DISTINCT]"]),tN=d(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),TN=d(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","CHARACTER SET","{ROWS | RANGE} BETWEEN","IDENTIFIED BY"]),rN={name:"mariadb",tokenizerOptions:{reservedSelect:zI,reservedClauses:[...eN,...On],reservedSetOperations:EN,reservedJoins:tN,reservedPhrases:TN,supportsXor:!0,reservedKeywords:qI,reservedDataTypes:QI,reservedFunctionNames:ZI,stringTypes:['""-qq-bs',"''-qq-bs",{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:["``"],identChars:{first:"$",rest:"$",allowFirstCharNumber:!0},variableTypes:[{regex:"@@?[A-Za-z0-9_.$]+"},{quote:'""-qq-bs',prefixes:["@"],requirePrefix:!0},{quote:"''-qq-bs",prefixes:["@"],requirePrefix:!0},{quote:"``",prefixes:["@"],requirePrefix:!0}],paramTypes:{positional:!0},lineCommentTypes:["--","#"],operators:["%",":=","&","|","^","~","<<",">>","<=>","&&","||","!","*.*"],postProcess:Zr},formatOptions:{onelineClauses:On}},sN=["ACCESSIBLE","ADD","ALL","ALTER","ANALYZE","AND","AS","ASC","ASENSITIVE","BEFORE","BETWEEN","BOTH","BY","CALL","CASCADE","CASE","CHANGE","CHECK","COLLATE","COLUMN","CONDITION","CONSTRAINT","CONTINUE","CONVERT","CREATE","CROSS","CUBE","CUME_DIST","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATABASES","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DECLARE","DEFAULT","DELAYED","DELETE","DENSE_RANK","DESC","DESCRIBE","DETERMINISTIC","DISTINCT","DISTINCTROW","DIV","DROP","DUAL","EACH","ELSE","ELSEIF","EMPTY","ENCLOSED","ESCAPED","EXCEPT","EXISTS","EXIT","EXPLAIN","FALSE","FETCH","FIRST_VALUE","FOR","FORCE","FOREIGN","FROM","FULLTEXT","FUNCTION","GENERATED","GET","GRANT","GROUP","GROUPING","GROUPS","HAVING","HIGH_PRIORITY","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IF","IGNORE","IN","INDEX","INFILE","INNER","INOUT","INSENSITIVE","INSERT","IN","INTERSECT","INTERVAL","INTO","IO_AFTER_GTIDS","IO_BEFORE_GTIDS","IS","ITERATE","JOIN","JSON_TABLE","KEY","KEYS","KILL","LAG","LAST_VALUE","LATERAL","LEAD","LEADING","LEAVE","LEFT","LIKE","LIMIT","LINEAR","LINES","LOAD","LOCALTIME","LOCALTIMESTAMP","LOCK","LONG","LOOP","LOW_PRIORITY","MASTER_BIND","MASTER_SSL_VERIFY_SERVER_CERT","MATCH","MAXVALUE","MINUTE_MICROSECOND","MINUTE_SECOND","MOD","MODIFIES","NATURAL","NOT","NO_WRITE_TO_BINLOG","NTH_VALUE","NTILE","NULL","OF","ON","OPTIMIZE","OPTIMIZER_COSTS","OPTION","OPTIONALLY","OR","ORDER","OUT","OUTER","OUTFILE","OVER","PARTITION","PERCENT_RANK","PRIMARY","PROCEDURE","PURGE","RANGE","RANK","READ","READS","READ_WRITE","RECURSIVE","REFERENCES","REGEXP","RELEASE","RENAME","REPEAT","REPLACE","REQUIRE","RESIGNAL","RESTRICT","RETURN","REVOKE","RIGHT","RLIKE","ROW","ROWS","ROW_NUMBER","SCHEMA","SCHEMAS","SECOND_MICROSECOND","SELECT","SENSITIVE","SEPARATOR","SET","SHOW","SIGNAL","SPATIAL","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_BIG_RESULT","SQL_CALC_FOUND_ROWS","SQL_SMALL_RESULT","SSL","STARTING","STORED","STRAIGHT_JOIN","SYSTEM","TABLE","TERMINATED","THEN","TO","TRAILING","TRIGGER","TRUE","UNDO","UNION","UNIQUE","UNLOCK","UNSIGNED","UPDATE","USAGE","USE","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALUES","VIRTUAL","WHEN","WHERE","WHILE","WINDOW","WITH","WRITE","XOR","YEAR_MONTH","ZEROFILL"],nN=["BIGINT","BINARY","BIT","BLOB","BOOL","BOOLEAN","CHAR","CHARACTER","DATE","DATETIME","DEC","DECIMAL","DOUBLE PRECISION","DOUBLE","ENUM","FIXED","FLOAT","FLOAT4","FLOAT8","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","LONGBLOB","LONGTEXT","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MIDDLEINT","NATIONAL CHAR","NATIONAL VARCHAR","NUMERIC","PRECISION","REAL","SMALLINT","TEXT","TIME","TIMESTAMP","TINYBLOB","TINYINT","TINYTEXT","VARBINARY","VARCHAR","VARCHARACTER","VARYING","YEAR"],RN=["ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ANY_VALUE","ASCII","ASIN","ATAN","ATAN2","AVG","BENCHMARK","BIN","BIN_TO_UUID","BINARY","BIT_AND","BIT_COUNT","BIT_LENGTH","BIT_OR","BIT_XOR","CAN_ACCESS_COLUMN","CAN_ACCESS_DATABASE","CAN_ACCESS_TABLE","CAN_ACCESS_USER","CAN_ACCESS_VIEW","CAST","CEIL","CEILING","CHAR","CHAR_LENGTH","CHARACTER_LENGTH","CHARSET","COALESCE","COERCIBILITY","COLLATION","COMPRESS","CONCAT","CONCAT_WS","CONNECTION_ID","CONV","CONVERT","CONVERT_TZ","COS","COT","COUNT","CRC32","CUME_DIST","CURDATE","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURTIME","DATABASE","DATE","DATE_ADD","DATE_FORMAT","DATE_SUB","DATEDIFF","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DEFAULT","DEGREES","DENSE_RANK","DIV","ELT","EXP","EXPORT_SET","EXTRACT","EXTRACTVALUE","FIELD","FIND_IN_SET","FIRST_VALUE","FLOOR","FORMAT","FORMAT_BYTES","FORMAT_PICO_TIME","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GEOMCOLLECTION","GEOMETRYCOLLECTION","GET_DD_COLUMN_PRIVILEGES","GET_DD_CREATE_OPTIONS","GET_DD_INDEX_SUB_PART_LENGTH","GET_FORMAT","GET_LOCK","GREATEST","GROUP_CONCAT","GROUPING","GTID_SUBSET","GTID_SUBTRACT","HEX","HOUR","ICU_VERSION","IF","IFNULL","INET_ATON","INET_NTOA","INET6_ATON","INET6_NTOA","INSERT","INSTR","INTERNAL_AUTO_INCREMENT","INTERNAL_AVG_ROW_LENGTH","INTERNAL_CHECK_TIME","INTERNAL_CHECKSUM","INTERNAL_DATA_FREE","INTERNAL_DATA_LENGTH","INTERNAL_DD_CHAR_LENGTH","INTERNAL_GET_COMMENT_OR_ERROR","INTERNAL_GET_ENABLED_ROLE_JSON","INTERNAL_GET_HOSTNAME","INTERNAL_GET_USERNAME","INTERNAL_GET_VIEW_WARNING_OR_ERROR","INTERNAL_INDEX_COLUMN_CARDINALITY","INTERNAL_INDEX_LENGTH","INTERNAL_IS_ENABLED_ROLE","INTERNAL_IS_MANDATORY_ROLE","INTERNAL_KEYS_DISABLED","INTERNAL_MAX_DATA_LENGTH","INTERNAL_TABLE_ROWS","INTERNAL_UPDATE_TIME","INTERVAL","IS","IS_FREE_LOCK","IS_IPV4","IS_IPV4_COMPAT","IS_IPV4_MAPPED","IS_IPV6","IS NOT","IS NOT NULL","IS NULL","IS_USED_LOCK","IS_UUID","ISNULL","JSON_ARRAY","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_ARRAYAGG","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_MERGE","JSON_MERGE_PATCH","JSON_MERGE_PRESERVE","JSON_OBJECT","JSON_OBJECTAGG","JSON_OVERLAPS","JSON_PRETTY","JSON_QUOTE","JSON_REMOVE","JSON_REPLACE","JSON_SCHEMA_VALID","JSON_SCHEMA_VALIDATION_REPORT","JSON_SEARCH","JSON_SET","JSON_STORAGE_FREE","JSON_STORAGE_SIZE","JSON_TABLE","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","JSON_VALUE","LAG","LAST_DAY","LAST_INSERT_ID","LAST_VALUE","LCASE","LEAD","LEAST","LEFT","LENGTH","LIKE","LINESTRING","LN","LOAD_FILE","LOCALTIME","LOCALTIMESTAMP","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LTRIM","MAKE_SET","MAKEDATE","MAKETIME","MASTER_POS_WAIT","MATCH","MAX","MBRCONTAINS","MBRCOVEREDBY","MBRCOVERS","MBRDISJOINT","MBREQUALS","MBRINTERSECTS","MBROVERLAPS","MBRTOUCHES","MBRWITHIN","MD5","MEMBER OF","MICROSECOND","MID","MIN","MINUTE","MOD","MONTH","MONTHNAME","MULTILINESTRING","MULTIPOINT","MULTIPOLYGON","NAME_CONST","NOT","NOT IN","NOT LIKE","NOT REGEXP","NOW","NTH_VALUE","NTILE","NULLIF","OCT","OCTET_LENGTH","ORD","PERCENT_RANK","PERIOD_ADD","PERIOD_DIFF","PI","POINT","POLYGON","POSITION","POW","POWER","PS_CURRENT_THREAD_ID","PS_THREAD_ID","QUARTER","QUOTE","RADIANS","RAND","RANDOM_BYTES","RANK","REGEXP","REGEXP_INSTR","REGEXP_LIKE","REGEXP_REPLACE","REGEXP_SUBSTR","RELEASE_ALL_LOCKS","RELEASE_LOCK","REPEAT","REPLACE","REVERSE","RIGHT","RLIKE","ROLES_GRAPHML","ROUND","ROW_COUNT","ROW_NUMBER","RPAD","RTRIM","SCHEMA","SEC_TO_TIME","SECOND","SESSION_USER","SHA1","SHA2","SIGN","SIN","SLEEP","SOUNDEX","SOUNDS LIKE","SOURCE_POS_WAIT","SPACE","SQRT","ST_AREA","ST_ASBINARY","ST_ASGEOJSON","ST_ASTEXT","ST_BUFFER","ST_BUFFER_STRATEGY","ST_CENTROID","ST_COLLECT","ST_CONTAINS","ST_CONVEXHULL","ST_CROSSES","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_DISTANCE_SPHERE","ST_ENDPOINT","ST_ENVELOPE","ST_EQUALS","ST_EXTERIORRING","ST_FRECHETDISTANCE","ST_GEOHASH","ST_GEOMCOLLFROMTEXT","ST_GEOMCOLLFROMWKB","ST_GEOMETRYN","ST_GEOMETRYTYPE","ST_GEOMFROMGEOJSON","ST_GEOMFROMTEXT","ST_GEOMFROMWKB","ST_HAUSDORFFDISTANCE","ST_INTERIORRINGN","ST_INTERSECTION","ST_INTERSECTS","ST_ISCLOSED","ST_ISEMPTY","ST_ISSIMPLE","ST_ISVALID","ST_LATFROMGEOHASH","ST_LATITUDE","ST_LENGTH","ST_LINEFROMTEXT","ST_LINEFROMWKB","ST_LINEINTERPOLATEPOINT","ST_LINEINTERPOLATEPOINTS","ST_LONGFROMGEOHASH","ST_LONGITUDE","ST_MAKEENVELOPE","ST_MLINEFROMTEXT","ST_MLINEFROMWKB","ST_MPOINTFROMTEXT","ST_MPOINTFROMWKB","ST_MPOLYFROMTEXT","ST_MPOLYFROMWKB","ST_NUMGEOMETRIES","ST_NUMINTERIORRING","ST_NUMPOINTS","ST_OVERLAPS","ST_POINTATDISTANCE","ST_POINTFROMGEOHASH","ST_POINTFROMTEXT","ST_POINTFROMWKB","ST_POINTN","ST_POLYFROMTEXT","ST_POLYFROMWKB","ST_SIMPLIFY","ST_SRID","ST_STARTPOINT","ST_SWAPXY","ST_SYMDIFFERENCE","ST_TOUCHES","ST_TRANSFORM","ST_UNION","ST_VALIDATE","ST_WITHIN","ST_X","ST_Y","STATEMENT_DIGEST","STATEMENT_DIGEST_TEXT","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DATE","STRCMP","SUBDATE","SUBSTR","SUBSTRING","SUBSTRING_INDEX","SUBTIME","SUM","SYSDATE","SYSTEM_USER","TAN","TIME","TIME_FORMAT","TIME_TO_SEC","TIMEDIFF","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TO_BASE64","TO_DAYS","TO_SECONDS","TRIM","TRUNCATE","UCASE","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","UUID","UUID_SHORT","UUID_TO_BIN","VALIDATE_PASSWORD_STRENGTH","VALUES","VAR_POP","VAR_SAMP","VARIANCE","VERSION","WAIT_FOR_EXECUTED_GTID_SET","WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS","WEEK","WEEKDAY","WEEKOFYEAR","WEIGHT_STRING","YEAR","YEARWEEK"],oN=d(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),AN=d(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT [LOW_PRIORITY | DELAYED | HIGH_PRIORITY] [IGNORE] [INTO]","REPLACE [LOW_PRIORITY | DELAYED] [INTO]","VALUES","ON DUPLICATE KEY UPDATE","SET"]),an=d(["CREATE [TEMPORARY] TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] [SQL SECURITY DEFINER | SQL SECURITY INVOKER] VIEW [IF NOT EXISTS]","UPDATE [LOW_PRIORITY] [IGNORE]","DELETE [LOW_PRIORITY] [QUICK] [IGNORE] FROM","DROP [TEMPORARY] TABLE [IF EXISTS]","ALTER TABLE","ADD [COLUMN]","{CHANGE | MODIFY} [COLUMN]","DROP [COLUMN]","RENAME [TO | AS]","RENAME COLUMN","ALTER [COLUMN]","{SET | DROP} DEFAULT","TRUNCATE [TABLE]","ALTER DATABASE","ALTER EVENT","ALTER FUNCTION","ALTER INSTANCE","ALTER LOGFILE GROUP","ALTER PROCEDURE","ALTER RESOURCE GROUP","ALTER SERVER","ALTER TABLESPACE","ALTER USER","ALTER VIEW","ANALYZE TABLE","BINLOG","CACHE INDEX","CALL","CHANGE MASTER TO","CHANGE REPLICATION FILTER","CHANGE REPLICATION SOURCE TO","CHECK TABLE","CHECKSUM TABLE","CLONE","COMMIT","CREATE DATABASE","CREATE EVENT","CREATE FUNCTION","CREATE FUNCTION","CREATE INDEX","CREATE LOGFILE GROUP","CREATE PROCEDURE","CREATE RESOURCE GROUP","CREATE ROLE","CREATE SERVER","CREATE SPATIAL REFERENCE SYSTEM","CREATE TABLESPACE","CREATE TRIGGER","CREATE USER","DEALLOCATE PREPARE","DESCRIBE","DROP DATABASE","DROP EVENT","DROP FUNCTION","DROP FUNCTION","DROP INDEX","DROP LOGFILE GROUP","DROP PROCEDURE","DROP RESOURCE GROUP","DROP ROLE","DROP SERVER","DROP SPATIAL REFERENCE SYSTEM","DROP TABLESPACE","DROP TRIGGER","DROP USER","DROP VIEW","EXECUTE","EXPLAIN","FLUSH","GRANT","HANDLER","HELP","IMPORT TABLE","INSTALL COMPONENT","INSTALL PLUGIN","KILL","LOAD DATA","LOAD INDEX INTO CACHE","LOAD XML","LOCK INSTANCE FOR BACKUP","LOCK TABLES","MASTER_POS_WAIT","OPTIMIZE TABLE","PREPARE","PURGE BINARY LOGS","RELEASE SAVEPOINT","RENAME TABLE","RENAME USER","REPAIR TABLE","RESET","RESET MASTER","RESET PERSIST","RESET REPLICA","RESET SLAVE","RESTART","REVOKE","ROLLBACK","ROLLBACK TO SAVEPOINT","SAVEPOINT","SET CHARACTER SET","SET DEFAULT ROLE","SET NAMES","SET PASSWORD","SET RESOURCE GROUP","SET ROLE","SET TRANSACTION","SHOW","SHOW BINARY LOGS","SHOW BINLOG EVENTS","SHOW CHARACTER SET","SHOW COLLATION","SHOW COLUMNS","SHOW CREATE DATABASE","SHOW CREATE EVENT","SHOW CREATE FUNCTION","SHOW CREATE PROCEDURE","SHOW CREATE TABLE","SHOW CREATE TRIGGER","SHOW CREATE USER","SHOW CREATE VIEW","SHOW DATABASES","SHOW ENGINE","SHOW ENGINES","SHOW ERRORS","SHOW EVENTS","SHOW FUNCTION CODE","SHOW FUNCTION STATUS","SHOW GRANTS","SHOW INDEX","SHOW MASTER STATUS","SHOW OPEN TABLES","SHOW PLUGINS","SHOW PRIVILEGES","SHOW PROCEDURE CODE","SHOW PROCEDURE STATUS","SHOW PROCESSLIST","SHOW PROFILE","SHOW PROFILES","SHOW RELAYLOG EVENTS","SHOW REPLICA STATUS","SHOW REPLICAS","SHOW SLAVE","SHOW SLAVE HOSTS","SHOW STATUS","SHOW TABLE STATUS","SHOW TABLES","SHOW TRIGGERS","SHOW VARIABLES","SHOW WARNINGS","SHUTDOWN","SOURCE_POS_WAIT","START GROUP_REPLICATION","START REPLICA","START SLAVE","START TRANSACTION","STOP GROUP_REPLICATION","STOP REPLICA","STOP SLAVE","TABLE","UNINSTALL COMPONENT","UNINSTALL PLUGIN","UNLOCK INSTANCE","UNLOCK TABLES","USE","XA","ITERATE","LEAVE","LOOP","REPEAT","RETURN","WHILE"]),iN=d(["UNION [ALL | DISTINCT]"]),SN=d(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),ON=d(["ON {UPDATE | DELETE} [SET NULL]","CHARACTER SET","{ROWS | RANGE} BETWEEN","IDENTIFIED BY"]),aN={name:"mysql",tokenizerOptions:{reservedSelect:oN,reservedClauses:[...AN,...an],reservedSetOperations:iN,reservedJoins:SN,reservedPhrases:ON,supportsXor:!0,reservedKeywords:sN,reservedDataTypes:nN,reservedFunctionNames:RN,stringTypes:['""-qq-bs',{quote:"''-qq-bs",prefixes:["N"]},{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:["``"],identChars:{first:"$",rest:"$",allowFirstCharNumber:!0},variableTypes:[{regex:"@@?[A-Za-z0-9_.$]+"},{quote:'""-qq-bs',prefixes:["@"],requirePrefix:!0},{quote:"''-qq-bs",prefixes:["@"],requirePrefix:!0},{quote:"``",prefixes:["@"],requirePrefix:!0}],paramTypes:{positional:!0},lineCommentTypes:["--","#"],operators:["%",":=","&","|","^","~","<<",">>","<=>","->","->>","&&","||","!","*.*"],postProcess:Zr},formatOptions:{onelineClauses:an}},IN=["ABORT","ABS","ACOS","ADVISOR","ARRAY_AGG","ARRAY_AGG","ARRAY_APPEND","ARRAY_AVG","ARRAY_BINARY_SEARCH","ARRAY_CONCAT","ARRAY_CONTAINS","ARRAY_COUNT","ARRAY_DISTINCT","ARRAY_EXCEPT","ARRAY_FLATTEN","ARRAY_IFNULL","ARRAY_INSERT","ARRAY_INTERSECT","ARRAY_LENGTH","ARRAY_MAX","ARRAY_MIN","ARRAY_MOVE","ARRAY_POSITION","ARRAY_PREPEND","ARRAY_PUT","ARRAY_RANGE","ARRAY_REMOVE","ARRAY_REPEAT","ARRAY_REPLACE","ARRAY_REVERSE","ARRAY_SORT","ARRAY_STAR","ARRAY_SUM","ARRAY_SYMDIFF","ARRAY_SYMDIFF1","ARRAY_SYMDIFFN","ARRAY_UNION","ASIN","ATAN","ATAN2","AVG","BASE64","BASE64_DECODE","BASE64_ENCODE","BITAND ","BITCLEAR ","BITNOT ","BITOR ","BITSET ","BITSHIFT ","BITTEST ","BITXOR ","CEIL","CLOCK_LOCAL","CLOCK_MILLIS","CLOCK_STR","CLOCK_TZ","CLOCK_UTC","COALESCE","CONCAT","CONCAT2","CONTAINS","CONTAINS_TOKEN","CONTAINS_TOKEN_LIKE","CONTAINS_TOKEN_REGEXP","COS","COUNT","COUNT","COUNTN","CUME_DIST","CURL","DATE_ADD_MILLIS","DATE_ADD_STR","DATE_DIFF_MILLIS","DATE_DIFF_STR","DATE_FORMAT_STR","DATE_PART_MILLIS","DATE_PART_STR","DATE_RANGE_MILLIS","DATE_RANGE_STR","DATE_TRUNC_MILLIS","DATE_TRUNC_STR","DECODE","DECODE_JSON","DEGREES","DENSE_RANK","DURATION_TO_STR","ENCODED_SIZE","ENCODE_JSON","EXP","FIRST_VALUE","FLOOR","GREATEST","HAS_TOKEN","IFINF","IFMISSING","IFMISSINGORNULL","IFNAN","IFNANORINF","IFNULL","INITCAP","ISARRAY","ISATOM","ISBITSET","ISBOOLEAN","ISNUMBER","ISOBJECT","ISSTRING","LAG","LAST_VALUE","LEAD","LEAST","LENGTH","LN","LOG","LOWER","LTRIM","MAX","MEAN","MEDIAN","META","MILLIS","MILLIS_TO_LOCAL","MILLIS_TO_STR","MILLIS_TO_TZ","MILLIS_TO_UTC","MILLIS_TO_ZONE_NAME","MIN","MISSINGIF","NANIF","NEGINFIF","NOW_LOCAL","NOW_MILLIS","NOW_STR","NOW_TZ","NOW_UTC","NTH_VALUE","NTILE","NULLIF","NVL","NVL2","OBJECT_ADD","OBJECT_CONCAT","OBJECT_INNER_PAIRS","OBJECT_INNER_VALUES","OBJECT_LENGTH","OBJECT_NAMES","OBJECT_PAIRS","OBJECT_PUT","OBJECT_REMOVE","OBJECT_RENAME","OBJECT_REPLACE","OBJECT_UNWRAP","OBJECT_VALUES","PAIRS","PERCENT_RANK","PI","POLY_LENGTH","POSINFIF","POSITION","POWER","RADIANS","RANDOM","RANK","RATIO_TO_REPORT","REGEXP_CONTAINS","REGEXP_LIKE","REGEXP_MATCHES","REGEXP_POSITION","REGEXP_REPLACE","REGEXP_SPLIT","REGEX_CONTAINS","REGEX_LIKE","REGEX_MATCHES","REGEX_POSITION","REGEX_REPLACE","REGEX_SPLIT","REPEAT","REPLACE","REVERSE","ROUND","ROW_NUMBER","RTRIM","SEARCH","SEARCH_META","SEARCH_SCORE","SIGN","SIN","SPLIT","SQRT","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DURATION","STR_TO_MILLIS","STR_TO_TZ","STR_TO_UTC","STR_TO_ZONE_NAME","SUBSTR","SUFFIXES","SUM","TAN","TITLE","TOARRAY","TOATOM","TOBOOLEAN","TOKENS","TOKENS","TONUMBER","TOOBJECT","TOSTRING","TRIM","TRUNC","UPPER","UUID","VARIANCE","VARIANCE_POP","VARIANCE_SAMP","VAR_POP","VAR_SAMP","WEEKDAY_MILLIS","WEEKDAY_STR","CAST"],NN=["ADVISE","ALL","ALTER","ANALYZE","AND","ANY","ARRAY","AS","ASC","AT","BEGIN","BETWEEN","BINARY","BOOLEAN","BREAK","BUCKET","BUILD","BY","CALL","CASE","CAST","CLUSTER","COLLATE","COLLECTION","COMMIT","COMMITTED","CONNECT","CONTINUE","CORRELATED","COVER","CREATE","CURRENT","DATABASE","DATASET","DATASTORE","DECLARE","DECREMENT","DELETE","DERIVED","DESC","DESCRIBE","DISTINCT","DO","DROP","EACH","ELEMENT","ELSE","END","EVERY","EXCEPT","EXCLUDE","EXECUTE","EXISTS","EXPLAIN","FALSE","FETCH","FILTER","FIRST","FLATTEN","FLUSH","FOLLOWING","FOR","FORCE","FROM","FTS","FUNCTION","GOLANG","GRANT","GROUP","GROUPS","GSI","HASH","HAVING","IF","IGNORE","ILIKE","IN","INCLUDE","INCREMENT","INDEX","INFER","INLINE","INNER","INSERT","INTERSECT","INTO","IS","ISOLATION","JAVASCRIPT","JOIN","KEY","KEYS","KEYSPACE","KNOWN","LANGUAGE","LAST","LEFT","LET","LETTING","LEVEL","LIKE","LIMIT","LSM","MAP","MAPPING","MATCHED","MATERIALIZED","MERGE","MINUS","MISSING","NAMESPACE","NEST","NL","NO","NOT","NTH_VALUE","NULL","NULLS","NUMBER","OBJECT","OFFSET","ON","OPTION","OPTIONS","OR","ORDER","OTHERS","OUTER","OVER","PARSE","PARTITION","PASSWORD","PATH","POOL","PRECEDING","PREPARE","PRIMARY","PRIVATE","PRIVILEGE","PROBE","PROCEDURE","PUBLIC","RANGE","RAW","REALM","REDUCE","RENAME","RESPECT","RETURN","RETURNING","REVOKE","RIGHT","ROLE","ROLLBACK","ROW","ROWS","SATISFIES","SAVEPOINT","SCHEMA","SCOPE","SELECT","SELF","SEMI","SET","SHOW","SOME","START","STATISTICS","STRING","SYSTEM","THEN","TIES","TO","TRAN","TRANSACTION","TRIGGER","TRUE","TRUNCATE","UNBOUNDED","UNDER","UNION","UNIQUE","UNKNOWN","UNNEST","UNSET","UPDATE","UPSERT","USE","USER","USING","VALIDATE","VALUE","VALUED","VALUES","VIA","VIEW","WHEN","WHERE","WHILE","WINDOW","WITH","WITHIN","WORK","XOR"],lN=[],_N=d(["SELECT [ALL | DISTINCT]"]),CN=d(["WITH","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT INTO","VALUES","SET","MERGE INTO","WHEN [NOT] MATCHED THEN","UPDATE SET","INSERT","NEST","UNNEST","RETURNING"]),In=d(["UPDATE","DELETE FROM","SET SCHEMA","ADVISE","ALTER INDEX","BEGIN TRANSACTION","BUILD INDEX","COMMIT TRANSACTION","CREATE COLLECTION","CREATE FUNCTION","CREATE INDEX","CREATE PRIMARY INDEX","CREATE SCOPE","DROP COLLECTION","DROP FUNCTION","DROP INDEX","DROP PRIMARY INDEX","DROP SCOPE","EXECUTE","EXECUTE FUNCTION","EXPLAIN","GRANT","INFER","PREPARE","REVOKE","ROLLBACK TRANSACTION","SAVEPOINT","SET TRANSACTION","UPDATE STATISTICS","UPSERT","LET","SET CURRENT SCHEMA","SHOW","USE [PRIMARY] KEYS"]),cN=d(["UNION [ALL]","EXCEPT [ALL]","INTERSECT [ALL]"]),LN=d(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","INNER JOIN"]),uN=d(["{ROWS | RANGE | GROUPS} BETWEEN"]),pN={name:"n1ql",tokenizerOptions:{reservedSelect:_N,reservedClauses:[...CN,...In],reservedSetOperations:cN,reservedJoins:LN,reservedPhrases:uN,supportsXor:!0,reservedKeywords:NN,reservedDataTypes:lN,reservedFunctionNames:IN,stringTypes:['""-bs',"''-bs"],identTypes:["``"],extraParens:["[]","{}"],paramTypes:{positional:!0,numbered:["$"],named:["$"]},lineCommentTypes:["#","--"],operators:["%","==",":","||"]},formatOptions:{onelineClauses:In}},fN=["ADD","AGENT","AGGREGATE","ALL","ALTER","AND","ANY","ARROW","AS","ASC","AT","ATTRIBUTE","AUTHID","AVG","BEGIN","BETWEEN","BLOCK","BODY","BOTH","BOUND","BULK","BY","BYTE","CALL","CALLING","CASCADE","CASE","CHARSET","CHARSETFORM","CHARSETID","CHECK","CLOSE","CLUSTER","CLUSTERS","COLAUTH","COLLECT","COLUMNS","COMMENT","COMMIT","COMMITTED","COMPILED","COMPRESS","CONNECT","CONSTANT","CONSTRUCTOR","CONTEXT","CONVERT","COUNT","CRASH","CREATE","CURRENT","CURSOR","CUSTOMDATUM","DANGLING","DATA","DAY","DECLARE","DEFAULT","DEFINE","DELETE","DESC","DETERMINISTIC","DISTINCT","DROP","DURATION","ELEMENT","ELSE","ELSIF","EMPTY","END","ESCAPE","EXCEPT","EXCEPTION","EXCEPTIONS","EXCLUSIVE","EXECUTE","EXISTS","EXIT","EXTERNAL","FETCH","FINAL","FIXED","FOR","FORALL","FORCE","FORM","FROM","FUNCTION","GENERAL","GOTO","GRANT","GROUP","HASH","HAVING","HEAP","HIDDEN","HOUR","IDENTIFIED","IF","IMMEDIATE","IN","INCLUDING","INDEX","INDEXES","INDICATOR","INDICES","INFINITE","INSERT","INSTANTIABLE","INTERFACE","INTERSECT","INTERVAL","INTO","INVALIDATE","IS","ISOLATION","JAVA","LANGUAGE","LARGE","LEADING","LENGTH","LEVEL","LIBRARY","LIKE","LIKE2","LIKE4","LIKEC","LIMIT","LIMITED","LOCAL","LOCK","LOOP","MAP","MAX","MAXLEN","MEMBER","MERGE","MIN","MINUS","MINUTE","MOD","MODE","MODIFY","MONTH","MULTISET","NAME","NAN","NATIONAL","NATIVE","NEW","NOCOMPRESS","NOCOPY","NOT","NOWAIT","NULL","OBJECT","OCICOLL","OCIDATE","OCIDATETIME","OCIDURATION","OCIINTERVAL","OCILOBLOCATOR","OCINUMBER","OCIRAW","OCIREF","OCIREFCURSOR","OCIROWID","OCISTRING","OCITYPE","OF","ON","ONLY","OPAQUE","OPEN","OPERATOR","OPTION","OR","ORACLE","ORADATA","ORDER","OVERLAPS","ORGANIZATION","ORLANY","ORLVARY","OTHERS","OUT","OVERRIDING","PACKAGE","PARALLEL_ENABLE","PARAMETER","PARAMETERS","PARTITION","PASCAL","PIPE","PIPELINED","PRAGMA","PRIOR","PRIVATE","PROCEDURE","PUBLIC","RAISE","RANGE","READ","RECORD","REF","REFERENCE","REM","REMAINDER","RENAME","RESOURCE","RESULT","RETURN","RETURNING","REVERSE","REVOKE","ROLLBACK","ROW","SAMPLE","SAVE","SAVEPOINT","SB1","SB2","SB4","SECOND","SEGMENT","SELECT","SELF","SEPARATE","SEQUENCE","SERIALIZABLE","SET","SHARE","SHORT","SIZE","SIZE_T","SOME","SPARSE","SQL","SQLCODE","SQLDATA","SQLNAME","SQLSTATE","STANDARD","START","STATIC","STDDEV","STORED","STRING","STRUCT","STYLE","SUBMULTISET","SUBPARTITION","SUBSTITUTABLE","SUBTYPE","SUM","SYNONYM","TABAUTH","TABLE","TDO","THE","THEN","TIME","TIMEZONE_ABBR","TIMEZONE_HOUR","TIMEZONE_MINUTE","TIMEZONE_REGION","TO","TRAILING","TRANSAC","TRANSACTIONAL","TRUSTED","TYPE","UB1","UB2","UB4","UNDER","UNION","UNIQUE","UNSIGNED","UNTRUSTED","UPDATE","USE","USING","VALIST","VALUE","VALUES","VARIABLE","VARIANCE","VARRAY","VIEW","VIEWS","VOID","WHEN","WHERE","WHILE","WITH","WORK","WRAPPED","WRITE","YEAR","ZONE"],PN=["ARRAY","BFILE_BASE","BINARY","BLOB_BASE","CHAR VARYING","CHAR_BASE","CHAR","CHARACTER VARYING","CHARACTER","CLOB_BASE","DATE_BASE","DATE","DECIMAL","DOUBLE","FLOAT","INT","INTERVAL DAY","INTERVAL YEAR","LONG","NATIONAL CHAR VARYING","NATIONAL CHAR","NATIONAL CHARACTER VARYING","NATIONAL CHARACTER","NCHAR VARYING","NCHAR","NCHAR","NUMBER_BASE","NUMBER","NUMBERIC","NVARCHAR","PRECISION","RAW","TIMESTAMP","UROWID","VARCHAR","VARCHAR2"],DN=["ABS","ACOS","ASIN","ATAN","ATAN2","BITAND","CEIL","COS","COSH","EXP","FLOOR","LN","LOG","MOD","NANVL","POWER","REMAINDER","ROUND","SIGN","SIN","SINH","SQRT","TAN","TANH","TRUNC","WIDTH_BUCKET","CHR","CONCAT","INITCAP","LOWER","LPAD","LTRIM","NLS_INITCAP","NLS_LOWER","NLSSORT","NLS_UPPER","REGEXP_REPLACE","REGEXP_SUBSTR","REPLACE","RPAD","RTRIM","SOUNDEX","SUBSTR","TRANSLATE","TREAT","TRIM","UPPER","NLS_CHARSET_DECL_LEN","NLS_CHARSET_ID","NLS_CHARSET_NAME","ASCII","INSTR","LENGTH","REGEXP_INSTR","ADD_MONTHS","CURRENT_DATE","CURRENT_TIMESTAMP","DBTIMEZONE","EXTRACT","FROM_TZ","LAST_DAY","LOCALTIMESTAMP","MONTHS_BETWEEN","NEW_TIME","NEXT_DAY","NUMTODSINTERVAL","NUMTOYMINTERVAL","ROUND","SESSIONTIMEZONE","SYS_EXTRACT_UTC","SYSDATE","SYSTIMESTAMP","TO_CHAR","TO_TIMESTAMP","TO_TIMESTAMP_TZ","TO_DSINTERVAL","TO_YMINTERVAL","TRUNC","TZ_OFFSET","GREATEST","LEAST","ASCIISTR","BIN_TO_NUM","CAST","CHARTOROWID","COMPOSE","CONVERT","DECOMPOSE","HEXTORAW","NUMTODSINTERVAL","NUMTOYMINTERVAL","RAWTOHEX","RAWTONHEX","ROWIDTOCHAR","ROWIDTONCHAR","SCN_TO_TIMESTAMP","TIMESTAMP_TO_SCN","TO_BINARY_DOUBLE","TO_BINARY_FLOAT","TO_CHAR","TO_CLOB","TO_DATE","TO_DSINTERVAL","TO_LOB","TO_MULTI_BYTE","TO_NCHAR","TO_NCLOB","TO_NUMBER","TO_DSINTERVAL","TO_SINGLE_BYTE","TO_TIMESTAMP","TO_TIMESTAMP_TZ","TO_YMINTERVAL","TO_YMINTERVAL","TRANSLATE","UNISTR","BFILENAME","EMPTY_BLOB,","EMPTY_CLOB","CARDINALITY","COLLECT","POWERMULTISET","POWERMULTISET_BY_CARDINALITY","SET","SYS_CONNECT_BY_PATH","CLUSTER_ID","CLUSTER_PROBABILITY","CLUSTER_SET","FEATURE_ID","FEATURE_SET","FEATURE_VALUE","PREDICTION","PREDICTION_COST","PREDICTION_DETAILS","PREDICTION_PROBABILITY","PREDICTION_SET","APPENDCHILDXML","DELETEXML","DEPTH","EXTRACT","EXISTSNODE","EXTRACTVALUE","INSERTCHILDXML","INSERTXMLBEFORE","PATH","SYS_DBURIGEN","SYS_XMLAGG","SYS_XMLGEN","UPDATEXML","XMLAGG","XMLCDATA","XMLCOLATTVAL","XMLCOMMENT","XMLCONCAT","XMLFOREST","XMLPARSE","XMLPI","XMLQUERY","XMLROOT","XMLSEQUENCE","XMLSERIALIZE","XMLTABLE","XMLTRANSFORM","DECODE","DUMP","ORA_HASH","VSIZE","COALESCE","LNNVL","NULLIF","NVL","NVL2","SYS_CONTEXT","SYS_GUID","SYS_TYPEID","UID","USER","USERENV","AVG","COLLECT","CORR","CORR_S","CORR_K","COUNT","COVAR_POP","COVAR_SAMP","CUME_DIST","DENSE_RANK","FIRST","GROUP_ID","GROUPING","GROUPING_ID","LAST","MAX","MEDIAN","MIN","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","RANK","REGR_SLOPE","REGR_INTERCEPT","REGR_COUNT","REGR_R2","REGR_AVGX","REGR_AVGY","REGR_SXX","REGR_SYY","REGR_SXY","STATS_BINOMIAL_TEST","STATS_CROSSTAB","STATS_F_TEST","STATS_KS_TEST","STATS_MODE","STATS_MW_TEST","STATS_ONE_WAY_ANOVA","STATS_T_TEST_ONE","STATS_T_TEST_PAIRED","STATS_T_TEST_INDEP","STATS_T_TEST_INDEPU","STATS_WSR_TEST","STDDEV","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE","FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTILE","RATIO_TO_REPORT","ROW_NUMBER","DEREF","MAKE_REF","REF","REFTOHEX","VALUE","CV","ITERATION_NUMBER","PRESENTNNV","PRESENTV","PREVIOUS"],dN=d(["SELECT [ALL | DISTINCT | UNIQUE]"]),MN=d(["WITH","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER [SIBLINGS] BY","OFFSET","FETCH {FIRST | NEXT}","FOR UPDATE [OF]","INSERT [INTO | ALL INTO]","VALUES","SET","MERGE [INTO]","WHEN [NOT] MATCHED [THEN]","UPDATE SET","RETURNING"]),Nn=d(["CREATE [GLOBAL TEMPORARY | PRIVATE TEMPORARY | SHARDED | DUPLICATED | IMMUTABLE BLOCKCHAIN | BLOCKCHAIN | IMMUTABLE] TABLE","CREATE [OR REPLACE] [NO FORCE | FORCE] [EDITIONING | EDITIONABLE | EDITIONABLE EDITIONING | NONEDITIONABLE] VIEW","CREATE MATERIALIZED VIEW","UPDATE [ONLY]","DELETE FROM [ONLY]","DROP TABLE","ALTER TABLE","ADD","DROP {COLUMN | UNUSED COLUMNS | COLUMNS CONTINUE}","MODIFY","RENAME TO","RENAME COLUMN","TRUNCATE TABLE","SET SCHEMA","BEGIN","CONNECT BY","DECLARE","EXCEPT","EXCEPTION","LOOP","START WITH"]),UN=d(["UNION [ALL]","EXCEPT","INTERSECT"]),hN=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN","{CROSS | OUTER} APPLY"]),GN=d(["ON {UPDATE | DELETE} [SET NULL]","ON COMMIT","{ROWS | RANGE} BETWEEN"]),gN={name:"plsql",tokenizerOptions:{reservedSelect:dN,reservedClauses:[...MN,...Nn],reservedSetOperations:UN,reservedJoins:hN,reservedPhrases:GN,supportsXor:!0,reservedKeywords:fN,reservedDataTypes:PN,reservedFunctionNames:DN,stringTypes:[{quote:"''-qq",prefixes:["N"]},{quote:"q''",prefixes:["N"]}],identTypes:['""-qq'],identChars:{rest:"$#"},variableTypes:[{regex:"&{1,2}[A-Za-z][A-Za-z0-9_$#]*"}],paramTypes:{numbered:[":"],named:[":"]},paramChars:{},operators:["**",":=","%","~=","^=",">>","<<","=>","@","||"],postProcess:mN},formatOptions:{alwaysDenseOperators:["@"],onelineClauses:Nn}};function mN(e){let E=nt;return e.map(t=>xE.SET(t)&&xE.BY(E)?Ve(ye({},t),{type:"RESERVED_KEYWORD"}):($o(t.type)&&(E=t),t))}var HN=["ABS","ACOS","ACOSD","ACOSH","ASIN","ASIND","ASINH","ATAN","ATAN2","ATAN2D","ATAND","ATANH","CBRT","CEIL","CEILING","COS","COSD","COSH","COT","COTD","DEGREES","DIV","EXP","FACTORIAL","FLOOR","GCD","LCM","LN","LOG","LOG10","MIN_SCALE","MOD","PI","POWER","RADIANS","RANDOM","ROUND","SCALE","SETSEED","SIGN","SIN","SIND","SINH","SQRT","TAN","TAND","TANH","TRIM_SCALE","TRUNC","WIDTH_BUCKET","ABS","ASCII","BIT_LENGTH","BTRIM","CHARACTER_LENGTH","CHAR_LENGTH","CHR","CONCAT","CONCAT_WS","FORMAT","INITCAP","LEFT","LENGTH","LOWER","LPAD","LTRIM","MD5","NORMALIZE","OCTET_LENGTH","OVERLAY","PARSE_IDENT","PG_CLIENT_ENCODING","POSITION","QUOTE_IDENT","QUOTE_LITERAL","QUOTE_NULLABLE","REGEXP_MATCH","REGEXP_MATCHES","REGEXP_REPLACE","REGEXP_SPLIT_TO_ARRAY","REGEXP_SPLIT_TO_TABLE","REPEAT","REPLACE","REVERSE","RIGHT","RPAD","RTRIM","SPLIT_PART","SPRINTF","STARTS_WITH","STRING_AGG","STRING_TO_ARRAY","STRING_TO_TABLE","STRPOS","SUBSTR","SUBSTRING","TO_ASCII","TO_HEX","TRANSLATE","TRIM","UNISTR","UPPER","BIT_COUNT","BIT_LENGTH","BTRIM","CONVERT","CONVERT_FROM","CONVERT_TO","DECODE","ENCODE","GET_BIT","GET_BYTE","LENGTH","LTRIM","MD5","OCTET_LENGTH","OVERLAY","POSITION","RTRIM","SET_BIT","SET_BYTE","SHA224","SHA256","SHA384","SHA512","STRING_AGG","SUBSTR","SUBSTRING","TRIM","BIT_COUNT","BIT_LENGTH","GET_BIT","LENGTH","OCTET_LENGTH","OVERLAY","POSITION","SET_BIT","SUBSTRING","REGEXP_MATCH","REGEXP_MATCHES","REGEXP_REPLACE","REGEXP_SPLIT_TO_ARRAY","REGEXP_SPLIT_TO_TABLE","TO_CHAR","TO_DATE","TO_NUMBER","TO_TIMESTAMP","CLOCK_TIMESTAMP","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE_BIN","DATE_PART","DATE_TRUNC","EXTRACT","ISFINITE","JUSTIFY_DAYS","JUSTIFY_HOURS","JUSTIFY_INTERVAL","LOCALTIME","LOCALTIMESTAMP","MAKE_DATE","MAKE_INTERVAL","MAKE_TIME","MAKE_TIMESTAMP","MAKE_TIMESTAMPTZ","NOW","PG_SLEEP","PG_SLEEP_FOR","PG_SLEEP_UNTIL","STATEMENT_TIMESTAMP","TIMEOFDAY","TO_TIMESTAMP","TRANSACTION_TIMESTAMP","ENUM_FIRST","ENUM_LAST","ENUM_RANGE","AREA","BOUND_BOX","BOX","CENTER","CIRCLE","DIAGONAL","DIAMETER","HEIGHT","ISCLOSED","ISOPEN","LENGTH","LINE","LSEG","NPOINTS","PATH","PCLOSE","POINT","POLYGON","POPEN","RADIUS","SLOPE","WIDTH","ABBREV","BROADCAST","FAMILY","HOST","HOSTMASK","INET_MERGE","INET_SAME_FAMILY","MACADDR8_SET7BIT","MASKLEN","NETMASK","NETWORK","SET_MASKLEN","TEXT","TRUNC","ARRAY_TO_TSVECTOR","GET_CURRENT_TS_CONFIG","JSONB_TO_TSVECTOR","JSON_TO_TSVECTOR","LENGTH","NUMNODE","PHRASETO_TSQUERY","PLAINTO_TSQUERY","QUERYTREE","SETWEIGHT","STRIP","TO_TSQUERY","TO_TSVECTOR","TSQUERY_PHRASE","TSVECTOR_TO_ARRAY","TS_DEBUG","TS_DELETE","TS_FILTER","TS_HEADLINE","TS_LEXIZE","TS_PARSE","TS_RANK","TS_RANK_CD","TS_REWRITE","TS_STAT","TS_TOKEN_TYPE","WEBSEARCH_TO_TSQUERY","UUID","CURSOR_TO_XML","CURSOR_TO_XMLSCHEMA","DATABASE_TO_XML","DATABASE_TO_XMLSCHEMA","DATABASE_TO_XML_AND_XMLSCHEMA","NEXTVAL","QUERY_TO_XML","QUERY_TO_XMLSCHEMA","QUERY_TO_XML_AND_XMLSCHEMA","SCHEMA_TO_XML","SCHEMA_TO_XMLSCHEMA","SCHEMA_TO_XML_AND_XMLSCHEMA","STRING","TABLE_TO_XML","TABLE_TO_XMLSCHEMA","TABLE_TO_XML_AND_XMLSCHEMA","XMLAGG","XMLCOMMENT","XMLCONCAT","XMLELEMENT","XMLEXISTS","XMLFOREST","XMLPARSE","XMLPI","XMLROOT","XMLSERIALIZE","XMLTABLE","XML_IS_WELL_FORMED","XML_IS_WELL_FORMED_CONTENT","XML_IS_WELL_FORMED_DOCUMENT","XPATH","XPATH_EXISTS","ARRAY_TO_JSON","JSONB_AGG","JSONB_ARRAY_ELEMENTS","JSONB_ARRAY_ELEMENTS_TEXT","JSONB_ARRAY_LENGTH","JSONB_BUILD_ARRAY","JSONB_BUILD_OBJECT","JSONB_EACH","JSONB_EACH_TEXT","JSONB_EXTRACT_PATH","JSONB_EXTRACT_PATH_TEXT","JSONB_INSERT","JSONB_OBJECT","JSONB_OBJECT_AGG","JSONB_OBJECT_KEYS","JSONB_PATH_EXISTS","JSONB_PATH_EXISTS_TZ","JSONB_PATH_MATCH","JSONB_PATH_MATCH_TZ","JSONB_PATH_QUERY","JSONB_PATH_QUERY_ARRAY","JSONB_PATH_QUERY_ARRAY_TZ","JSONB_PATH_QUERY_FIRST","JSONB_PATH_QUERY_FIRST_TZ","JSONB_PATH_QUERY_TZ","JSONB_POPULATE_RECORD","JSONB_POPULATE_RECORDSET","JSONB_PRETTY","JSONB_SET","JSONB_SET_LAX","JSONB_STRIP_NULLS","JSONB_TO_RECORD","JSONB_TO_RECORDSET","JSONB_TYPEOF","JSON_AGG","JSON_ARRAY_ELEMENTS","JSON_ARRAY_ELEMENTS_TEXT","JSON_ARRAY_LENGTH","JSON_BUILD_ARRAY","JSON_BUILD_OBJECT","JSON_EACH","JSON_EACH_TEXT","JSON_EXTRACT_PATH","JSON_EXTRACT_PATH_TEXT","JSON_OBJECT","JSON_OBJECT_AGG","JSON_OBJECT_KEYS","JSON_POPULATE_RECORD","JSON_POPULATE_RECORDSET","JSON_STRIP_NULLS","JSON_TO_RECORD","JSON_TO_RECORDSET","JSON_TYPEOF","ROW_TO_JSON","TO_JSON","TO_JSONB","TO_TIMESTAMP","CURRVAL","LASTVAL","NEXTVAL","SETVAL","COALESCE","GREATEST","LEAST","NULLIF","ARRAY_AGG","ARRAY_APPEND","ARRAY_CAT","ARRAY_DIMS","ARRAY_FILL","ARRAY_LENGTH","ARRAY_LOWER","ARRAY_NDIMS","ARRAY_POSITION","ARRAY_POSITIONS","ARRAY_PREPEND","ARRAY_REMOVE","ARRAY_REPLACE","ARRAY_TO_STRING","ARRAY_UPPER","CARDINALITY","STRING_TO_ARRAY","TRIM_ARRAY","UNNEST","ISEMPTY","LOWER","LOWER_INC","LOWER_INF","MULTIRANGE","RANGE_MERGE","UPPER","UPPER_INC","UPPER_INF","ARRAY_AGG","AVG","BIT_AND","BIT_OR","BIT_XOR","BOOL_AND","BOOL_OR","COALESCE","CORR","COUNT","COVAR_POP","COVAR_SAMP","CUME_DIST","DENSE_RANK","EVERY","GROUPING","JSONB_AGG","JSONB_OBJECT_AGG","JSON_AGG","JSON_OBJECT_AGG","MAX","MIN","MODE","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","RANGE_AGG","RANGE_INTERSECT_AGG","RANK","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV","STDDEV_POP","STDDEV_SAMP","STRING_AGG","SUM","TO_JSON","TO_JSONB","VARIANCE","VAR_POP","VAR_SAMP","XMLAGG","CUME_DIST","DENSE_RANK","FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","RANK","ROW_NUMBER","GENERATE_SERIES","GENERATE_SUBSCRIPTS","ACLDEFAULT","ACLEXPLODE","COL_DESCRIPTION","CURRENT_CATALOG","CURRENT_DATABASE","CURRENT_QUERY","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_SCHEMAS","CURRENT_USER","FORMAT_TYPE","HAS_ANY_COLUMN_PRIVILEGE","HAS_COLUMN_PRIVILEGE","HAS_DATABASE_PRIVILEGE","HAS_FOREIGN_DATA_WRAPPER_PRIVILEGE","HAS_FUNCTION_PRIVILEGE","HAS_LANGUAGE_PRIVILEGE","HAS_SCHEMA_PRIVILEGE","HAS_SEQUENCE_PRIVILEGE","HAS_SERVER_PRIVILEGE","HAS_TABLESPACE_PRIVILEGE","HAS_TABLE_PRIVILEGE","HAS_TYPE_PRIVILEGE","INET_CLIENT_ADDR","INET_CLIENT_PORT","INET_SERVER_ADDR","INET_SERVER_PORT","MAKEACLITEM","OBJ_DESCRIPTION","PG_BACKEND_PID","PG_BLOCKING_PIDS","PG_COLLATION_IS_VISIBLE","PG_CONF_LOAD_TIME","PG_CONTROL_CHECKPOINT","PG_CONTROL_INIT","PG_CONTROL_SYSTEM","PG_CONVERSION_IS_VISIBLE","PG_CURRENT_LOGFILE","PG_CURRENT_SNAPSHOT","PG_CURRENT_XACT_ID","PG_CURRENT_XACT_ID_IF_ASSIGNED","PG_DESCRIBE_OBJECT","PG_FUNCTION_IS_VISIBLE","PG_GET_CATALOG_FOREIGN_KEYS","PG_GET_CONSTRAINTDEF","PG_GET_EXPR","PG_GET_FUNCTIONDEF","PG_GET_FUNCTION_ARGUMENTS","PG_GET_FUNCTION_IDENTITY_ARGUMENTS","PG_GET_FUNCTION_RESULT","PG_GET_INDEXDEF","PG_GET_KEYWORDS","PG_GET_OBJECT_ADDRESS","PG_GET_OWNED_SEQUENCE","PG_GET_RULEDEF","PG_GET_SERIAL_SEQUENCE","PG_GET_STATISTICSOBJDEF","PG_GET_TRIGGERDEF","PG_GET_USERBYID","PG_GET_VIEWDEF","PG_HAS_ROLE","PG_IDENTIFY_OBJECT","PG_IDENTIFY_OBJECT_AS_ADDRESS","PG_INDEXAM_HAS_PROPERTY","PG_INDEX_COLUMN_HAS_PROPERTY","PG_INDEX_HAS_PROPERTY","PG_IS_OTHER_TEMP_SCHEMA","PG_JIT_AVAILABLE","PG_LAST_COMMITTED_XACT","PG_LISTENING_CHANNELS","PG_MY_TEMP_SCHEMA","PG_NOTIFICATION_QUEUE_USAGE","PG_OPCLASS_IS_VISIBLE","PG_OPERATOR_IS_VISIBLE","PG_OPFAMILY_IS_VISIBLE","PG_OPTIONS_TO_TABLE","PG_POSTMASTER_START_TIME","PG_SAFE_SNAPSHOT_BLOCKING_PIDS","PG_SNAPSHOT_XIP","PG_SNAPSHOT_XMAX","PG_SNAPSHOT_XMIN","PG_STATISTICS_OBJ_IS_VISIBLE","PG_TABLESPACE_DATABASES","PG_TABLESPACE_LOCATION","PG_TABLE_IS_VISIBLE","PG_TRIGGER_DEPTH","PG_TS_CONFIG_IS_VISIBLE","PG_TS_DICT_IS_VISIBLE","PG_TS_PARSER_IS_VISIBLE","PG_TS_TEMPLATE_IS_VISIBLE","PG_TYPEOF","PG_TYPE_IS_VISIBLE","PG_VISIBLE_IN_SNAPSHOT","PG_XACT_COMMIT_TIMESTAMP","PG_XACT_COMMIT_TIMESTAMP_ORIGIN","PG_XACT_STATUS","PQSERVERVERSION","ROW_SECURITY_ACTIVE","SESSION_USER","SHOBJ_DESCRIPTION","TO_REGCLASS","TO_REGCOLLATION","TO_REGNAMESPACE","TO_REGOPER","TO_REGOPERATOR","TO_REGPROC","TO_REGPROCEDURE","TO_REGROLE","TO_REGTYPE","TXID_CURRENT","TXID_CURRENT_IF_ASSIGNED","TXID_CURRENT_SNAPSHOT","TXID_SNAPSHOT_XIP","TXID_SNAPSHOT_XMAX","TXID_SNAPSHOT_XMIN","TXID_STATUS","TXID_VISIBLE_IN_SNAPSHOT","USER","VERSION","BRIN_DESUMMARIZE_RANGE","BRIN_SUMMARIZE_NEW_VALUES","BRIN_SUMMARIZE_RANGE","CONVERT_FROM","CURRENT_SETTING","GIN_CLEAN_PENDING_LIST","PG_ADVISORY_LOCK","PG_ADVISORY_LOCK_SHARED","PG_ADVISORY_UNLOCK","PG_ADVISORY_UNLOCK_ALL","PG_ADVISORY_UNLOCK_SHARED","PG_ADVISORY_XACT_LOCK","PG_ADVISORY_XACT_LOCK_SHARED","PG_BACKUP_START_TIME","PG_CANCEL_BACKEND","PG_COLLATION_ACTUAL_VERSION","PG_COLUMN_COMPRESSION","PG_COLUMN_SIZE","PG_COPY_LOGICAL_REPLICATION_SLOT","PG_COPY_PHYSICAL_REPLICATION_SLOT","PG_CREATE_LOGICAL_REPLICATION_SLOT","PG_CREATE_PHYSICAL_REPLICATION_SLOT","PG_CREATE_RESTORE_POINT","PG_CURRENT_WAL_FLUSH_LSN","PG_CURRENT_WAL_INSERT_LSN","PG_CURRENT_WAL_LSN","PG_DATABASE_SIZE","PG_DROP_REPLICATION_SLOT","PG_EXPORT_SNAPSHOT","PG_FILENODE_RELATION","PG_GET_WAL_REPLAY_PAUSE_STATE","PG_IMPORT_SYSTEM_COLLATIONS","PG_INDEXES_SIZE","PG_IS_IN_BACKUP","PG_IS_IN_RECOVERY","PG_IS_WAL_REPLAY_PAUSED","PG_LAST_WAL_RECEIVE_LSN","PG_LAST_WAL_REPLAY_LSN","PG_LAST_XACT_REPLAY_TIMESTAMP","PG_LOGICAL_EMIT_MESSAGE","PG_LOGICAL_SLOT_GET_BINARY_CHANGES","PG_LOGICAL_SLOT_GET_CHANGES","PG_LOGICAL_SLOT_PEEK_BINARY_CHANGES","PG_LOGICAL_SLOT_PEEK_CHANGES","PG_LOG_BACKEND_MEMORY_CONTEXTS","PG_LS_ARCHIVE_STATUSDIR","PG_LS_DIR","PG_LS_LOGDIR","PG_LS_TMPDIR","PG_LS_WALDIR","PG_PARTITION_ANCESTORS","PG_PARTITION_ROOT","PG_PARTITION_TREE","PG_PROMOTE","PG_READ_BINARY_FILE","PG_READ_FILE","PG_RELATION_FILENODE","PG_RELATION_FILEPATH","PG_RELATION_SIZE","PG_RELOAD_CONF","PG_REPLICATION_ORIGIN_ADVANCE","PG_REPLICATION_ORIGIN_CREATE","PG_REPLICATION_ORIGIN_DROP","PG_REPLICATION_ORIGIN_OID","PG_REPLICATION_ORIGIN_PROGRESS","PG_REPLICATION_ORIGIN_SESSION_IS_SETUP","PG_REPLICATION_ORIGIN_SESSION_PROGRESS","PG_REPLICATION_ORIGIN_SESSION_RESET","PG_REPLICATION_ORIGIN_SESSION_SETUP","PG_REPLICATION_ORIGIN_XACT_RESET","PG_REPLICATION_ORIGIN_XACT_SETUP","PG_REPLICATION_SLOT_ADVANCE","PG_ROTATE_LOGFILE","PG_SIZE_BYTES","PG_SIZE_PRETTY","PG_START_BACKUP","PG_STAT_FILE","PG_STOP_BACKUP","PG_SWITCH_WAL","PG_TABLESPACE_SIZE","PG_TABLE_SIZE","PG_TERMINATE_BACKEND","PG_TOTAL_RELATION_SIZE","PG_TRY_ADVISORY_LOCK","PG_TRY_ADVISORY_LOCK_SHARED","PG_TRY_ADVISORY_XACT_LOCK","PG_TRY_ADVISORY_XACT_LOCK_SHARED","PG_WALFILE_NAME","PG_WALFILE_NAME_OFFSET","PG_WAL_LSN_DIFF","PG_WAL_REPLAY_PAUSE","PG_WAL_REPLAY_RESUME","SET_CONFIG","SUPPRESS_REDUNDANT_UPDATES_TRIGGER","TSVECTOR_UPDATE_TRIGGER","TSVECTOR_UPDATE_TRIGGER_COLUMN","PG_EVENT_TRIGGER_DDL_COMMANDS","PG_EVENT_TRIGGER_DROPPED_OBJECTS","PG_EVENT_TRIGGER_TABLE_REWRITE_OID","PG_EVENT_TRIGGER_TABLE_REWRITE_REASON","PG_GET_OBJECT_ADDRESS","PG_MCV_LIST_ITEMS","CAST"],yN=["ABORT","ABSOLUTE","ACCESS","ACTION","ADD","ADMIN","AFTER","AGGREGATE","ALL","ALSO","ALTER","ALWAYS","ANALYSE","ANALYZE","AND","ANY","AS","ASC","ASENSITIVE","ASSERTION","ASSIGNMENT","ASYMMETRIC","AT","ATOMIC","ATTACH","ATTRIBUTE","AUTHORIZATION","BACKWARD","BEFORE","BEGIN","BETWEEN","BINARY","BOTH","BREADTH","BY","CACHE","CALL","CALLED","CASCADE","CASCADED","CASE","CAST","CATALOG","CHAIN","CHARACTERISTICS","CHECK","CHECKPOINT","CLASS","CLOSE","CLUSTER","COALESCE","COLLATE","COLLATION","COLUMN","COLUMNS","COMMENT","COMMENTS","COMMIT","COMMITTED","COMPRESSION","CONCURRENTLY","CONFIGURATION","CONFLICT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTENT","CONTINUE","CONVERSION","COPY","COST","CREATE","CROSS","CSV","CUBE","CURRENT","CURRENT_CATALOG","CURRENT_DATE","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CYCLE","DATA","DATABASE","DAY","DEALLOCATE","DEC","DECLARE","DEFAULT","DEFAULTS","DEFERRABLE","DEFERRED","DEFINER","DELETE","DELIMITER","DELIMITERS","DEPENDS","DEPTH","DESC","DETACH","DICTIONARY","DISABLE","DISCARD","DISTINCT","DO","DOCUMENT","DOMAIN","DROP","EACH","ELSE","ENABLE","ENCODING","ENCRYPTED","END","ENUM","ESCAPE","EVENT","EXCEPT","EXCLUDE","EXCLUDING","EXCLUSIVE","EXECUTE","EXISTS","EXPLAIN","EXPRESSION","EXTENSION","EXTERNAL","EXTRACT","FALSE","FAMILY","FETCH","FILTER","FINALIZE","FIRST","FOLLOWING","FOR","FORCE","FOREIGN","FORWARD","FREEZE","FROM","FULL","FUNCTION","FUNCTIONS","GENERATED","GLOBAL","GRANT","GRANTED","GREATEST","GROUP","GROUPING","GROUPS","HANDLER","HAVING","HEADER","HOLD","HOUR","IDENTITY","IF","ILIKE","IMMEDIATE","IMMUTABLE","IMPLICIT","IMPORT","IN","INCLUDE","INCLUDING","INCREMENT","INDEX","INDEXES","INHERIT","INHERITS","INITIALLY","INLINE","INNER","INOUT","INPUT","INSENSITIVE","INSERT","INSTEAD","INTERSECT","INTO","INVOKER","IS","ISNULL","ISOLATION","JOIN","KEY","LANGUAGE","LARGE","LAST","LATERAL","LEADING","LEAKPROOF","LEAST","LEFT","LEVEL","LIKE","LIMIT","LISTEN","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCK","LOCKED","LOGGED","MAPPING","MATCH","MATERIALIZED","MAXVALUE","METHOD","MINUTE","MINVALUE","MODE","MONTH","MOVE","NATIONAL","NATURAL","NCHAR","NEW","NEXT","NFC","NFD","NFKC","NFKD","NO","NONE","NORMALIZE","NORMALIZED","NOT","NOTHING","NOTIFY","NOTNULL","NOWAIT","NULL","NULLIF","NULLS","OBJECT","OF","OFF","OFFSET","OIDS","OLD","ON","ONLY","OPERATOR","OPTION","OPTIONS","OR","ORDER","ORDINALITY","OTHERS","OUT","OUTER","OVER","OVERLAPS","OVERLAY","OVERRIDING","OWNED","OWNER","PARALLEL","PARSER","PARTIAL","PARTITION","PASSING","PASSWORD","PLACING","PLANS","POLICY","POSITION","PRECEDING","PREPARE","PREPARED","PRESERVE","PRIMARY","PRIOR","PRIVILEGES","PROCEDURAL","PROCEDURE","PROCEDURES","PROGRAM","PUBLICATION","QUOTE","RANGE","READ","REASSIGN","RECHECK","RECURSIVE","REF","REFERENCES","REFERENCING","REFRESH","REINDEX","RELATIVE","RENAME","REPEATABLE","REPLACE","REPLICA","RESET","RESTART","RESTRICT","RETURN","RETURNING","RETURNS","REVOKE","RIGHT","ROLE","ROLLBACK","ROLLUP","ROUTINE","ROUTINES","ROW","ROWS","RULE","SAVEPOINT","SCHEMA","SCHEMAS","SCROLL","SEARCH","SECOND","SECURITY","SELECT","SEQUENCE","SEQUENCES","SERIALIZABLE","SERVER","SESSION","SESSION_USER","SET","SETOF","SETS","SHARE","SHOW","SIMILAR","SIMPLE","SKIP","SNAPSHOT","SOME","SQL","STABLE","STANDALONE","START","STATEMENT","STATISTICS","STDIN","STDOUT","STORAGE","STORED","STRICT","STRIP","SUBSCRIPTION","SUBSTRING","SUPPORT","SYMMETRIC","SYSID","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESPACE","TEMP","TEMPLATE","TEMPORARY","THEN","TIES","TO","TRAILING","TRANSACTION","TRANSFORM","TREAT","TRIGGER","TRIM","TRUE","TRUNCATE","TRUSTED","UESCAPE","UNBOUNDED","UNCOMMITTED","UNENCRYPTED","UNION","UNIQUE","UNKNOWN","UNLISTEN","UNLOGGED","UNTIL","UPDATE","USER","USING","VACUUM","VALID","VALIDATE","VALIDATOR","VALUE","VALUES","VARIADIC","VERBOSE","VERSION","VIEW","VIEWS","VOLATILE","WHEN","WHERE","WHITESPACE","WINDOW","WITH","WITHIN","WITHOUT","WORK","WRAPPER","WRITE","XMLATTRIBUTES","XMLCONCAT","XMLELEMENT","XMLEXISTS","XMLFOREST","XMLNAMESPACES","XMLPARSE","XMLPI","XMLROOT","XMLSERIALIZE","XMLTABLE","YEAR","YES"],bN=["ARRAY","BIGINT","BIT","BIT VARYING","BOOL","BOOLEAN","CHAR","CHARACTER","CHARACTER VARYING","DECIMAL","DOUBLE","ENUM","FLOAT","INT","INTEGER","INTERVAL","NUMERIC","PRECISION","REAL","SMALLINT","TEXT","TIME","TIMESTAMP","TIMESTAMPTZ","VARCHAR","XML","ZONE"],BN=d(["SELECT [ALL | DISTINCT]"]),FN=d(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","FOR {UPDATE | NO KEY UPDATE | SHARE | KEY SHARE} [OF]","INSERT INTO","VALUES","SET","RETURNING"]),ln=d(["CREATE [GLOBAL | LOCAL] [TEMPORARY | TEMP | UNLOGGED] TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] [TEMP | TEMPORARY] [RECURSIVE] VIEW","CREATE [MATERIALIZED] VIEW [IF NOT EXISTS]","UPDATE [ONLY]","WHERE CURRENT OF","ON CONFLICT","DELETE FROM [ONLY]","DROP TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS] [ONLY]","ALTER TABLE ALL IN TABLESPACE","RENAME [COLUMN]","RENAME TO","ADD [COLUMN] [IF NOT EXISTS]","DROP [COLUMN] [IF EXISTS]","ALTER [COLUMN]","SET DATA TYPE","{SET | DROP} DEFAULT","{SET | DROP} NOT NULL","TRUNCATE [TABLE] [ONLY]","SET SCHEMA","AFTER","ABORT","ALTER AGGREGATE","ALTER COLLATION","ALTER CONVERSION","ALTER DATABASE","ALTER DEFAULT PRIVILEGES","ALTER DOMAIN","ALTER EVENT TRIGGER","ALTER EXTENSION","ALTER FOREIGN DATA WRAPPER","ALTER FOREIGN TABLE","ALTER FUNCTION","ALTER GROUP","ALTER INDEX","ALTER LANGUAGE","ALTER LARGE OBJECT","ALTER MATERIALIZED VIEW","ALTER OPERATOR","ALTER OPERATOR CLASS","ALTER OPERATOR FAMILY","ALTER POLICY","ALTER PROCEDURE","ALTER PUBLICATION","ALTER ROLE","ALTER ROUTINE","ALTER RULE","ALTER SCHEMA","ALTER SEQUENCE","ALTER SERVER","ALTER STATISTICS","ALTER SUBSCRIPTION","ALTER SYSTEM","ALTER TABLESPACE","ALTER TEXT SEARCH CONFIGURATION","ALTER TEXT SEARCH DICTIONARY","ALTER TEXT SEARCH PARSER","ALTER TEXT SEARCH TEMPLATE","ALTER TRIGGER","ALTER TYPE","ALTER USER","ALTER USER MAPPING","ALTER VIEW","ANALYZE","BEGIN","CALL","CHECKPOINT","CLOSE","CLUSTER","COMMIT","COMMIT PREPARED","COPY","CREATE ACCESS METHOD","CREATE AGGREGATE","CREATE CAST","CREATE COLLATION","CREATE CONVERSION","CREATE DATABASE","CREATE DOMAIN","CREATE EVENT TRIGGER","CREATE EXTENSION","CREATE FOREIGN DATA WRAPPER","CREATE FOREIGN TABLE","CREATE FUNCTION","CREATE GROUP","CREATE INDEX","CREATE LANGUAGE","CREATE OPERATOR","CREATE OPERATOR CLASS","CREATE OPERATOR FAMILY","CREATE POLICY","CREATE PROCEDURE","CREATE PUBLICATION","CREATE ROLE","CREATE RULE","CREATE SCHEMA","CREATE SEQUENCE","CREATE SERVER","CREATE STATISTICS","CREATE SUBSCRIPTION","CREATE TABLESPACE","CREATE TEXT SEARCH CONFIGURATION","CREATE TEXT SEARCH DICTIONARY","CREATE TEXT SEARCH PARSER","CREATE TEXT SEARCH TEMPLATE","CREATE TRANSFORM","CREATE TRIGGER","CREATE TYPE","CREATE USER","CREATE USER MAPPING","DEALLOCATE","DECLARE","DISCARD","DROP ACCESS METHOD","DROP AGGREGATE","DROP CAST","DROP COLLATION","DROP CONVERSION","DROP DATABASE","DROP DOMAIN","DROP EVENT TRIGGER","DROP EXTENSION","DROP FOREIGN DATA WRAPPER","DROP FOREIGN TABLE","DROP FUNCTION","DROP GROUP","DROP INDEX","DROP LANGUAGE","DROP MATERIALIZED VIEW","DROP OPERATOR","DROP OPERATOR CLASS","DROP OPERATOR FAMILY","DROP OWNED","DROP POLICY","DROP PROCEDURE","DROP PUBLICATION","DROP ROLE","DROP ROUTINE","DROP RULE","DROP SCHEMA","DROP SEQUENCE","DROP SERVER","DROP STATISTICS","DROP SUBSCRIPTION","DROP TABLESPACE","DROP TEXT SEARCH CONFIGURATION","DROP TEXT SEARCH DICTIONARY","DROP TEXT SEARCH PARSER","DROP TEXT SEARCH TEMPLATE","DROP TRANSFORM","DROP TRIGGER","DROP TYPE","DROP USER","DROP USER MAPPING","DROP VIEW","EXECUTE","EXPLAIN","FETCH","GRANT","IMPORT FOREIGN SCHEMA","LISTEN","LOAD","LOCK","MOVE","NOTIFY","PREPARE","PREPARE TRANSACTION","REASSIGN OWNED","REFRESH MATERIALIZED VIEW","REINDEX","RELEASE SAVEPOINT","RESET","REVOKE","ROLLBACK","ROLLBACK PREPARED","ROLLBACK TO SAVEPOINT","SAVEPOINT","SECURITY LABEL","SELECT INTO","SET CONSTRAINTS","SET ROLE","SET SESSION AUTHORIZATION","SET TRANSACTION","SHOW","START TRANSACTION","UNLISTEN","VACUUM"]),vN=d(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),YN=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),VN=d(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE | GROUPS} BETWEEN","[TIMESTAMP | TIME] {WITH | WITHOUT} TIME ZONE","IS [NOT] DISTINCT FROM"]),xN={name:"postgresql",tokenizerOptions:{reservedSelect:BN,reservedClauses:[...FN,...ln],reservedSetOperations:vN,reservedJoins:YN,reservedPhrases:VN,reservedKeywords:yN,reservedDataTypes:bN,reservedFunctionNames:HN,nestedBlockComments:!0,extraParens:["[]"],stringTypes:["$$",{quote:"''-qq",prefixes:["U&"]},{quote:"''-qq-bs",prefixes:["E"],requirePrefix:!0},{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:[{quote:'""-qq',prefixes:["U&"]}],identChars:{rest:"$"},paramTypes:{numbered:["$"]},operators:["%","^","|/","||/","@",":=","&","|","#","~","<<",">>","~>~","~<~","~>=~","~<=~","@-@","@@","##","<->","&&","&<","&>","<<|","&<|","|>>","|&>","<^","^>","?#","?-","?|","?-|","?||","@>","<@","~=","?","@?","?&","->","->>","#>","#>>","#-","=>",">>=","<<=","~~","~~*","!~~","!~~*","~","~*","!~","!~*","-|-","||","@@@","!!","<%","%>","<<%","%>>","<<->","<->>","<<<->","<->>>","::",":"]},formatOptions:{alwaysDenseOperators:["::",":"],onelineClauses:ln}},wN=["ANY_VALUE","APPROXIMATE PERCENTILE_DISC","AVG","COUNT","LISTAGG","MAX","MEDIAN","MIN","PERCENTILE_CONT","STDDEV_SAMP","STDDEV_POP","SUM","VAR_SAMP","VAR_POP","array","array_concat","array_flatten","get_array_length","split_to_array","subarray","BIT_AND","BIT_OR","BOOL_AND","BOOL_OR","COALESCE","DECODE","GREATEST","LEAST","NVL","NVL2","NULLIF","ADD_MONTHS","AT TIME ZONE","CONVERT_TIMEZONE","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE_CMP","DATE_CMP_TIMESTAMP","DATE_CMP_TIMESTAMPTZ","DATE_PART_YEAR","DATEADD","DATEDIFF","DATE_PART","DATE_TRUNC","EXTRACT","GETDATE","INTERVAL_CMP","LAST_DAY","MONTHS_BETWEEN","NEXT_DAY","SYSDATE","TIMEOFDAY","TIMESTAMP_CMP","TIMESTAMP_CMP_DATE","TIMESTAMP_CMP_TIMESTAMPTZ","TIMESTAMPTZ_CMP","TIMESTAMPTZ_CMP_DATE","TIMESTAMPTZ_CMP_TIMESTAMP","TIMEZONE","TO_TIMESTAMP","TRUNC","AddBBox","DropBBox","GeometryType","ST_AddPoint","ST_Angle","ST_Area","ST_AsBinary","ST_AsEWKB","ST_AsEWKT","ST_AsGeoJSON","ST_AsText","ST_Azimuth","ST_Boundary","ST_Collect","ST_Contains","ST_ContainsProperly","ST_ConvexHull","ST_CoveredBy","ST_Covers","ST_Crosses","ST_Dimension","ST_Disjoint","ST_Distance","ST_DistanceSphere","ST_DWithin","ST_EndPoint","ST_Envelope","ST_Equals","ST_ExteriorRing","ST_Force2D","ST_Force3D","ST_Force3DM","ST_Force3DZ","ST_Force4D","ST_GeometryN","ST_GeometryType","ST_GeomFromEWKB","ST_GeomFromEWKT","ST_GeomFromText","ST_GeomFromWKB","ST_InteriorRingN","ST_Intersects","ST_IsPolygonCCW","ST_IsPolygonCW","ST_IsClosed","ST_IsCollection","ST_IsEmpty","ST_IsSimple","ST_IsValid","ST_Length","ST_LengthSphere","ST_Length2D","ST_LineFromMultiPoint","ST_LineInterpolatePoint","ST_M","ST_MakeEnvelope","ST_MakeLine","ST_MakePoint","ST_MakePolygon","ST_MemSize","ST_MMax","ST_MMin","ST_Multi","ST_NDims","ST_NPoints","ST_NRings","ST_NumGeometries","ST_NumInteriorRings","ST_NumPoints","ST_Perimeter","ST_Perimeter2D","ST_Point","ST_PointN","ST_Points","ST_Polygon","ST_RemovePoint","ST_Reverse","ST_SetPoint","ST_SetSRID","ST_Simplify","ST_SRID","ST_StartPoint","ST_Touches","ST_Within","ST_X","ST_XMax","ST_XMin","ST_Y","ST_YMax","ST_YMin","ST_Z","ST_ZMax","ST_ZMin","SupportsBBox","CHECKSUM","FUNC_SHA1","FNV_HASH","MD5","SHA","SHA1","SHA2","HLL","HLL_CREATE_SKETCH","HLL_CARDINALITY","HLL_COMBINE","IS_VALID_JSON","IS_VALID_JSON_ARRAY","JSON_ARRAY_LENGTH","JSON_EXTRACT_ARRAY_ELEMENT_TEXT","JSON_EXTRACT_PATH_TEXT","JSON_PARSE","JSON_SERIALIZE","ABS","ACOS","ASIN","ATAN","ATAN2","CBRT","CEILING","CEIL","COS","COT","DEGREES","DEXP","DLOG1","DLOG10","EXP","FLOOR","LN","LOG","MOD","PI","POWER","RADIANS","RANDOM","ROUND","SIN","SIGN","SQRT","TAN","TO_HEX","TRUNC","EXPLAIN_MODEL","ASCII","BPCHARCMP","BTRIM","BTTEXT_PATTERN_CMP","CHAR_LENGTH","CHARACTER_LENGTH","CHARINDEX","CHR","COLLATE","CONCAT","CRC32","DIFFERENCE","INITCAP","LEFT","RIGHT","LEN","LENGTH","LOWER","LPAD","RPAD","LTRIM","OCTETINDEX","OCTET_LENGTH","POSITION","QUOTE_IDENT","QUOTE_LITERAL","REGEXP_COUNT","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","REPEAT","REPLACE","REPLICATE","REVERSE","RTRIM","SOUNDEX","SPLIT_PART","STRPOS","STRTOL","SUBSTRING","TEXTLEN","TRANSLATE","TRIM","UPPER","decimal_precision","decimal_scale","is_array","is_bigint","is_boolean","is_char","is_decimal","is_float","is_integer","is_object","is_scalar","is_smallint","is_varchar","json_typeof","AVG","COUNT","CUME_DIST","DENSE_RANK","FIRST_VALUE","LAST_VALUE","LAG","LEAD","LISTAGG","MAX","MEDIAN","MIN","NTH_VALUE","NTILE","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","RANK","RATIO_TO_REPORT","ROW_NUMBER","STDDEV_SAMP","STDDEV_POP","SUM","VAR_SAMP","VAR_POP","CAST","CONVERT","TO_CHAR","TO_DATE","TO_NUMBER","TEXT_TO_INT_ALT","TEXT_TO_NUMERIC_ALT","CHANGE_QUERY_PRIORITY","CHANGE_SESSION_PRIORITY","CHANGE_USER_PRIORITY","CURRENT_SETTING","PG_CANCEL_BACKEND","PG_TERMINATE_BACKEND","REBOOT_CLUSTER","SET_CONFIG","CURRENT_AWS_ACCOUNT","CURRENT_DATABASE","CURRENT_NAMESPACE","CURRENT_SCHEMA","CURRENT_SCHEMAS","CURRENT_USER","CURRENT_USER_ID","HAS_ASSUMEROLE_PRIVILEGE","HAS_DATABASE_PRIVILEGE","HAS_SCHEMA_PRIVILEGE","HAS_TABLE_PRIVILEGE","PG_BACKEND_PID","PG_GET_COLS","PG_GET_GRANTEE_BY_IAM_ROLE","PG_GET_IAM_ROLE_BY_USER","PG_GET_LATE_BINDING_VIEW_COLS","PG_LAST_COPY_COUNT","PG_LAST_COPY_ID","PG_LAST_UNLOAD_ID","PG_LAST_QUERY_ID","PG_LAST_UNLOAD_COUNT","SESSION_USER","SLICE_NUM","USER","VERSION"],WN=["AES128","AES256","ALL","ALLOWOVERWRITE","ANY","AS","ASC","AUTHORIZATION","BACKUP","BETWEEN","BINARY","BOTH","CHECK","COLUMN","CONSTRAINT","CREATE","CROSS","DEFAULT","DEFERRABLE","DEFLATE","DEFRAG","DESC","DISABLE","DISTINCT","DO","ENABLE","ENCODE","ENCRYPT","ENCRYPTION","EXPLICIT","FALSE","FOR","FOREIGN","FREEZE","FROM","FULL","GLOBALDICT256","GLOBALDICT64K","GROUP","IDENTITY","IGNORE","ILIKE","IN","INITIALLY","INNER","INTO","IS","ISNULL","LANGUAGE","LEADING","LIKE","LIMIT","LOCALTIME","LOCALTIMESTAMP","LUN","LUNS","MINUS","NATURAL","NEW","NOT","NOTNULL","NULL","NULLS","OFF","OFFLINE","OFFSET","OID","OLD","ON","ONLY","OPEN","ORDER","OUTER","OVERLAPS","PARALLEL","PARTITION","PERCENT","PERMISSIONS","PLACING","PRIMARY","RECOVER","REFERENCES","REJECTLOG","RESORT","RESPECT","RESTORE","SIMILAR","SNAPSHOT","SOME","SYSTEM","TABLE","TAG","TDES","THEN","TIMESTAMP","TO","TOP","TRAILING","TRUE","UNIQUE","USING","VERBOSE","WALLET","WITHOUT","ACCEPTANYDATE","ACCEPTINVCHARS","BLANKSASNULL","DATEFORMAT","EMPTYASNULL","ENCODING","ESCAPE","EXPLICIT_IDS","FILLRECORD","IGNOREBLANKLINES","IGNOREHEADER","REMOVEQUOTES","ROUNDEC","TIMEFORMAT","TRIMBLANKS","TRUNCATECOLUMNS","COMPROWS","COMPUPDATE","MAXERROR","NOLOAD","STATUPDATE","FORMAT","CSV","DELIMITER","FIXEDWIDTH","SHAPEFILE","AVRO","JSON","PARQUET","ORC","ACCESS_KEY_ID","CREDENTIALS","ENCRYPTED","IAM_ROLE","MASTER_SYMMETRIC_KEY","SECRET_ACCESS_KEY","SESSION_TOKEN","BZIP2","GZIP","LZOP","ZSTD","MANIFEST","READRATIO","REGION","SSH","RAW","AZ64","BYTEDICT","DELTA","DELTA32K","LZO","MOSTLY8","MOSTLY16","MOSTLY32","RUNLENGTH","TEXT255","TEXT32K","CATALOG_ROLE","SECRET_ARN","EXTERNAL","AUTO","EVEN","KEY","PREDICATE","COMPRESSION"],XN=["ARRAY","BIGINT","BPCHAR","CHAR","CHARACTER VARYING","CHARACTER","DECIMAL","INT","INT2","INT4","INT8","INTEGER","NCHAR","NUMERIC","NVARCHAR","SMALLINT","TEXT","VARBYTE","VARCHAR"],$N=d(["SELECT [ALL | DISTINCT]"]),KN=d(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT INTO","VALUES","SET"]),_n=d(["CREATE [TEMPORARY | TEMP | LOCAL TEMPORARY | LOCAL TEMP] TABLE [IF NOT EXISTS]","CREATE [OR REPLACE | MATERIALIZED] VIEW","UPDATE","DELETE [FROM]","DROP TABLE [IF EXISTS]","ALTER TABLE","ALTER TABLE APPEND","ADD [COLUMN]","DROP [COLUMN]","RENAME TO","RENAME COLUMN","ALTER COLUMN","TYPE","ENCODE","TRUNCATE [TABLE]","ABORT","ALTER DATABASE","ALTER DATASHARE","ALTER DEFAULT PRIVILEGES","ALTER GROUP","ALTER MATERIALIZED VIEW","ALTER PROCEDURE","ALTER SCHEMA","ALTER USER","ANALYSE","ANALYZE","ANALYSE COMPRESSION","ANALYZE COMPRESSION","BEGIN","CALL","CANCEL","CLOSE","COMMIT","COPY","CREATE DATABASE","CREATE DATASHARE","CREATE EXTERNAL FUNCTION","CREATE EXTERNAL SCHEMA","CREATE EXTERNAL TABLE","CREATE FUNCTION","CREATE GROUP","CREATE LIBRARY","CREATE MODEL","CREATE PROCEDURE","CREATE SCHEMA","CREATE USER","DEALLOCATE","DECLARE","DESC DATASHARE","DROP DATABASE","DROP DATASHARE","DROP FUNCTION","DROP GROUP","DROP LIBRARY","DROP MODEL","DROP MATERIALIZED VIEW","DROP PROCEDURE","DROP SCHEMA","DROP USER","DROP VIEW","DROP","EXECUTE","EXPLAIN","FETCH","GRANT","LOCK","PREPARE","REFRESH MATERIALIZED VIEW","RESET","REVOKE","ROLLBACK","SELECT INTO","SET SESSION AUTHORIZATION","SET SESSION CHARACTERISTICS","SHOW","SHOW EXTERNAL TABLE","SHOW MODEL","SHOW DATASHARES","SHOW PROCEDURE","SHOW TABLE","SHOW VIEW","START TRANSACTION","UNLOAD","VACUUM"]),JN=d(["UNION [ALL]","EXCEPT","INTERSECT","MINUS"]),kN=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),jN=d(["NULL AS","DATA CATALOG","HIVE METASTORE","{ROWS | RANGE} BETWEEN"]),qN={name:"redshift",tokenizerOptions:{reservedSelect:$N,reservedClauses:[...KN,..._n],reservedSetOperations:JN,reservedJoins:kN,reservedPhrases:jN,reservedKeywords:WN,reservedDataTypes:XN,reservedFunctionNames:wN,stringTypes:["''-qq"],identTypes:['""-qq'],identChars:{first:"#"},paramTypes:{numbered:["$"]},operators:["^","%","@","|/","||/","&","|","~","<<",">>","||","::"]},formatOptions:{alwaysDenseOperators:["::"],onelineClauses:_n}},QN=["ADD","AFTER","ALL","ALTER","ANALYZE","AND","ANTI","ANY","ARCHIVE","AS","ASC","AT","AUTHORIZATION","BETWEEN","BOTH","BUCKET","BUCKETS","BY","CACHE","CASCADE","CAST","CHANGE","CHECK","CLEAR","CLUSTER","CLUSTERED","CODEGEN","COLLATE","COLLECTION","COLUMN","COLUMNS","COMMENT","COMMIT","COMPACT","COMPACTIONS","COMPUTE","CONCATENATE","CONSTRAINT","COST","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","DATA","DATABASE","DATABASES","DAY","DBPROPERTIES","DEFINED","DELETE","DELIMITED","DESC","DESCRIBE","DFS","DIRECTORIES","DIRECTORY","DISTINCT","DISTRIBUTE","DIV","DROP","ESCAPE","ESCAPED","EXCEPT","EXCHANGE","EXISTS","EXPORT","EXTENDED","EXTERNAL","EXTRACT","FALSE","FETCH","FIELDS","FILTER","FILEFORMAT","FIRST","FIRST_VALUE","FOLLOWING","FOR","FOREIGN","FORMAT","FORMATTED","FULL","FUNCTION","FUNCTIONS","GLOBAL","GRANT","GROUP","GROUPING","HOUR","IF","IGNORE","IMPORT","IN","INDEX","INDEXES","INNER","INPATH","INPUTFORMAT","INTERSECT","INTO","IS","ITEMS","KEYS","LAST","LAST_VALUE","LATERAL","LAZY","LEADING","LEFT","LIKE","LINES","LIST","LOCAL","LOCATION","LOCK","LOCKS","LOGICAL","MACRO","MATCHED","MERGE","MINUTE","MONTH","MSCK","NAMESPACE","NAMESPACES","NATURAL","NO","NOT","NULL","NULLS","OF","ONLY","OPTION","OPTIONS","OR","ORDER","OUT","OUTER","OUTPUTFORMAT","OVER","OVERLAPS","OVERLAY","OVERWRITE","OWNER","PARTITION","PARTITIONED","PARTITIONS","PERCENT","PLACING","POSITION","PRECEDING","PRIMARY","PRINCIPALS","PROPERTIES","PURGE","QUERY","RANGE","RECORDREADER","RECORDWRITER","RECOVER","REDUCE","REFERENCES","RENAME","REPAIR","REPLACE","RESPECT","RESTRICT","REVOKE","RIGHT","RLIKE","ROLE","ROLES","ROLLBACK","ROLLUP","ROW","ROWS","SCHEMA","SECOND","SELECT","SEMI","SEPARATED","SERDE","SERDEPROPERTIES","SESSION_USER","SETS","SHOW","SKEWED","SOME","SORT","SORTED","START","STATISTICS","STORED","STRATIFY","SUBSTR","SUBSTRING","TABLE","TABLES","TBLPROPERTIES","TEMPORARY","TERMINATED","THEN","TO","TOUCH","TRAILING","TRANSACTION","TRANSACTIONS","TRIM","TRUE","TRUNCATE","UNARCHIVE","UNBOUNDED","UNCACHE","UNIQUE","UNKNOWN","UNLOCK","UNSET","USE","USER","USING","VIEW","WINDOW","YEAR","ANALYSE","ARRAY_ZIP","COALESCE","CONTAINS","CONVERT","DAYS","DAY_HOUR","DAY_MINUTE","DAY_SECOND","DECODE","DEFAULT","DISTINCTROW","ENCODE","EXPLODE","EXPLODE_OUTER","FIXED","GREATEST","GROUP_CONCAT","HOURS","HOUR_MINUTE","HOUR_SECOND","IFNULL","LEAST","LEVEL","MINUTE_SECOND","NULLIF","OFFSET","ON","OPTIMIZE","REGEXP","SEPARATOR","SIZE","TYPE","TYPES","UNSIGNED","VARIABLES","YEAR_MONTH"],ZN=["ARRAY","BIGINT","BINARY","BOOLEAN","BYTE","CHAR","DATE","DEC","DECIMAL","DOUBLE","FLOAT","INT","INTEGER","INTERVAL","LONG","MAP","NUMERIC","REAL","SHORT","SMALLINT","STRING","STRUCT","TIMESTAMP_LTZ","TIMESTAMP_NTZ","TIMESTAMP","TINYINT","VARCHAR"],zN=["APPROX_COUNT_DISTINCT","APPROX_PERCENTILE","AVG","BIT_AND","BIT_OR","BIT_XOR","BOOL_AND","BOOL_OR","COLLECT_LIST","COLLECT_SET","CORR","COUNT","COUNT","COUNT","COUNT_IF","COUNT_MIN_SKETCH","COVAR_POP","COVAR_SAMP","EVERY","FIRST","FIRST_VALUE","GROUPING","GROUPING_ID","KURTOSIS","LAST","LAST_VALUE","MAX","MAX_BY","MEAN","MIN","MIN_BY","PERCENTILE","PERCENTILE","PERCENTILE_APPROX","SKEWNESS","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE","CUME_DIST","DENSE_RANK","LAG","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","RANK","ROW_NUMBER","ARRAY","ARRAY_CONTAINS","ARRAY_DISTINCT","ARRAY_EXCEPT","ARRAY_INTERSECT","ARRAY_JOIN","ARRAY_MAX","ARRAY_MIN","ARRAY_POSITION","ARRAY_REMOVE","ARRAY_REPEAT","ARRAY_UNION","ARRAYS_OVERLAP","ARRAYS_ZIP","FLATTEN","SEQUENCE","SHUFFLE","SLICE","SORT_ARRAY","ELEMENT_AT","ELEMENT_AT","MAP_CONCAT","MAP_ENTRIES","MAP_FROM_ARRAYS","MAP_FROM_ENTRIES","MAP_KEYS","MAP_VALUES","STR_TO_MAP","ADD_MONTHS","CURRENT_DATE","CURRENT_DATE","CURRENT_TIMESTAMP","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","DATE_ADD","DATE_FORMAT","DATE_FROM_UNIX_DATE","DATE_PART","DATE_SUB","DATE_TRUNC","DATEDIFF","DAY","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","EXTRACT","FROM_UNIXTIME","FROM_UTC_TIMESTAMP","HOUR","LAST_DAY","MAKE_DATE","MAKE_DT_INTERVAL","MAKE_INTERVAL","MAKE_TIMESTAMP","MAKE_YM_INTERVAL","MINUTE","MONTH","MONTHS_BETWEEN","NEXT_DAY","NOW","QUARTER","SECOND","SESSION_WINDOW","TIMESTAMP_MICROS","TIMESTAMP_MILLIS","TIMESTAMP_SECONDS","TO_DATE","TO_TIMESTAMP","TO_UNIX_TIMESTAMP","TO_UTC_TIMESTAMP","TRUNC","UNIX_DATE","UNIX_MICROS","UNIX_MILLIS","UNIX_SECONDS","UNIX_TIMESTAMP","WEEKDAY","WEEKOFYEAR","WINDOW","YEAR","FROM_JSON","GET_JSON_OBJECT","JSON_ARRAY_LENGTH","JSON_OBJECT_KEYS","JSON_TUPLE","SCHEMA_OF_JSON","TO_JSON","ABS","ACOS","ACOSH","AGGREGATE","ARRAY_SORT","ASCII","ASIN","ASINH","ASSERT_TRUE","ATAN","ATAN2","ATANH","BASE64","BIN","BIT_COUNT","BIT_GET","BIT_LENGTH","BROUND","BTRIM","CARDINALITY","CBRT","CEIL","CEILING","CHAR_LENGTH","CHARACTER_LENGTH","CHR","CONCAT","CONCAT_WS","CONV","COS","COSH","COT","CRC32","CURRENT_CATALOG","CURRENT_DATABASE","CURRENT_USER","DEGREES","ELT","EXP","EXPM1","FACTORIAL","FIND_IN_SET","FLOOR","FORALL","FORMAT_NUMBER","FORMAT_STRING","FROM_CSV","GETBIT","HASH","HEX","HYPOT","INITCAP","INLINE","INLINE_OUTER","INPUT_FILE_BLOCK_LENGTH","INPUT_FILE_BLOCK_START","INPUT_FILE_NAME","INSTR","ISNAN","ISNOTNULL","ISNULL","JAVA_METHOD","LCASE","LEFT","LENGTH","LEVENSHTEIN","LN","LOCATE","LOG","LOG10","LOG1P","LOG2","LOWER","LPAD","LTRIM","MAP_FILTER","MAP_ZIP_WITH","MD5","MOD","MONOTONICALLY_INCREASING_ID","NAMED_STRUCT","NANVL","NEGATIVE","NVL","NVL2","OCTET_LENGTH","OVERLAY","PARSE_URL","PI","PMOD","POSEXPLODE","POSEXPLODE_OUTER","POSITION","POSITIVE","POW","POWER","PRINTF","RADIANS","RAISE_ERROR","RAND","RANDN","RANDOM","REFLECT","REGEXP_EXTRACT","REGEXP_EXTRACT_ALL","REGEXP_LIKE","REGEXP_REPLACE","REPEAT","REPLACE","REVERSE","RIGHT","RINT","ROUND","RPAD","RTRIM","SCHEMA_OF_CSV","SENTENCES","SHA","SHA1","SHA2","SHIFTLEFT","SHIFTRIGHT","SHIFTRIGHTUNSIGNED","SIGN","SIGNUM","SIN","SINH","SOUNDEX","SPACE","SPARK_PARTITION_ID","SPLIT","SQRT","STACK","SUBSTR","SUBSTRING","SUBSTRING_INDEX","TAN","TANH","TO_CSV","TRANSFORM_KEYS","TRANSFORM_VALUES","TRANSLATE","TRIM","TRY_ADD","TRY_DIVIDE","TYPEOF","UCASE","UNBASE64","UNHEX","UPPER","UUID","VERSION","WIDTH_BUCKET","XPATH","XPATH_BOOLEAN","XPATH_DOUBLE","XPATH_FLOAT","XPATH_INT","XPATH_LONG","XPATH_NUMBER","XPATH_SHORT","XPATH_STRING","XXHASH64","ZIP_WITH","CAST","COALESCE","NULLIF"],el=d(["SELECT [ALL | DISTINCT]"]),El=d(["WITH","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","SORT BY","CLUSTER BY","DISTRIBUTE BY","LIMIT","INSERT [INTO | OVERWRITE] [TABLE]","VALUES","INSERT OVERWRITE [LOCAL] DIRECTORY","LOAD DATA [LOCAL] INPATH","[OVERWRITE] INTO TABLE"]),Cn=d(["CREATE [EXTERNAL] TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] [GLOBAL TEMPORARY | TEMPORARY] VIEW [IF NOT EXISTS]","DROP TABLE [IF EXISTS]","ALTER TABLE","ADD COLUMNS","DROP {COLUMN | COLUMNS}","RENAME TO","RENAME COLUMN","ALTER COLUMN","TRUNCATE TABLE","LATERAL VIEW","ALTER DATABASE","ALTER VIEW","CREATE DATABASE","CREATE FUNCTION","DROP DATABASE","DROP FUNCTION","DROP VIEW","REPAIR TABLE","USE DATABASE","TABLESAMPLE","PIVOT","TRANSFORM","EXPLAIN","ADD FILE","ADD JAR","ANALYZE TABLE","CACHE TABLE","CLEAR CACHE","DESCRIBE DATABASE","DESCRIBE FUNCTION","DESCRIBE QUERY","DESCRIBE TABLE","LIST FILE","LIST JAR","REFRESH","REFRESH TABLE","REFRESH FUNCTION","RESET","SHOW COLUMNS","SHOW CREATE TABLE","SHOW DATABASES","SHOW FUNCTIONS","SHOW PARTITIONS","SHOW TABLE EXTENDED","SHOW TABLES","SHOW TBLPROPERTIES","SHOW VIEWS","UNCACHE TABLE"]),tl=d(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),Tl=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN","[LEFT] {ANTI | SEMI} JOIN","NATURAL [LEFT] {ANTI | SEMI} JOIN"]),rl=d(["ON DELETE","ON UPDATE","CURRENT ROW","{ROWS | RANGE} BETWEEN"]),sl={name:"spark",tokenizerOptions:{reservedSelect:el,reservedClauses:[...El,...Cn],reservedSetOperations:tl,reservedJoins:Tl,reservedPhrases:rl,supportsXor:!0,reservedKeywords:QN,reservedDataTypes:ZN,reservedFunctionNames:zN,extraParens:["[]"],stringTypes:["''-bs",'""-bs',{quote:"''-raw",prefixes:["R","X"],requirePrefix:!0},{quote:'""-raw',prefixes:["R","X"],requirePrefix:!0}],identTypes:["``"],variableTypes:[{quote:"{}",prefixes:["$"],requirePrefix:!0}],operators:["%","~","^","|","&","<=>","==","!","||","->"],postProcess:nl},formatOptions:{onelineClauses:Cn}};function nl(e){return e.map((E,t)=>{const T=e[t-1]||nt,r=e[t+1]||nt;return xE.WINDOW(E)&&r.type==="OPEN_PAREN"?Ve(ye({},E),{type:"RESERVED_FUNCTION_NAME"}):E.text==="ITEMS"&&E.type==="RESERVED_KEYWORD"&&!(T.text==="COLLECTION"&&r.text==="TERMINATED")?Ve(ye({},E),{type:"IDENTIFIER",text:E.raw}):E})}var Rl=["ABS","CHANGES","CHAR","COALESCE","FORMAT","GLOB","HEX","IFNULL","IIF","INSTR","LAST_INSERT_ROWID","LENGTH","LIKE","LIKELIHOOD","LIKELY","LOAD_EXTENSION","LOWER","LTRIM","NULLIF","PRINTF","QUOTE","RANDOM","RANDOMBLOB","REPLACE","ROUND","RTRIM","SIGN","SOUNDEX","SQLITE_COMPILEOPTION_GET","SQLITE_COMPILEOPTION_USED","SQLITE_OFFSET","SQLITE_SOURCE_ID","SQLITE_VERSION","SUBSTR","SUBSTRING","TOTAL_CHANGES","TRIM","TYPEOF","UNICODE","UNLIKELY","UPPER","ZEROBLOB","AVG","COUNT","GROUP_CONCAT","MAX","MIN","SUM","TOTAL","DATE","TIME","DATETIME","JULIANDAY","UNIXEPOCH","STRFTIME","row_number","rank","dense_rank","percent_rank","cume_dist","ntile","lag","lead","first_value","last_value","nth_value","ACOS","ACOSH","ASIN","ASINH","ATAN","ATAN2","ATANH","CEIL","CEILING","COS","COSH","DEGREES","EXP","FLOOR","LN","LOG","LOG","LOG10","LOG2","MOD","PI","POW","POWER","RADIANS","SIN","SINH","SQRT","TAN","TANH","TRUNC","JSON","JSON_ARRAY","JSON_ARRAY_LENGTH","JSON_ARRAY_LENGTH","JSON_EXTRACT","JSON_INSERT","JSON_OBJECT","JSON_PATCH","JSON_REMOVE","JSON_REPLACE","JSON_SET","JSON_TYPE","JSON_TYPE","JSON_VALID","JSON_QUOTE","JSON_GROUP_ARRAY","JSON_GROUP_OBJECT","JSON_EACH","JSON_TREE","CAST"],ol=["ABORT","ACTION","ADD","AFTER","ALL","ALTER","AND","ARE","ALWAYS","ANALYZE","AS","ASC","ATTACH","AUTOINCREMENT","BEFORE","BEGIN","BETWEEN","BY","CASCADE","CASE","CAST","CHECK","COLLATE","COLUMN","COMMIT","CONFLICT","CONSTRAINT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATABASE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DESC","DETACH","DISTINCT","DO","DROP","EACH","ELSE","END","ESCAPE","EXCEPT","EXCLUDE","EXCLUSIVE","EXISTS","EXPLAIN","FAIL","FILTER","FIRST","FOLLOWING","FOR","FOREIGN","FROM","FULL","GENERATED","GLOB","GROUP","GROUPS","HAVING","IF","IGNORE","IMMEDIATE","IN","INDEX","INDEXED","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","KEY","LAST","LEFT","LIKE","LIMIT","MATCH","MATERIALIZED","NATURAL","NO","NOT","NOTHING","NOTNULL","NULL","NULLS","OF","OFFSET","ON","ONLY","OPEN","OR","ORDER","OTHERS","OUTER","OVER","PARTITION","PLAN","PRAGMA","PRECEDING","PRIMARY","QUERY","RAISE","RANGE","RECURSIVE","REFERENCES","REGEXP","REINDEX","RELEASE","RENAME","REPLACE","RESTRICT","RETURNING","RIGHT","ROLLBACK","ROW","ROWS","SAVEPOINT","SELECT","SET","TABLE","TEMP","TEMPORARY","THEN","TIES","TO","TRANSACTION","TRIGGER","UNBOUNDED","UNION","UNIQUE","UPDATE","USING","VACUUM","VALUES","VIEW","VIRTUAL","WHEN","WHERE","WINDOW","WITH","WITHOUT"],Al=["ANY","ARRAY","BLOB","CHARACTER","DECIMAL","INT","INTEGER","NATIVE CHARACTER","NCHAR","NUMERIC","NVARCHAR","REAL","TEXT","VARCHAR","VARYING CHARACTER"],il=d(["SELECT [ALL | DISTINCT]"]),Sl=d(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT [OR ABORT | OR FAIL | OR IGNORE | OR REPLACE | OR ROLLBACK] INTO","REPLACE INTO","VALUES","SET"]),cn=d(["CREATE [TEMPORARY | TEMP] TABLE [IF NOT EXISTS]","CREATE [TEMPORARY | TEMP] VIEW [IF NOT EXISTS]","UPDATE [OR ABORT | OR FAIL | OR IGNORE | OR REPLACE | OR ROLLBACK]","ON CONFLICT","DELETE FROM","DROP TABLE [IF EXISTS]","ALTER TABLE","ADD [COLUMN]","DROP [COLUMN]","RENAME [COLUMN]","RENAME TO","SET SCHEMA"]),Ol=d(["UNION [ALL]","EXCEPT","INTERSECT"]),al=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),Il=d(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE | GROUPS} BETWEEN"]),Nl={name:"sqlite",tokenizerOptions:{reservedSelect:il,reservedClauses:[...Sl,...cn],reservedSetOperations:Ol,reservedJoins:al,reservedPhrases:Il,reservedKeywords:ol,reservedDataTypes:Al,reservedFunctionNames:Rl,stringTypes:["''-qq",{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq',"``","[]"],paramTypes:{positional:!0,numbered:["?"],named:[":","@","$"]},operators:["%","~","&","|","<<",">>","==","->","->>","||"]},formatOptions:{onelineClauses:cn}},ll=["GROUPING","RANK","DENSE_RANK","PERCENT_RANK","CUME_DIST","ROW_NUMBER","POSITION","OCCURRENCES_REGEX","POSITION_REGEX","EXTRACT","CHAR_LENGTH","CHARACTER_LENGTH","OCTET_LENGTH","CARDINALITY","ABS","MOD","LN","EXP","POWER","SQRT","FLOOR","CEIL","CEILING","WIDTH_BUCKET","SUBSTRING","SUBSTRING_REGEX","UPPER","LOWER","CONVERT","TRANSLATE","TRANSLATE_REGEX","TRIM","OVERLAY","NORMALIZE","SPECIFICTYPE","CURRENT_DATE","CURRENT_TIME","LOCALTIME","CURRENT_TIMESTAMP","LOCALTIMESTAMP","COUNT","AVG","MAX","MIN","SUM","STDDEV_POP","STDDEV_SAMP","VAR_SAMP","VAR_POP","COLLECT","FUSION","INTERSECTION","COVAR_POP","COVAR_SAMP","CORR","REGR_SLOPE","REGR_INTERCEPT","REGR_COUNT","REGR_R2","REGR_AVGX","REGR_AVGY","REGR_SXX","REGR_SYY","REGR_SXY","PERCENTILE_CONT","PERCENTILE_DISC","CAST","COALESCE","NULLIF","ROUND","SIN","COS","TAN","ASIN","ACOS","ATAN"],_l=["ALL","ALLOCATE","ALTER","ANY","ARE","AS","ASENSITIVE","ASYMMETRIC","AT","ATOMIC","AUTHORIZATION","BEGIN","BETWEEN","BOTH","BY","CALL","CALLED","CASCADED","CAST","CHECK","CLOSE","COALESCE","COLLATE","COLUMN","COMMIT","CONDITION","CONNECT","CONSTRAINT","CORRESPONDING","CREATE","CROSS","CUBE","CURRENT","CURRENT_CATALOG","CURRENT_DEFAULT_TRANSFORM_GROUP","CURRENT_PATH","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TRANSFORM_GROUP_FOR_TYPE","CURRENT_USER","CURSOR","CYCLE","DEALLOCATE","DAY","DECLARE","DEFAULT","DELETE","DEREF","DESCRIBE","DETERMINISTIC","DISCONNECT","DISTINCT","DROP","DYNAMIC","EACH","ELEMENT","END-EXEC","ESCAPE","EVERY","EXCEPT","EXEC","EXECUTE","EXISTS","EXTERNAL","FALSE","FETCH","FILTER","FOR","FOREIGN","FREE","FROM","FULL","FUNCTION","GET","GLOBAL","GRANT","GROUP","HAVING","HOLD","HOUR","IDENTITY","IN","INDICATOR","INNER","INOUT","INSENSITIVE","INSERT","INTERSECT","INTO","IS","LANGUAGE","LARGE","LATERAL","LEADING","LEFT","LIKE","LIKE_REGEX","LOCAL","MATCH","MEMBER","MERGE","METHOD","MINUTE","MODIFIES","MODULE","MONTH","NATURAL","NEW","NO","NONE","NOT","NULL","NULLIF","OF","OLD","ON","ONLY","OPEN","ORDER","OUT","OUTER","OVER","OVERLAPS","PARAMETER","PARTITION","PRECISION","PREPARE","PRIMARY","PROCEDURE","RANGE","READS","REAL","RECURSIVE","REF","REFERENCES","REFERENCING","RELEASE","RESULT","RETURN","RETURNS","REVOKE","RIGHT","ROLLBACK","ROLLUP","ROW","ROWS","SAVEPOINT","SCOPE","SCROLL","SEARCH","SECOND","SELECT","SENSITIVE","SESSION_USER","SET","SIMILAR","SOME","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","START","STATIC","SUBMULTISET","SYMMETRIC","SYSTEM","SYSTEM_USER","TABLE","TABLESAMPLE","THEN","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRANSLATION","TREAT","TRIGGER","TRUE","UESCAPE","UNION","UNIQUE","UNKNOWN","UNNEST","UPDATE","USER","USING","VALUE","VALUES","WHENEVER","WINDOW","WITHIN","WITHOUT","YEAR"],Cl=["ARRAY","BIGINT","BINARY LARGE OBJECT","BINARY VARYING","BINARY","BLOB","BOOLEAN","CHAR LARGE OBJECT","CHAR VARYING","CHAR","CHARACTER LARGE OBJECT","CHARACTER VARYING","CHARACTER","CLOB","DATE","DEC","DECIMAL","DOUBLE","FLOAT","INT","INTEGER","INTERVAL","MULTISET","NATIONAL CHAR VARYING","NATIONAL CHAR","NATIONAL CHARACTER LARGE OBJECT","NATIONAL CHARACTER VARYING","NATIONAL CHARACTER","NCHAR LARGE OBJECT","NCHAR VARYING","NCHAR","NCLOB","NUMERIC","SMALLINT","TIME","TIMESTAMP","VARBINARY","VARCHAR"],cl=d(["SELECT [ALL | DISTINCT]"]),Ll=d(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT INTO","VALUES","SET"]),Ln=d(["CREATE [GLOBAL TEMPORARY | LOCAL TEMPORARY] TABLE","CREATE [RECURSIVE] VIEW","UPDATE","WHERE CURRENT OF","DELETE FROM","DROP TABLE","ALTER TABLE","ADD COLUMN","DROP [COLUMN]","RENAME COLUMN","RENAME TO","ALTER [COLUMN]","{SET | DROP} DEFAULT","ADD SCOPE","DROP SCOPE {CASCADE | RESTRICT}","RESTART WITH","TRUNCATE TABLE","SET SCHEMA"]),ul=d(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),pl=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),fl=d(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE} BETWEEN"]),Pl={name:"sql",tokenizerOptions:{reservedSelect:cl,reservedClauses:[...Ll,...Ln],reservedSetOperations:ul,reservedJoins:pl,reservedPhrases:fl,reservedKeywords:_l,reservedDataTypes:Cl,reservedFunctionNames:ll,stringTypes:[{quote:"''-qq-bs",prefixes:["N","U&"]},{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq',"``"],paramTypes:{positional:!0},operators:["||"]},formatOptions:{onelineClauses:Ln}},Dl=["ABS","ACOS","ALL_MATCH","ANY_MATCH","APPROX_DISTINCT","APPROX_MOST_FREQUENT","APPROX_PERCENTILE","APPROX_SET","ARBITRARY","ARRAYS_OVERLAP","ARRAY_AGG","ARRAY_DISTINCT","ARRAY_EXCEPT","ARRAY_INTERSECT","ARRAY_JOIN","ARRAY_MAX","ARRAY_MIN","ARRAY_POSITION","ARRAY_REMOVE","ARRAY_SORT","ARRAY_UNION","ASIN","ATAN","ATAN2","AT_TIMEZONE","AVG","BAR","BETA_CDF","BING_TILE","BING_TILES_AROUND","BING_TILE_AT","BING_TILE_COORDINATES","BING_TILE_POLYGON","BING_TILE_QUADKEY","BING_TILE_ZOOM_LEVEL","BITWISE_AND","BITWISE_AND_AGG","BITWISE_LEFT_SHIFT","BITWISE_NOT","BITWISE_OR","BITWISE_OR_AGG","BITWISE_RIGHT_SHIFT","BITWISE_RIGHT_SHIFT_ARITHMETIC","BITWISE_XOR","BIT_COUNT","BOOL_AND","BOOL_OR","CARDINALITY","CAST","CBRT","CEIL","CEILING","CHAR2HEXINT","CHECKSUM","CHR","CLASSIFY","COALESCE","CODEPOINT","COLOR","COMBINATIONS","CONCAT","CONCAT_WS","CONTAINS","CONTAINS_SEQUENCE","CONVEX_HULL_AGG","CORR","COS","COSH","COSINE_SIMILARITY","COUNT","COUNT_IF","COVAR_POP","COVAR_SAMP","CRC32","CUME_DIST","CURRENT_CATALOG","CURRENT_DATE","CURRENT_GROUPS","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_USER","DATE","DATE_ADD","DATE_DIFF","DATE_FORMAT","DATE_PARSE","DATE_TRUNC","DAY","DAY_OF_MONTH","DAY_OF_WEEK","DAY_OF_YEAR","DEGREES","DENSE_RANK","DOW","DOY","E","ELEMENT_AT","EMPTY_APPROX_SET","EVALUATE_CLASSIFIER_PREDICTIONS","EVERY","EXP","EXTRACT","FEATURES","FILTER","FIRST_VALUE","FLATTEN","FLOOR","FORMAT","FORMAT_DATETIME","FORMAT_NUMBER","FROM_BASE","FROM_BASE32","FROM_BASE64","FROM_BASE64URL","FROM_BIG_ENDIAN_32","FROM_BIG_ENDIAN_64","FROM_ENCODED_POLYLINE","FROM_GEOJSON_GEOMETRY","FROM_HEX","FROM_IEEE754_32","FROM_IEEE754_64","FROM_ISO8601_DATE","FROM_ISO8601_TIMESTAMP","FROM_ISO8601_TIMESTAMP_NANOS","FROM_UNIXTIME","FROM_UNIXTIME_NANOS","FROM_UTF8","GEOMETRIC_MEAN","GEOMETRY_FROM_HADOOP_SHAPE","GEOMETRY_INVALID_REASON","GEOMETRY_NEAREST_POINTS","GEOMETRY_TO_BING_TILES","GEOMETRY_UNION","GEOMETRY_UNION_AGG","GREATEST","GREAT_CIRCLE_DISTANCE","HAMMING_DISTANCE","HASH_COUNTS","HISTOGRAM","HMAC_MD5","HMAC_SHA1","HMAC_SHA256","HMAC_SHA512","HOUR","HUMAN_READABLE_SECONDS","IF","INDEX","INFINITY","INTERSECTION_CARDINALITY","INVERSE_BETA_CDF","INVERSE_NORMAL_CDF","IS_FINITE","IS_INFINITE","IS_JSON_SCALAR","IS_NAN","JACCARD_INDEX","JSON_ARRAY_CONTAINS","JSON_ARRAY_GET","JSON_ARRAY_LENGTH","JSON_EXISTS","JSON_EXTRACT","JSON_EXTRACT_SCALAR","JSON_FORMAT","JSON_PARSE","JSON_QUERY","JSON_SIZE","JSON_VALUE","KURTOSIS","LAG","LAST_DAY_OF_MONTH","LAST_VALUE","LEAD","LEARN_CLASSIFIER","LEARN_LIBSVM_CLASSIFIER","LEARN_LIBSVM_REGRESSOR","LEARN_REGRESSOR","LEAST","LENGTH","LEVENSHTEIN_DISTANCE","LINE_INTERPOLATE_POINT","LINE_INTERPOLATE_POINTS","LINE_LOCATE_POINT","LISTAGG","LN","LOCALTIME","LOCALTIMESTAMP","LOG","LOG10","LOG2","LOWER","LPAD","LTRIM","LUHN_CHECK","MAKE_SET_DIGEST","MAP","MAP_AGG","MAP_CONCAT","MAP_ENTRIES","MAP_FILTER","MAP_FROM_ENTRIES","MAP_KEYS","MAP_UNION","MAP_VALUES","MAP_ZIP_WITH","MAX","MAX_BY","MD5","MERGE","MERGE_SET_DIGEST","MILLISECOND","MIN","MINUTE","MIN_BY","MOD","MONTH","MULTIMAP_AGG","MULTIMAP_FROM_ENTRIES","MURMUR3","NAN","NGRAMS","NONE_MATCH","NORMALIZE","NORMAL_CDF","NOW","NTH_VALUE","NTILE","NULLIF","NUMERIC_HISTOGRAM","OBJECTID","OBJECTID_TIMESTAMP","PARSE_DATA_SIZE","PARSE_DATETIME","PARSE_DURATION","PERCENT_RANK","PI","POSITION","POW","POWER","QDIGEST_AGG","QUARTER","RADIANS","RAND","RANDOM","RANK","REDUCE","REDUCE_AGG","REGEXP_COUNT","REGEXP_EXTRACT","REGEXP_EXTRACT_ALL","REGEXP_LIKE","REGEXP_POSITION","REGEXP_REPLACE","REGEXP_SPLIT","REGRESS","REGR_INTERCEPT","REGR_SLOPE","RENDER","REPEAT","REPLACE","REVERSE","RGB","ROUND","ROW_NUMBER","RPAD","RTRIM","SECOND","SEQUENCE","SHA1","SHA256","SHA512","SHUFFLE","SIGN","SIMPLIFY_GEOMETRY","SIN","SKEWNESS","SLICE","SOUNDEX","SPATIAL_PARTITIONING","SPATIAL_PARTITIONS","SPLIT","SPLIT_PART","SPLIT_TO_MAP","SPLIT_TO_MULTIMAP","SPOOKY_HASH_V2_32","SPOOKY_HASH_V2_64","SQRT","STARTS_WITH","STDDEV","STDDEV_POP","STDDEV_SAMP","STRPOS","ST_AREA","ST_ASBINARY","ST_ASTEXT","ST_BOUNDARY","ST_BUFFER","ST_CENTROID","ST_CONTAINS","ST_CONVEXHULL","ST_COORDDIM","ST_CROSSES","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_ENDPOINT","ST_ENVELOPE","ST_ENVELOPEASPTS","ST_EQUALS","ST_EXTERIORRING","ST_GEOMETRIES","ST_GEOMETRYFROMTEXT","ST_GEOMETRYN","ST_GEOMETRYTYPE","ST_GEOMFROMBINARY","ST_INTERIORRINGN","ST_INTERIORRINGS","ST_INTERSECTION","ST_INTERSECTS","ST_ISCLOSED","ST_ISEMPTY","ST_ISRING","ST_ISSIMPLE","ST_ISVALID","ST_LENGTH","ST_LINEFROMTEXT","ST_LINESTRING","ST_MULTIPOINT","ST_NUMGEOMETRIES","ST_NUMINTERIORRING","ST_NUMPOINTS","ST_OVERLAPS","ST_POINT","ST_POINTN","ST_POINTS","ST_POLYGON","ST_RELATE","ST_STARTPOINT","ST_SYMDIFFERENCE","ST_TOUCHES","ST_UNION","ST_WITHIN","ST_X","ST_XMAX","ST_XMIN","ST_Y","ST_YMAX","ST_YMIN","SUBSTR","SUBSTRING","SUM","TAN","TANH","TDIGEST_AGG","TIMESTAMP_OBJECTID","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO_BASE","TO_BASE32","TO_BASE64","TO_BASE64URL","TO_BIG_ENDIAN_32","TO_BIG_ENDIAN_64","TO_CHAR","TO_DATE","TO_ENCODED_POLYLINE","TO_GEOJSON_GEOMETRY","TO_GEOMETRY","TO_HEX","TO_IEEE754_32","TO_IEEE754_64","TO_ISO8601","TO_MILLISECONDS","TO_SPHERICAL_GEOGRAPHY","TO_TIMESTAMP","TO_UNIXTIME","TO_UTF8","TRANSFORM","TRANSFORM_KEYS","TRANSFORM_VALUES","TRANSLATE","TRIM","TRIM_ARRAY","TRUNCATE","TRY","TRY_CAST","TYPEOF","UPPER","URL_DECODE","URL_ENCODE","URL_EXTRACT_FRAGMENT","URL_EXTRACT_HOST","URL_EXTRACT_PARAMETER","URL_EXTRACT_PATH","URL_EXTRACT_PORT","URL_EXTRACT_PROTOCOL","URL_EXTRACT_QUERY","UUID","VALUES_AT_QUANTILES","VALUE_AT_QUANTILE","VARIANCE","VAR_POP","VAR_SAMP","VERSION","WEEK","WEEK_OF_YEAR","WIDTH_BUCKET","WILSON_INTERVAL_LOWER","WILSON_INTERVAL_UPPER","WITH_TIMEZONE","WORD_STEM","XXHASH64","YEAR","YEAR_OF_WEEK","YOW","ZIP","ZIP_WITH","CLASSIFIER","FIRST","LAST","MATCH_NUMBER","NEXT","PERMUTE","PREV"],dl=["ABSENT","ADD","ADMIN","AFTER","ALL","ALTER","ANALYZE","AND","ANY","AS","ASC","AT","AUTHORIZATION","BERNOULLI","BETWEEN","BOTH","BY","CALL","CASCADE","CASE","CATALOGS","COLUMN","COLUMNS","COMMENT","COMMIT","COMMITTED","CONDITIONAL","CONSTRAINT","COPARTITION","CREATE","CROSS","CUBE","CURRENT","CURRENT_PATH","CURRENT_ROLE","DATA","DEALLOCATE","DEFAULT","DEFINE","DEFINER","DELETE","DENY","DESC","DESCRIBE","DESCRIPTOR","DISTINCT","DISTRIBUTED","DOUBLE","DROP","ELSE","EMPTY","ENCODING","END","ERROR","ESCAPE","EXCEPT","EXCLUDING","EXECUTE","EXISTS","EXPLAIN","FALSE","FETCH","FINAL","FIRST","FOLLOWING","FOR","FROM","FULL","FUNCTIONS","GRANT","GRANTED","GRANTS","GRAPHVIZ","GROUP","GROUPING","GROUPS","HAVING","IGNORE","IN","INCLUDING","INITIAL","INNER","INPUT","INSERT","INTERSECT","INTERVAL","INTO","INVOKER","IO","IS","ISOLATION","JOIN","JSON","JSON_ARRAY","JSON_OBJECT","KEEP","KEY","KEYS","LAST","LATERAL","LEADING","LEFT","LEVEL","LIKE","LIMIT","LOCAL","LOGICAL","MATCH","MATCHED","MATCHES","MATCH_RECOGNIZE","MATERIALIZED","MEASURES","NATURAL","NEXT","NFC","NFD","NFKC","NFKD","NO","NONE","NOT","NULL","NULLS","OBJECT","OF","OFFSET","OMIT","ON","ONE","ONLY","OPTION","OR","ORDER","ORDINALITY","OUTER","OUTPUT","OVER","OVERFLOW","PARTITION","PARTITIONS","PASSING","PAST","PATH","PATTERN","PER","PERMUTE","PRECEDING","PRECISION","PREPARE","PRIVILEGES","PROPERTIES","PRUNE","QUOTES","RANGE","READ","RECURSIVE","REFRESH","RENAME","REPEATABLE","RESET","RESPECT","RESTRICT","RETURNING","REVOKE","RIGHT","ROLE","ROLES","ROLLBACK","ROLLUP","ROW","ROWS","RUNNING","SCALAR","SCHEMA","SCHEMAS","SECURITY","SEEK","SELECT","SERIALIZABLE","SESSION","SET","SETS","SHOW","SKIP","SOME","START","STATS","STRING","SUBSET","SYSTEM","TABLE","TABLES","TABLESAMPLE","TEXT","THEN","TIES","TIME","TIMESTAMP","TO","TRAILING","TRANSACTION","TRUE","TYPE","UESCAPE","UNBOUNDED","UNCOMMITTED","UNCONDITIONAL","UNION","UNIQUE","UNKNOWN","UNMATCHED","UNNEST","UPDATE","USE","USER","USING","UTF16","UTF32","UTF8","VALIDATE","VALUE","VALUES","VERBOSE","VIEW","WHEN","WHERE","WINDOW","WITH","WITHIN","WITHOUT","WORK","WRAPPER","WRITE","ZONE"],Ml=["BIGINT","INT","INTEGER","SMALLINT","TINYINT","BOOLEAN","DATE","DECIMAL","REAL","DOUBLE","HYPERLOGLOG","QDIGEST","TDIGEST","P4HYPERLOGLOG","INTERVAL","TIMESTAMP","TIME","VARBINARY","VARCHAR","CHAR","ROW","ARRAY","MAP","JSON","JSON2016","IPADDRESS","GEOMETRY","UUID","SETDIGEST","JONIREGEXP","RE2JREGEXP","LIKEPATTERN","COLOR","CODEPOINTS","FUNCTION","JSONPATH"],Ul=d(["SELECT [ALL | DISTINCT]"]),hl=d(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT INTO","VALUES","SET","MATCH_RECOGNIZE","MEASURES","ONE ROW PER MATCH","ALL ROWS PER MATCH","AFTER MATCH","PATTERN","SUBSET","DEFINE"]),un=d(["CREATE TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] [MATERIALIZED] VIEW","UPDATE","DELETE FROM","DROP TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS]","ADD COLUMN [IF NOT EXISTS]","DROP COLUMN [IF EXISTS]","RENAME COLUMN [IF EXISTS]","RENAME TO","SET AUTHORIZATION [USER | ROLE]","SET PROPERTIES","EXECUTE","TRUNCATE TABLE","ALTER SCHEMA","ALTER MATERIALIZED VIEW","ALTER VIEW","CREATE SCHEMA","CREATE ROLE","DROP SCHEMA","DROP MATERIALIZED VIEW","DROP VIEW","DROP ROLE","EXPLAIN","ANALYZE","EXPLAIN ANALYZE","EXPLAIN ANALYZE VERBOSE","USE","DESCRIBE INPUT","DESCRIBE OUTPUT","REFRESH MATERIALIZED VIEW","RESET SESSION","SET SESSION","SET PATH","SET TIME ZONE","SHOW GRANTS","SHOW CREATE TABLE","SHOW CREATE SCHEMA","SHOW CREATE VIEW","SHOW CREATE MATERIALIZED VIEW","SHOW TABLES","SHOW SCHEMAS","SHOW CATALOGS","SHOW COLUMNS","SHOW STATS FOR","SHOW ROLES","SHOW CURRENT ROLES","SHOW ROLE GRANTS","SHOW FUNCTIONS","SHOW SESSION"]),Gl=d(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),gl=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),ml=d(["{ROWS | RANGE | GROUPS} BETWEEN","IS [NOT] DISTINCT FROM"]),Hl={name:"trino",tokenizerOptions:{reservedSelect:Ul,reservedClauses:[...hl,...un],reservedSetOperations:Gl,reservedJoins:gl,reservedPhrases:ml,reservedKeywords:dl,reservedDataTypes:Ml,reservedFunctionNames:Dl,extraParens:["[]","{}"],stringTypes:[{quote:"''-qq",prefixes:["U&"]},{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq'],paramTypes:{positional:!0},operators:["%","->","=>",":","||","|","^","$"]},formatOptions:{onelineClauses:un}},yl=["APPROX_COUNT_DISTINCT","AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","STDEV","STDEVP","SUM","VAR","VARP","CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","Collation - COLLATIONPROPERTY","Collation - TERTIARY_WEIGHTS","@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION","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_ROWS","@@FETCH_STATUS","CURSOR_STATUS","DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY","@@DATEFIRST","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_TIMEZONE_ID","DATEADD","DATEDIFF","DATEDIFF_BIG","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","JSON","ISJSON","JSON_VALUE","JSON_QUERY","JSON_MODIFY","ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","CHOOSE","GREATEST","IIF","LEAST","@@PROCID","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FILEPROPERTYEX","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","NEXT VALUE FOR","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","CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","DATABASE_PRINCIPAL_ID","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","CONCAT_WS","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STRING_AGG","STRING_ESCAPE","STUFF","SUBSTRING","TRANSLATE","TRIM","UNICODE","UPPER","$PARTITION","@@ERROR","@@IDENTITY","@@PACK_RECEIVED","@@ROWCOUNT","@@TRANCOUNT","BINARY_CHECKSUM","CHECKSUM","COMPRESS","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","CURRENT_TRANSACTION_ID","DECOMPRESS","ERROR_LINE","ERROR_MESSAGE","ERROR_NUMBER","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GET_FILESTREAM_TRANSACTION_CONTEXT","GETANSINULL","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","SESSION_CONTEXT","XACT_STATE","@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACK_SENT","@@PACKET_ERRORS","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE","TEXTPTR","TEXTVALID","COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE","COALESCE","NULLIF"],bl=["ADD","ALL","ALTER","AND","ANY","AS","ASC","AUTHORIZATION","BACKUP","BEGIN","BETWEEN","BREAK","BROWSE","BULK","BY","CASCADE","CHECK","CHECKPOINT","CLOSE","CLUSTERED","COALESCE","COLLATE","COLUMN","COMMIT","COMPUTE","CONSTRAINT","CONTAINS","CONTAINSTABLE","CONTINUE","CONVERT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DBCC","DEALLOCATE","DECLARE","DEFAULT","DELETE","DENY","DESC","DISK","DISTINCT","DISTRIBUTED","DROP","DUMP","ERRLVL","ESCAPE","EXEC","EXECUTE","EXISTS","EXIT","EXTERNAL","FETCH","FILE","FILLFACTOR","FOR","FOREIGN","FREETEXT","FREETEXTTABLE","FROM","FULL","FUNCTION","GOTO","GRANT","GROUP","HAVING","HOLDLOCK","IDENTITY","IDENTITYCOL","IDENTITY_INSERT","IF","IN","INDEX","INNER","INSERT","INTERSECT","INTO","IS","JOIN","KEY","KILL","LEFT","LIKE","LINENO","LOAD","MERGE","NOCHECK","NONCLUSTERED","NOT","NULL","NULLIF","OF","OFF","OFFSETS","ON","OPEN","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","OPTION","OR","ORDER","OUTER","OVER","PERCENT","PIVOT","PLAN","PRIMARY","PRINT","PROC","PROCEDURE","PUBLIC","RAISERROR","READ","READTEXT","RECONFIGURE","REFERENCES","REPLICATION","RESTORE","RESTRICT","RETURN","REVERT","REVOKE","RIGHT","ROLLBACK","ROWCOUNT","ROWGUIDCOL","RULE","SAVE","SCHEMA","SECURITYAUDIT","SELECT","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","SESSION_USER","SET","SETUSER","SHUTDOWN","SOME","STATISTICS","SYSTEM_USER","TABLE","TABLESAMPLE","TEXTSIZE","THEN","TO","TOP","TRAN","TRANSACTION","TRIGGER","TRUNCATE","TRY_CONVERT","TSEQUAL","UNION","UNIQUE","UNPIVOT","UPDATE","UPDATETEXT","USE","USER","VALUES","VIEW","WAITFOR","WHERE","WHILE","WITH","WITHIN GROUP","WRITETEXT","ABSOLUTE","ACTION","ADA","ALLOCATE","ARE","ASSERTION","AT","AVG","BIT_LENGTH","BOTH","CASCADED","CAST","CATALOG","CHARACTER_LENGTH","CHAR_LENGTH","COLLATION","CONNECT","CONNECTION","CONSTRAINTS","CORRESPONDING","COUNT","DAY","DEFERRABLE","DEFERRED","DESCRIBE","DESCRIPTOR","DIAGNOSTICS","DISCONNECT","DOMAIN","END-EXEC","EXCEPTION","EXTRACT","FALSE","FIRST","FORTRAN","FOUND","GET","GLOBAL","GO","HOUR","IMMEDIATE","INCLUDE","INDICATOR","INITIALLY","INPUT","INSENSITIVE","INTERVAL","ISOLATION","LANGUAGE","LAST","LEADING","LEVEL","LOCAL","LOWER","MATCH","MAX","MIN","MINUTE","MODULE","MONTH","NAMES","NATURAL","NEXT","NO","NONE","OCTET_LENGTH","ONLY","OUTPUT","OVERLAPS","PAD","PARTIAL","PASCAL","POSITION","PREPARE","PRESERVE","PRIOR","PRIVILEGES","RELATIVE","ROWS","SCROLL","SECOND","SECTION","SESSION","SIZE","SPACE","SQL","SQLCA","SQLCODE","SQLERROR","SQLSTATE","SQLWARNING","SUBSTRING","SUM","TEMPORARY","TIMEZONE_HOUR","TIMEZONE_MINUTE","TRAILING","TRANSLATE","TRANSLATION","TRIM","TRUE","UNKNOWN","UPPER","USAGE","VALUE","WHENEVER","WORK","WRITE","YEAR","ZONE"],Bl=["BINARY","BIT","CHAR","CHAR","CHARACTER","DATE","DATETIME2","DATETIMEOFFSET","DEC","DECIMAL","DOUBLE","FLOAT","INT","INTEGER","NATIONAL","NCHAR","NUMERIC","NVARCHAR","PRECISION","REAL","SMALLINT","TIME","TIMESTAMP","VARBINARY","VARCHAR"],Fl=d(["SELECT [ALL | DISTINCT]"]),vl=d(["WITH","INTO","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","OFFSET","FETCH {FIRST | NEXT}","INSERT [INTO]","VALUES","SET","MERGE [INTO]","WHEN [NOT] MATCHED [BY TARGET | BY SOURCE] [THEN]","UPDATE SET","CREATE [OR ALTER] {PROC | PROCEDURE}"]),pn=d(["CREATE TABLE","CREATE [OR ALTER] [MATERIALIZED] VIEW","UPDATE","WHERE CURRENT OF","DELETE [FROM]","DROP TABLE [IF EXISTS]","ALTER TABLE","ADD","DROP COLUMN [IF EXISTS]","ALTER COLUMN","TRUNCATE TABLE","ADD SENSITIVITY CLASSIFICATION","ADD SIGNATURE","AGGREGATE","ANSI_DEFAULTS","ANSI_NULLS","ANSI_NULL_DFLT_OFF","ANSI_NULL_DFLT_ON","ANSI_PADDING","ANSI_WARNINGS","APPLICATION ROLE","ARITHABORT","ARITHIGNORE","ASSEMBLY","ASYMMETRIC KEY","AUTHORIZATION","AVAILABILITY GROUP","BACKUP","BACKUP CERTIFICATE","BACKUP MASTER KEY","BACKUP SERVICE MASTER KEY","BEGIN CONVERSATION TIMER","BEGIN DIALOG CONVERSATION","BROKER PRIORITY","BULK INSERT","CERTIFICATE","CLOSE MASTER KEY","CLOSE SYMMETRIC KEY","COLLATE","COLUMN ENCRYPTION KEY","COLUMN MASTER KEY","COLUMNSTORE INDEX","CONCAT_NULL_YIELDS_NULL","CONTEXT_INFO","CONTRACT","CREDENTIAL","CRYPTOGRAPHIC PROVIDER","CURSOR_CLOSE_ON_COMMIT","DATABASE","DATABASE AUDIT SPECIFICATION","DATABASE ENCRYPTION KEY","DATABASE HADR","DATABASE SCOPED CONFIGURATION","DATABASE SCOPED CREDENTIAL","DATABASE SET","DATEFIRST","DATEFORMAT","DEADLOCK_PRIORITY","DENY","DENY XML","DISABLE TRIGGER","ENABLE TRIGGER","END CONVERSATION","ENDPOINT","EVENT NOTIFICATION","EVENT SESSION","EXECUTE AS","EXTERNAL DATA SOURCE","EXTERNAL FILE FORMAT","EXTERNAL LANGUAGE","EXTERNAL LIBRARY","EXTERNAL RESOURCE POOL","EXTERNAL TABLE","FIPS_FLAGGER","FMTONLY","FORCEPLAN","FULLTEXT CATALOG","FULLTEXT INDEX","FULLTEXT STOPLIST","FUNCTION","GET CONVERSATION GROUP","GET_TRANSMISSION_STATUS","GRANT","GRANT XML","IDENTITY_INSERT","IMPLICIT_TRANSACTIONS","INDEX","LANGUAGE","LOCK_TIMEOUT","LOGIN","MASTER KEY","MESSAGE TYPE","MOVE CONVERSATION","NOCOUNT","NOEXEC","NUMERIC_ROUNDABORT","OFFSETS","OPEN MASTER KEY","OPEN SYMMETRIC KEY","PARSEONLY","PARTITION FUNCTION","PARTITION SCHEME","PROCEDURE","QUERY_GOVERNOR_COST_LIMIT","QUEUE","QUOTED_IDENTIFIER","RECEIVE","REMOTE SERVICE BINDING","REMOTE_PROC_TRANSACTIONS","RESOURCE GOVERNOR","RESOURCE POOL","RESTORE","RESTORE FILELISTONLY","RESTORE HEADERONLY","RESTORE LABELONLY","RESTORE MASTER KEY","RESTORE REWINDONLY","RESTORE SERVICE MASTER KEY","RESTORE VERIFYONLY","REVERT","REVOKE","REVOKE XML","ROLE","ROUTE","ROWCOUNT","RULE","SCHEMA","SEARCH PROPERTY LIST","SECURITY POLICY","SELECTIVE XML INDEX","SEND","SENSITIVITY CLASSIFICATION","SEQUENCE","SERVER AUDIT","SERVER AUDIT SPECIFICATION","SERVER CONFIGURATION","SERVER ROLE","SERVICE","SERVICE MASTER KEY","SETUSER","SHOWPLAN_ALL","SHOWPLAN_TEXT","SHOWPLAN_XML","SIGNATURE","SPATIAL INDEX","STATISTICS","STATISTICS IO","STATISTICS PROFILE","STATISTICS TIME","STATISTICS XML","SYMMETRIC KEY","SYNONYM","TABLE","TABLE IDENTITY","TEXTSIZE","TRANSACTION ISOLATION LEVEL","TRIGGER","TYPE","UPDATE STATISTICS","USER","WORKLOAD GROUP","XACT_ABORT","XML INDEX","XML SCHEMA COLLECTION"]),Yl=d(["UNION [ALL]","EXCEPT","INTERSECT"]),Vl=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","{CROSS | OUTER} APPLY"]),xl=d(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE} BETWEEN"]),wl={name:"transactsql",tokenizerOptions:{reservedSelect:Fl,reservedClauses:[...vl,...pn],reservedSetOperations:Yl,reservedJoins:Vl,reservedPhrases:xl,reservedKeywords:bl,reservedDataTypes:Bl,reservedFunctionNames:yl,nestedBlockComments:!0,stringTypes:[{quote:"''-qq",prefixes:["N"]}],identTypes:['""-qq',"[]"],identChars:{first:"#@",rest:"#@$"},paramTypes:{named:["@"],quoted:["@"]},operators:["%","&","|","^","~","!<","!>","+=","-=","*=","/=","%=","|=","&=","^=","::",":"]},formatOptions:{alwaysDenseOperators:["::"],onelineClauses:pn}},Wl=["ADD","ALL","ALTER","ANALYZE","AND","AS","ASC","ASENSITIVE","BEFORE","BETWEEN","_BINARY","BOTH","BY","CALL","CASCADE","CASE","CHANGE","CHECK","COLLATE","COLUMN","CONDITION","CONSTRAINT","CONTINUE","CONVERT","CREATE","CROSS","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATABASES","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DECLARE","DEFAULT","DELAYED","DELETE","DESC","DESCRIBE","DETERMINISTIC","DISTINCT","DISTINCTROW","DIV","DROP","DUAL","EACH","ELSE","ELSEIF","ENCLOSED","ESCAPED","EXCEPT","EXISTS","EXIT","EXPLAIN","EXTRA_JOIN","FALSE","FETCH","FOR","FORCE","FORCE_COMPILED_MODE","FORCE_INTERPRETER_MODE","FOREIGN","FROM","FULL","FULLTEXT","GRANT","GROUP","HAVING","HEARTBEAT_NO_LOGGING","HIGH_PRIORITY","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IF","IGNORE","IN","INDEX","INFILE","INNER","INOUT","INSENSITIVE","INSERT","IN","_INTERNAL_DYNAMIC_TYPECAST","INTERSECT","INTERVAL","INTO","ITERATE","JOIN","KEY","KEYS","KILL","LEADING","LEAVE","LEFT","LIKE","LIMIT","LINES","LOAD","LOCALTIME","LOCALTIMESTAMP","LOCK","LOOP","LOW_PRIORITY","MATCH","MAXVALUE","MINUS","MINUTE_MICROSECOND","MINUTE_SECOND","MOD","MODIFIES","NATURAL","NO_QUERY_REWRITE","NOT","NO_WRITE_TO_BINLOG","NO_QUERY_REWRITE","NULL","ON","OPTIMIZE","OPTION","OPTIONALLY","OR","ORDER","OUT","OUTER","OUTFILE","OVER","PRIMARY","PROCEDURE","PURGE","RANGE","READ","READS","REFERENCES","REGEXP","RELEASE","RENAME","REPEAT","REPLACE","REQUIRE","RESTRICT","RETURN","REVOKE","RIGHT","RIGHT_ANTI_JOIN","RIGHT_SEMI_JOIN","RIGHT_STRAIGHT_JOIN","RLIKE","SCHEMA","SCHEMAS","SECOND_MICROSECOND","SELECT","SEMI_JOIN","SENSITIVE","SEPARATOR","SET","SHOW","SIGNAL","SPATIAL","SPECIFIC","SQL","SQL_BIG_RESULT","SQL_BUFFER_RESULT","SQL_CACHE","SQL_CALC_FOUND_ROWS","SQLEXCEPTION","SQL_NO_CACHE","SQL_NO_LOGGING","SQL_SMALL_RESULT","SQLSTATE","SQLWARNING","STRAIGHT_JOIN","TABLE","TERMINATED","THEN","TO","TRAILING","TRIGGER","TRUE","UNBOUNDED","UNDO","UNION","UNIQUE","UNLOCK","UPDATE","USAGE","USE","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","_UTF8","VALUES","WHEN","WHERE","WHILE","WINDOW","WITH","WITHIN","WRITE","XOR","YEAR_MONTH","ZEROFILL"],Xl=["BIGINT","BINARY","BIT","BLOB","CHAR","CHARACTER","DATETIME","DEC","DECIMAL","DOUBLE PRECISION","DOUBLE","ENUM","FIXED","FLOAT","FLOAT4","FLOAT8","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","LONG","LONGBLOB","LONGTEXT","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MIDDLEINT","NATIONAL CHAR","NATIONAL VARCHAR","NUMERIC","PRECISION","REAL","SMALLINT","TEXT","TIME","TIMESTAMP","TINYBLOB","TINYINT","TINYTEXT","UNSIGNED","VARBINARY","VARCHAR","VARCHARACTER","YEAR"],$l=["ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ANY_VALUE","APPROX_COUNT_DISTINCT","APPROX_COUNT_DISTINCT_ACCUMULATE","APPROX_COUNT_DISTINCT_COMBINE","APPROX_COUNT_DISTINCT_ESTIMATE","APPROX_GEOGRAPHY_INTERSECTS","APPROX_PERCENTILE","ASCII","ASIN","ATAN","ATAN2","AVG","BIN","BINARY","BIT_AND","BIT_COUNT","BIT_OR","BIT_XOR","CAST","CEIL","CEILING","CHAR","CHARACTER_LENGTH","CHAR_LENGTH","CHARSET","COALESCE","COERCIBILITY","COLLATION","COLLECT","CONCAT","CONCAT_WS","CONNECTION_ID","CONV","CONVERT","CONVERT_TZ","COS","COT","COUNT","CUME_DIST","CURDATE","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURTIME","DATABASE","DATE","DATE_ADD","DATEDIFF","DATE_FORMAT","DATE_SUB","DATE_TRUNC","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DECODE","DEFAULT","DEGREES","DENSE_RANK","DIV","DOT_PRODUCT","ELT","EUCLIDEAN_DISTANCE","EXP","EXTRACT","FIELD","FIRST","FIRST_VALUE","FLOOR","FORMAT","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GEOGRAPHY_AREA","GEOGRAPHY_CONTAINS","GEOGRAPHY_DISTANCE","GEOGRAPHY_INTERSECTS","GEOGRAPHY_LATITUDE","GEOGRAPHY_LENGTH","GEOGRAPHY_LONGITUDE","GEOGRAPHY_POINT","GEOGRAPHY_WITHIN_DISTANCE","GEOMETRY_AREA","GEOMETRY_CONTAINS","GEOMETRY_DISTANCE","GEOMETRY_FILTER","GEOMETRY_INTERSECTS","GEOMETRY_LENGTH","GEOMETRY_POINT","GEOMETRY_WITHIN_DISTANCE","GEOMETRY_X","GEOMETRY_Y","GREATEST","GROUPING","GROUP_CONCAT","HEX","HIGHLIGHT","HOUR","ICU_VERSION","IF","IFNULL","INET_ATON","INET_NTOA","INET6_ATON","INET6_NTOA","INITCAP","INSERT","INSTR","INTERVAL","IS","IS NULL","JSON_AGG","JSON_ARRAY_CONTAINS_DOUBLE","JSON_ARRAY_CONTAINS_JSON","JSON_ARRAY_CONTAINS_STRING","JSON_ARRAY_PUSH_DOUBLE","JSON_ARRAY_PUSH_JSON","JSON_ARRAY_PUSH_STRING","JSON_DELETE_KEY","JSON_EXTRACT_DOUBLE","JSON_EXTRACT_JSON","JSON_EXTRACT_STRING","JSON_EXTRACT_BIGINT","JSON_GET_TYPE","JSON_LENGTH","JSON_SET_DOUBLE","JSON_SET_JSON","JSON_SET_STRING","JSON_SPLICE_DOUBLE","JSON_SPLICE_JSON","JSON_SPLICE_STRING","LAG","LAST_DAY","LAST_VALUE","LCASE","LEAD","LEAST","LEFT","LENGTH","LIKE","LN","LOCALTIME","LOCALTIMESTAMP","LOCATE","LOG","LOG10","LOG2","LPAD","LTRIM","MATCH","MAX","MD5","MEDIAN","MICROSECOND","MIN","MINUTE","MOD","MONTH","MONTHNAME","MONTHS_BETWEEN","NOT","NOW","NTH_VALUE","NTILE","NULLIF","OCTET_LENGTH","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","PI","PIVOT","POSITION","POW","POWER","QUARTER","QUOTE","RADIANS","RAND","RANK","REGEXP","REPEAT","REPLACE","REVERSE","RIGHT","RLIKE","ROUND","ROW_COUNT","ROW_NUMBER","RPAD","RTRIM","SCALAR","SCHEMA","SEC_TO_TIME","SHA1","SHA2","SIGMOID","SIGN","SIN","SLEEP","SPLIT","SOUNDEX","SOUNDS LIKE","SOURCE_POS_WAIT","SPACE","SQRT","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DATE","SUBDATE","SUBSTR","SUBSTRING","SUBSTRING_INDEX","SUM","SYS_GUID","TAN","TIME","TIMEDIFF","TIME_BUCKET","TIME_FORMAT","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TIME_TO_SEC","TO_BASE64","TO_CHAR","TO_DAYS","TO_JSON","TO_NUMBER","TO_SECONDS","TO_TIMESTAMP","TRIM","TRUNC","TRUNCATE","UCASE","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","UUID","VALUES","VARIANCE","VAR_POP","VAR_SAMP","VECTOR_SUB","VERSION","WEEK","WEEKDAY","WEEKOFYEAR","YEAR"],Kl=d(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),Jl=d(["WITH","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT [IGNORE] [INTO]","VALUES","REPLACE [INTO]","ON DUPLICATE KEY UPDATE","SET","CREATE [OR REPLACE] [TEMPORARY] PROCEDURE [IF NOT EXISTS]","CREATE [OR REPLACE] [EXTERNAL] FUNCTION"]),fn=d(["CREATE [ROWSTORE] [REFERENCE | TEMPORARY | GLOBAL TEMPORARY] TABLE [IF NOT EXISTS]","CREATE VIEW","UPDATE","DELETE [FROM]","DROP [TEMPORARY] TABLE [IF EXISTS]","ALTER [ONLINE] TABLE","ADD [COLUMN]","ADD [UNIQUE] {INDEX | KEY}","DROP [COLUMN]","MODIFY [COLUMN]","CHANGE","RENAME [TO | AS]","TRUNCATE [TABLE]","ADD AGGREGATOR","ADD LEAF","AGGREGATOR SET AS MASTER","ALTER DATABASE","ALTER PIPELINE","ALTER RESOURCE POOL","ALTER USER","ALTER VIEW","ANALYZE TABLE","ATTACH DATABASE","ATTACH LEAF","ATTACH LEAF ALL","BACKUP DATABASE","BINLOG","BOOTSTRAP AGGREGATOR","CACHE INDEX","CALL","CHANGE","CHANGE MASTER TO","CHANGE REPLICATION FILTER","CHANGE REPLICATION SOURCE TO","CHECK BLOB CHECKSUM","CHECK TABLE","CHECKSUM TABLE","CLEAR ORPHAN DATABASES","CLONE","COMMIT","CREATE DATABASE","CREATE GROUP","CREATE INDEX","CREATE LINK","CREATE MILESTONE","CREATE PIPELINE","CREATE RESOURCE POOL","CREATE ROLE","CREATE USER","DEALLOCATE PREPARE","DESCRIBE","DETACH DATABASE","DETACH PIPELINE","DROP DATABASE","DROP FUNCTION","DROP INDEX","DROP LINK","DROP PIPELINE","DROP PROCEDURE","DROP RESOURCE POOL","DROP ROLE","DROP USER","DROP VIEW","EXECUTE","EXPLAIN","FLUSH","FORCE","GRANT","HANDLER","HELP","KILL CONNECTION","KILLALL QUERIES","LOAD DATA","LOAD INDEX INTO CACHE","LOAD XML","LOCK INSTANCE FOR BACKUP","LOCK TABLES","MASTER_POS_WAIT","OPTIMIZE TABLE","PREPARE","PURGE BINARY LOGS","REBALANCE PARTITIONS","RELEASE SAVEPOINT","REMOVE AGGREGATOR","REMOVE LEAF","REPAIR TABLE","REPLACE","REPLICATE DATABASE","RESET","RESET MASTER","RESET PERSIST","RESET REPLICA","RESET SLAVE","RESTART","RESTORE DATABASE","RESTORE REDUNDANCY","REVOKE","ROLLBACK","ROLLBACK TO SAVEPOINT","SAVEPOINT","SET CHARACTER SET","SET DEFAULT ROLE","SET NAMES","SET PASSWORD","SET RESOURCE GROUP","SET ROLE","SET TRANSACTION","SHOW","SHOW CHARACTER SET","SHOW COLLATION","SHOW COLUMNS","SHOW CREATE DATABASE","SHOW CREATE FUNCTION","SHOW CREATE PIPELINE","SHOW CREATE PROCEDURE","SHOW CREATE TABLE","SHOW CREATE USER","SHOW CREATE VIEW","SHOW DATABASES","SHOW ENGINE","SHOW ENGINES","SHOW ERRORS","SHOW FUNCTION CODE","SHOW FUNCTION STATUS","SHOW GRANTS","SHOW INDEX","SHOW MASTER STATUS","SHOW OPEN TABLES","SHOW PLUGINS","SHOW PRIVILEGES","SHOW PROCEDURE CODE","SHOW PROCEDURE STATUS","SHOW PROCESSLIST","SHOW PROFILE","SHOW PROFILES","SHOW RELAYLOG EVENTS","SHOW REPLICA STATUS","SHOW REPLICAS","SHOW SLAVE","SHOW SLAVE HOSTS","SHOW STATUS","SHOW TABLE STATUS","SHOW TABLES","SHOW VARIABLES","SHOW WARNINGS","SHUTDOWN","SNAPSHOT DATABASE","SOURCE_POS_WAIT","START GROUP_REPLICATION","START PIPELINE","START REPLICA","START SLAVE","START TRANSACTION","STOP GROUP_REPLICATION","STOP PIPELINE","STOP REPLICA","STOP REPLICATING","STOP SLAVE","TEST PIPELINE","UNLOCK INSTANCE","UNLOCK TABLES","USE","XA","ITERATE","LEAVE","LOOP","REPEAT","RETURN","WHILE"]),kl=d(["UNION [ALL | DISTINCT]","EXCEPT","INTERSECT","MINUS"]),jl=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),ql=d(["ON DELETE","ON UPDATE","CHARACTER SET","{ROWS | RANGE} BETWEEN","IDENTIFIED BY"]),Ql={name:"singlestoredb",tokenizerOptions:{reservedSelect:Kl,reservedClauses:[...Jl,...fn],reservedSetOperations:kl,reservedJoins:jl,reservedPhrases:ql,reservedKeywords:Wl,reservedDataTypes:Xl,reservedFunctionNames:$l,stringTypes:['""-qq-bs',"''-qq-bs",{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:["``"],identChars:{first:"$",rest:"$",allowFirstCharNumber:!0},variableTypes:[{regex:"@@?[A-Za-z0-9_$]+"},{quote:"``",prefixes:["@"],requirePrefix:!0}],lineCommentTypes:["--","#"],operators:[":=","&","|","^","~","<<",">>","<=>","&&","||","::","::$","::%",":>","!:>","*.*"],postProcess:Zr},formatOptions:{alwaysDenseOperators:["::","::$","::%"],onelineClauses:fn}},Zl=["ABS","ACOS","ACOSH","ADD_MONTHS","ALL_USER_NAMES","ANY_VALUE","APPROX_COUNT_DISTINCT","APPROX_PERCENTILE","APPROX_PERCENTILE_ACCUMULATE","APPROX_PERCENTILE_COMBINE","APPROX_PERCENTILE_ESTIMATE","APPROX_TOP_K","APPROX_TOP_K_ACCUMULATE","APPROX_TOP_K_COMBINE","APPROX_TOP_K_ESTIMATE","APPROXIMATE_JACCARD_INDEX","APPROXIMATE_SIMILARITY","ARRAY_AGG","ARRAY_APPEND","ARRAY_CAT","ARRAY_COMPACT","ARRAY_CONSTRUCT","ARRAY_CONSTRUCT_COMPACT","ARRAY_CONTAINS","ARRAY_INSERT","ARRAY_INTERSECTION","ARRAY_POSITION","ARRAY_PREPEND","ARRAY_SIZE","ARRAY_SLICE","ARRAY_TO_STRING","ARRAY_UNION_AGG","ARRAY_UNIQUE_AGG","ARRAYS_OVERLAP","AS_ARRAY","AS_BINARY","AS_BOOLEAN","AS_CHAR","AS_VARCHAR","AS_DATE","AS_DECIMAL","AS_NUMBER","AS_DOUBLE","AS_REAL","AS_INTEGER","AS_OBJECT","AS_TIME","AS_TIMESTAMP_LTZ","AS_TIMESTAMP_NTZ","AS_TIMESTAMP_TZ","ASCII","ASIN","ASINH","ATAN","ATAN2","ATANH","AUTO_REFRESH_REGISTRATION_HISTORY","AUTOMATIC_CLUSTERING_HISTORY","AVG","BASE64_DECODE_BINARY","BASE64_DECODE_STRING","BASE64_ENCODE","BIT_LENGTH","BITAND","BITAND_AGG","BITMAP_BIT_POSITION","BITMAP_BUCKET_NUMBER","BITMAP_CONSTRUCT_AGG","BITMAP_COUNT","BITMAP_OR_AGG","BITNOT","BITOR","BITOR_AGG","BITSHIFTLEFT","BITSHIFTRIGHT","BITXOR","BITXOR_AGG","BOOLAND","BOOLAND_AGG","BOOLNOT","BOOLOR","BOOLOR_AGG","BOOLXOR","BOOLXOR_AGG","BUILD_SCOPED_FILE_URL","BUILD_STAGE_FILE_URL","CASE","CAST","CBRT","CEIL","CHARINDEX","CHECK_JSON","CHECK_XML","CHR","CHAR","COALESCE","COLLATE","COLLATION","COMPLETE_TASK_GRAPHS","COMPRESS","CONCAT","CONCAT_WS","CONDITIONAL_CHANGE_EVENT","CONDITIONAL_TRUE_EVENT","CONTAINS","CONVERT_TIMEZONE","COPY_HISTORY","CORR","COS","COSH","COT","COUNT","COUNT_IF","COVAR_POP","COVAR_SAMP","CUME_DIST","CURRENT_ACCOUNT","CURRENT_AVAILABLE_ROLES","CURRENT_CLIENT","CURRENT_DATABASE","CURRENT_DATE","CURRENT_IP_ADDRESS","CURRENT_REGION","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_SCHEMAS","CURRENT_SECONDARY_ROLES","CURRENT_SESSION","CURRENT_STATEMENT","CURRENT_TASK_GRAPHS","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TRANSACTION","CURRENT_USER","CURRENT_VERSION","CURRENT_WAREHOUSE","DATA_TRANSFER_HISTORY","DATABASE_REFRESH_HISTORY","DATABASE_REFRESH_PROGRESS","DATABASE_REFRESH_PROGRESS_BY_JOB","DATABASE_STORAGE_USAGE_HISTORY","DATE_FROM_PARTS","DATE_PART","DATE_TRUNC","DATEADD","DATEDIFF","DAYNAME","DECODE","DECOMPRESS_BINARY","DECOMPRESS_STRING","DECRYPT","DECRYPT_RAW","DEGREES","DENSE_RANK","DIV0","EDITDISTANCE","ENCRYPT","ENCRYPT_RAW","ENDSWITH","EQUAL_NULL","EXP","EXPLAIN_JSON","EXTERNAL_FUNCTIONS_HISTORY","EXTERNAL_TABLE_FILES","EXTERNAL_TABLE_FILE_REGISTRATION_HISTORY","EXTRACT","EXTRACT_SEMANTIC_CATEGORIES","FACTORIAL","FIRST_VALUE","FLATTEN","FLOOR","GENERATE_COLUMN_DESCRIPTION","GENERATOR","GET","GET_ABSOLUTE_PATH","GET_DDL","GET_IGNORE_CASE","GET_OBJECT_REFERENCES","GET_PATH","GET_PRESIGNED_URL","GET_RELATIVE_PATH","GET_STAGE_LOCATION","GETBIT","GREATEST","GROUPING","GROUPING_ID","HASH","HASH_AGG","HAVERSINE","HEX_DECODE_BINARY","HEX_DECODE_STRING","HEX_ENCODE","HLL","HLL_ACCUMULATE","HLL_COMBINE","HLL_ESTIMATE","HLL_EXPORT","HLL_IMPORT","HOUR","MINUTE","SECOND","IFF","IFNULL","ILIKE","ILIKE ANY","INFER_SCHEMA","INITCAP","INSERT","INVOKER_ROLE","INVOKER_SHARE","IS_ARRAY","IS_BINARY","IS_BOOLEAN","IS_CHAR","IS_VARCHAR","IS_DATE","IS_DATE_VALUE","IS_DECIMAL","IS_DOUBLE","IS_REAL","IS_GRANTED_TO_INVOKER_ROLE","IS_INTEGER","IS_NULL_VALUE","IS_OBJECT","IS_ROLE_IN_SESSION","IS_TIME","IS_TIMESTAMP_LTZ","IS_TIMESTAMP_NTZ","IS_TIMESTAMP_TZ","JAROWINKLER_SIMILARITY","JSON_EXTRACT_PATH_TEXT","KURTOSIS","LAG","LAST_DAY","LAST_QUERY_ID","LAST_TRANSACTION","LAST_VALUE","LEAD","LEAST","LEFT","LENGTH","LEN","LIKE","LIKE ALL","LIKE ANY","LISTAGG","LN","LOCALTIME","LOCALTIMESTAMP","LOG","LOGIN_HISTORY","LOGIN_HISTORY_BY_USER","LOWER","LPAD","LTRIM","MATERIALIZED_VIEW_REFRESH_HISTORY","MD5","MD5_HEX","MD5_BINARY","MD5_NUMBER — Obsoleted","MD5_NUMBER_LOWER64","MD5_NUMBER_UPPER64","MEDIAN","MIN","MAX","MINHASH","MINHASH_COMBINE","MOD","MODE","MONTHNAME","MONTHS_BETWEEN","NEXT_DAY","NORMAL","NTH_VALUE","NTILE","NULLIF","NULLIFZERO","NVL","NVL2","OBJECT_AGG","OBJECT_CONSTRUCT","OBJECT_CONSTRUCT_KEEP_NULL","OBJECT_DELETE","OBJECT_INSERT","OBJECT_KEYS","OBJECT_PICK","OCTET_LENGTH","PARSE_IP","PARSE_JSON","PARSE_URL","PARSE_XML","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","PI","PIPE_USAGE_HISTORY","POLICY_CONTEXT","POLICY_REFERENCES","POSITION","POW","POWER","PREVIOUS_DAY","QUERY_ACCELERATION_HISTORY","QUERY_HISTORY","QUERY_HISTORY_BY_SESSION","QUERY_HISTORY_BY_USER","QUERY_HISTORY_BY_WAREHOUSE","RADIANS","RANDOM","RANDSTR","RANK","RATIO_TO_REPORT","REGEXP","REGEXP_COUNT","REGEXP_INSTR","REGEXP_LIKE","REGEXP_REPLACE","REGEXP_SUBSTR","REGEXP_SUBSTR_ALL","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","REGR_VALX","REGR_VALY","REPEAT","REPLACE","REPLICATION_GROUP_REFRESH_HISTORY","REPLICATION_GROUP_REFRESH_PROGRESS","REPLICATION_GROUP_REFRESH_PROGRESS_BY_JOB","REPLICATION_GROUP_USAGE_HISTORY","REPLICATION_USAGE_HISTORY","REST_EVENT_HISTORY","RESULT_SCAN","REVERSE","RIGHT","RLIKE","ROUND","ROW_NUMBER","RPAD","RTRIM","RTRIMMED_LENGTH","SEARCH_OPTIMIZATION_HISTORY","SEQ1","SEQ2","SEQ4","SEQ8","SERVERLESS_TASK_HISTORY","SHA1","SHA1_HEX","SHA1_BINARY","SHA2","SHA2_HEX","SHA2_BINARY","SIGN","SIN","SINH","SKEW","SOUNDEX","SPACE","SPLIT","SPLIT_PART","SPLIT_TO_TABLE","SQRT","SQUARE","ST_AREA","ST_ASEWKB","ST_ASEWKT","ST_ASGEOJSON","ST_ASWKB","ST_ASBINARY","ST_ASWKT","ST_ASTEXT","ST_AZIMUTH","ST_CENTROID","ST_COLLECT","ST_CONTAINS","ST_COVEREDBY","ST_COVERS","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_DWITHIN","ST_ENDPOINT","ST_ENVELOPE","ST_GEOGFROMGEOHASH","ST_GEOGPOINTFROMGEOHASH","ST_GEOGRAPHYFROMWKB","ST_GEOGRAPHYFROMWKT","ST_GEOHASH","ST_GEOMETRYFROMWKB","ST_GEOMETRYFROMWKT","ST_HAUSDORFFDISTANCE","ST_INTERSECTION","ST_INTERSECTS","ST_LENGTH","ST_MAKEGEOMPOINT","ST_GEOM_POINT","ST_MAKELINE","ST_MAKEPOINT","ST_POINT","ST_MAKEPOLYGON","ST_POLYGON","ST_NPOINTS","ST_NUMPOINTS","ST_PERIMETER","ST_POINTN","ST_SETSRID","ST_SIMPLIFY","ST_SRID","ST_STARTPOINT","ST_SYMDIFFERENCE","ST_UNION","ST_WITHIN","ST_X","ST_XMAX","ST_XMIN","ST_Y","ST_YMAX","ST_YMIN","STAGE_DIRECTORY_FILE_REGISTRATION_HISTORY","STAGE_STORAGE_USAGE_HISTORY","STARTSWITH","STDDEV","STDDEV_POP","STDDEV_SAMP","STRIP_NULL_VALUE","STRTOK","STRTOK_SPLIT_TO_TABLE","STRTOK_TO_ARRAY","SUBSTR","SUBSTRING","SUM","SYSDATE","SYSTEM$ABORT_SESSION","SYSTEM$ABORT_TRANSACTION","SYSTEM$AUTHORIZE_PRIVATELINK","SYSTEM$AUTHORIZE_STAGE_PRIVATELINK_ACCESS","SYSTEM$BEHAVIOR_CHANGE_BUNDLE_STATUS","SYSTEM$CANCEL_ALL_QUERIES","SYSTEM$CANCEL_QUERY","SYSTEM$CLUSTERING_DEPTH","SYSTEM$CLUSTERING_INFORMATION","SYSTEM$CLUSTERING_RATIO ","SYSTEM$CURRENT_USER_TASK_NAME","SYSTEM$DATABASE_REFRESH_HISTORY ","SYSTEM$DATABASE_REFRESH_PROGRESS","SYSTEM$DATABASE_REFRESH_PROGRESS_BY_JOB ","SYSTEM$DISABLE_BEHAVIOR_CHANGE_BUNDLE","SYSTEM$DISABLE_DATABASE_REPLICATION","SYSTEM$ENABLE_BEHAVIOR_CHANGE_BUNDLE","SYSTEM$ESTIMATE_QUERY_ACCELERATION","SYSTEM$ESTIMATE_SEARCH_OPTIMIZATION_COSTS","SYSTEM$EXPLAIN_JSON_TO_TEXT","SYSTEM$EXPLAIN_PLAN_JSON","SYSTEM$EXTERNAL_TABLE_PIPE_STATUS","SYSTEM$GENERATE_SAML_CSR","SYSTEM$GENERATE_SCIM_ACCESS_TOKEN","SYSTEM$GET_AWS_SNS_IAM_POLICY","SYSTEM$GET_PREDECESSOR_RETURN_VALUE","SYSTEM$GET_PRIVATELINK","SYSTEM$GET_PRIVATELINK_AUTHORIZED_ENDPOINTS","SYSTEM$GET_PRIVATELINK_CONFIG","SYSTEM$GET_SNOWFLAKE_PLATFORM_INFO","SYSTEM$GET_TAG","SYSTEM$GET_TAG_ALLOWED_VALUES","SYSTEM$GET_TAG_ON_CURRENT_COLUMN","SYSTEM$GET_TAG_ON_CURRENT_TABLE","SYSTEM$GLOBAL_ACCOUNT_SET_PARAMETER","SYSTEM$LAST_CHANGE_COMMIT_TIME","SYSTEM$LINK_ACCOUNT_OBJECTS_BY_NAME","SYSTEM$MIGRATE_SAML_IDP_REGISTRATION","SYSTEM$PIPE_FORCE_RESUME","SYSTEM$PIPE_STATUS","SYSTEM$REVOKE_PRIVATELINK","SYSTEM$REVOKE_STAGE_PRIVATELINK_ACCESS","SYSTEM$SET_RETURN_VALUE","SYSTEM$SHOW_OAUTH_CLIENT_SECRETS","SYSTEM$STREAM_GET_TABLE_TIMESTAMP","SYSTEM$STREAM_HAS_DATA","SYSTEM$TASK_DEPENDENTS_ENABLE","SYSTEM$TYPEOF","SYSTEM$USER_TASK_CANCEL_ONGOING_EXECUTIONS","SYSTEM$VERIFY_EXTERNAL_OAUTH_TOKEN","SYSTEM$WAIT","SYSTEM$WHITELIST","SYSTEM$WHITELIST_PRIVATELINK","TAG_REFERENCES","TAG_REFERENCES_ALL_COLUMNS","TAG_REFERENCES_WITH_LINEAGE","TAN","TANH","TASK_DEPENDENTS","TASK_HISTORY","TIME_FROM_PARTS","TIME_SLICE","TIMEADD","TIMEDIFF","TIMESTAMP_FROM_PARTS","TIMESTAMPADD","TIMESTAMPDIFF","TO_ARRAY","TO_BINARY","TO_BOOLEAN","TO_CHAR","TO_VARCHAR","TO_DATE","DATE","TO_DECIMAL","TO_NUMBER","TO_NUMERIC","TO_DOUBLE","TO_GEOGRAPHY","TO_GEOMETRY","TO_JSON","TO_OBJECT","TO_TIME","TIME","TO_TIMESTAMP","TO_TIMESTAMP_LTZ","TO_TIMESTAMP_NTZ","TO_TIMESTAMP_TZ","TO_VARIANT","TO_XML","TRANSLATE","TRIM","TRUNCATE","TRUNC","TRUNC","TRY_BASE64_DECODE_BINARY","TRY_BASE64_DECODE_STRING","TRY_CAST","TRY_HEX_DECODE_BINARY","TRY_HEX_DECODE_STRING","TRY_PARSE_JSON","TRY_TO_BINARY","TRY_TO_BOOLEAN","TRY_TO_DATE","TRY_TO_DECIMAL","TRY_TO_NUMBER","TRY_TO_NUMERIC","TRY_TO_DOUBLE","TRY_TO_GEOGRAPHY","TRY_TO_GEOMETRY","TRY_TO_TIME","TRY_TO_TIMESTAMP","TRY_TO_TIMESTAMP_LTZ","TRY_TO_TIMESTAMP_NTZ","TRY_TO_TIMESTAMP_TZ","TYPEOF","UNICODE","UNIFORM","UPPER","UUID_STRING","VALIDATE","VALIDATE_PIPE_LOAD","VAR_POP","VAR_SAMP","VARIANCE","VARIANCE_SAMP","VARIANCE_POP","WAREHOUSE_LOAD_HISTORY","WAREHOUSE_METERING_HISTORY","WIDTH_BUCKET","XMLGET","YEAR","YEAROFWEEK","YEAROFWEEKISO","DAY","DAYOFMONTH","DAYOFWEEK","DAYOFWEEKISO","DAYOFYEAR","WEEK","WEEK","WEEKOFYEAR","WEEKISO","MONTH","QUARTER","ZEROIFNULL","ZIPF"],zl=["ACCOUNT","ALL","ALTER","AND","ANY","AS","BETWEEN","BY","CASE","CAST","CHECK","COLUMN","CONNECT","CONNECTION","CONSTRAINT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","DATABASE","DELETE","DISTINCT","DROP","ELSE","EXISTS","FALSE","FOLLOWING","FOR","FROM","FULL","GRANT","GROUP","GSCLUSTER","HAVING","ILIKE","IN","INCREMENT","INNER","INSERT","INTERSECT","INTO","IS","ISSUE","JOIN","LATERAL","LEFT","LIKE","LOCALTIME","LOCALTIMESTAMP","MINUS","NATURAL","NOT","NULL","OF","ON","OR","ORDER","ORGANIZATION","QUALIFY","REGEXP","REVOKE","RIGHT","RLIKE","ROW","ROWS","SAMPLE","SCHEMA","SELECT","SET","SOME","START","TABLE","TABLESAMPLE","THEN","TO","TRIGGER","TRUE","TRY_CAST","UNION","UNIQUE","UPDATE","USING","VALUES","VIEW","WHEN","WHENEVER","WHERE","WITH","COMMENT"],e_=["NUMBER","DECIMAL","NUMERIC","INT","INTEGER","BIGINT","SMALLINT","TINYINT","BYTEINT","FLOAT","FLOAT4","FLOAT8","DOUBLE","DOUBLE PRECISION","REAL","VARCHAR","CHAR","CHARACTER","STRING","TEXT","BINARY","VARBINARY","BOOLEAN","DATE","DATETIME","TIME","TIMESTAMP","TIMESTAMP_LTZ","TIMESTAMP_NTZ","TIMESTAMP","TIMESTAMP_TZ","VARIANT","OBJECT","ARRAY","GEOGRAPHY","GEOMETRY"],E_=d(["SELECT [ALL | DISTINCT]"]),t_=d(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY","QUALIFY","LIMIT","OFFSET","FETCH [FIRST | NEXT]","INSERT [OVERWRITE] [ALL INTO | INTO | ALL | FIRST]","{THEN | ELSE} INTO","VALUES","SET","CLUSTER BY","[WITH] {MASKING POLICY | TAG | ROW ACCESS POLICY}","COPY GRANTS","USING TEMPLATE","MERGE INTO","WHEN MATCHED [AND]","THEN {UPDATE SET | DELETE}","WHEN NOT MATCHED THEN INSERT"]),Pn=d(["CREATE [OR REPLACE] [VOLATILE] TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] [LOCAL | GLOBAL] {TEMP|TEMPORARY} TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] [SECURE] [RECURSIVE] VIEW [IF NOT EXISTS]","UPDATE","DELETE FROM","DROP TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS]","RENAME TO","SWAP WITH","[SUSPEND | RESUME] RECLUSTER","DROP CLUSTERING KEY","ADD [COLUMN]","RENAME COLUMN","{ALTER | MODIFY} [COLUMN]","DROP [COLUMN]","{ADD | ALTER | MODIFY | DROP} [CONSTRAINT]","RENAME CONSTRAINT","{ADD | DROP} SEARCH OPTIMIZATION","{SET | UNSET} TAG","{ADD | DROP} ROW ACCESS POLICY","DROP ALL ROW ACCESS POLICIES","{SET | DROP} DEFAULT","{SET | DROP} NOT NULL","[SET DATA] TYPE","UNSET COMMENT","{SET | UNSET} MASKING POLICY","TRUNCATE [TABLE] [IF EXISTS]","ALTER ACCOUNT","ALTER API INTEGRATION","ALTER CONNECTION","ALTER DATABASE","ALTER EXTERNAL TABLE","ALTER FAILOVER GROUP","ALTER FILE FORMAT","ALTER FUNCTION","ALTER INTEGRATION","ALTER MASKING POLICY","ALTER MATERIALIZED VIEW","ALTER NETWORK POLICY","ALTER NOTIFICATION INTEGRATION","ALTER PIPE","ALTER PROCEDURE","ALTER REPLICATION GROUP","ALTER RESOURCE MONITOR","ALTER ROLE","ALTER ROW ACCESS POLICY","ALTER SCHEMA","ALTER SECURITY INTEGRATION","ALTER SEQUENCE","ALTER SESSION","ALTER SESSION POLICY","ALTER SHARE","ALTER STAGE","ALTER STORAGE INTEGRATION","ALTER STREAM","ALTER TAG","ALTER TASK","ALTER USER","ALTER VIEW","ALTER WAREHOUSE","BEGIN","CALL","COMMIT","COPY INTO","CREATE ACCOUNT","CREATE API INTEGRATION","CREATE CONNECTION","CREATE DATABASE","CREATE EXTERNAL FUNCTION","CREATE EXTERNAL TABLE","CREATE FAILOVER GROUP","CREATE FILE FORMAT","CREATE FUNCTION","CREATE INTEGRATION","CREATE MANAGED ACCOUNT","CREATE MASKING POLICY","CREATE MATERIALIZED VIEW","CREATE NETWORK POLICY","CREATE NOTIFICATION INTEGRATION","CREATE PIPE","CREATE PROCEDURE","CREATE REPLICATION GROUP","CREATE RESOURCE MONITOR","CREATE ROLE","CREATE ROW ACCESS POLICY","CREATE SCHEMA","CREATE SECURITY INTEGRATION","CREATE SEQUENCE","CREATE SESSION POLICY","CREATE SHARE","CREATE STAGE","CREATE STORAGE INTEGRATION","CREATE STREAM","CREATE TAG","CREATE TASK","CREATE USER","CREATE WAREHOUSE","DELETE","DESCRIBE DATABASE","DESCRIBE EXTERNAL TABLE","DESCRIBE FILE FORMAT","DESCRIBE FUNCTION","DESCRIBE INTEGRATION","DESCRIBE MASKING POLICY","DESCRIBE MATERIALIZED VIEW","DESCRIBE NETWORK POLICY","DESCRIBE PIPE","DESCRIBE PROCEDURE","DESCRIBE RESULT","DESCRIBE ROW ACCESS POLICY","DESCRIBE SCHEMA","DESCRIBE SEQUENCE","DESCRIBE SESSION POLICY","DESCRIBE SHARE","DESCRIBE STAGE","DESCRIBE STREAM","DESCRIBE TABLE","DESCRIBE TASK","DESCRIBE TRANSACTION","DESCRIBE USER","DESCRIBE VIEW","DESCRIBE WAREHOUSE","DROP CONNECTION","DROP DATABASE","DROP EXTERNAL TABLE","DROP FAILOVER GROUP","DROP FILE FORMAT","DROP FUNCTION","DROP INTEGRATION","DROP MANAGED ACCOUNT","DROP MASKING POLICY","DROP MATERIALIZED VIEW","DROP NETWORK POLICY","DROP PIPE","DROP PROCEDURE","DROP REPLICATION GROUP","DROP RESOURCE MONITOR","DROP ROLE","DROP ROW ACCESS POLICY","DROP SCHEMA","DROP SEQUENCE","DROP SESSION POLICY","DROP SHARE","DROP STAGE","DROP STREAM","DROP TAG","DROP TASK","DROP USER","DROP VIEW","DROP WAREHOUSE","EXECUTE IMMEDIATE","EXECUTE TASK","EXPLAIN","GET","GRANT OWNERSHIP","GRANT ROLE","INSERT","LIST","MERGE","PUT","REMOVE","REVOKE ROLE","ROLLBACK","SHOW COLUMNS","SHOW CONNECTIONS","SHOW DATABASES","SHOW DATABASES IN FAILOVER GROUP","SHOW DATABASES IN REPLICATION GROUP","SHOW DELEGATED AUTHORIZATIONS","SHOW EXTERNAL FUNCTIONS","SHOW EXTERNAL TABLES","SHOW FAILOVER GROUPS","SHOW FILE FORMATS","SHOW FUNCTIONS","SHOW GLOBAL ACCOUNTS","SHOW GRANTS","SHOW INTEGRATIONS","SHOW LOCKS","SHOW MANAGED ACCOUNTS","SHOW MASKING POLICIES","SHOW MATERIALIZED VIEWS","SHOW NETWORK POLICIES","SHOW OBJECTS","SHOW ORGANIZATION ACCOUNTS","SHOW PARAMETERS","SHOW PIPES","SHOW PRIMARY KEYS","SHOW PROCEDURES","SHOW REGIONS","SHOW REPLICATION ACCOUNTS","SHOW REPLICATION DATABASES","SHOW REPLICATION GROUPS","SHOW RESOURCE MONITORS","SHOW ROLES","SHOW ROW ACCESS POLICIES","SHOW SCHEMAS","SHOW SEQUENCES","SHOW SESSION POLICIES","SHOW SHARES","SHOW SHARES IN FAILOVER GROUP","SHOW SHARES IN REPLICATION GROUP","SHOW STAGES","SHOW STREAMS","SHOW TABLES","SHOW TAGS","SHOW TASKS","SHOW TRANSACTIONS","SHOW USER FUNCTIONS","SHOW USERS","SHOW VARIABLES","SHOW VIEWS","SHOW WAREHOUSES","TRUNCATE MATERIALIZED VIEW","UNDROP DATABASE","UNDROP SCHEMA","UNDROP TABLE","UNDROP TAG","UNSET","USE DATABASE","USE ROLE","USE SCHEMA","USE SECONDARY ROLES","USE WAREHOUSE"]),T_=d(["UNION [ALL]","MINUS","EXCEPT","INTERSECT"]),r_=d(["[INNER] JOIN","[NATURAL] {LEFT | RIGHT | FULL} [OUTER] JOIN","{CROSS | NATURAL} JOIN"]),s_=d(["{ROWS | RANGE} BETWEEN","ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]"]),n_={name:"snowflake",tokenizerOptions:{reservedSelect:E_,reservedClauses:[...t_,...Pn],reservedSetOperations:T_,reservedJoins:r_,reservedPhrases:s_,reservedKeywords:zl,reservedDataTypes:e_,reservedFunctionNames:Zl,stringTypes:["$$","''-qq-bs"],identTypes:['""-qq'],variableTypes:[{regex:"[$][1-9]\\d*"},{regex:"[$][_a-zA-Z][_a-zA-Z0-9$]*"}],extraParens:["[]"],identChars:{rest:"$"},lineCommentTypes:["--","//"],operators:["%","::","||",":","=>"]},formatOptions:{alwaysDenseOperators:[":","::"],onelineClauses:Pn}},bt=e=>e[e.length-1],Ko=e=>e.sort((E,t)=>t.length-E.length||E.localeCompare(t)),oT=e=>e.replace(/\s+/gu," "),ZT=e=>/\n/.test(e),EE=e=>e.replace(/[.*+?^${}()|[\]\\]/gu,"\\$&"),Dn=/\s+/uy,WE=e=>new RegExp(`(?:${e})`,"uy"),R_=e=>e.split("").map(E=>/ /gu.test(E)?"\\s+":`[${E.toUpperCase()}${E.toLowerCase()}]`).join(""),o_=e=>e+"(?:-"+e+")*",A_=({prefixes:e,requirePrefix:E})=>`(?:${e.map(R_).join("|")}${E?"":"|"})`,i_=e=>new RegExp(`(?:${e.map(EE).join("|")}).*?(?=\r
|
16
|
+
`);var B=U.map(function(V){return this.buildFirstStateStack(V,[])||[V]},this);B.forEach(function(V){var $=V[0],J=$.rule.symbols[$.dot],Q=this.getSymbolDisplay(J);a.push("A "+Q+" based on:"),this.displayStateStack(V,a)},this)}return a.push(""),a.join(`
|
17
|
+
`)},n.prototype.displayStateStack=function(o,i){for(var a,I=0,l=0;l<o.length;l++){var U=o[l],B=U.rule.toString(U.dot);B===a?I++:(I>0&&i.push(" ^ "+I+" more lines identical to this"),I=0,i.push(" "+B)),a=B}},n.prototype.getSymbolDisplay=function(o){return R(o)},n.prototype.buildFirstStateStack=function(o,i){if(i.indexOf(o)!==-1)return null;if(o.wantedBy.length===0)return[o];var a=o.wantedBy[0],I=[o].concat(i),l=this.buildFirstStateStack(a,I);return l===null?null:[o].concat(l)},n.prototype.save=function(){var o=this.table[this.current];return o.lexerState=this.lexerState,o},n.prototype.restore=function(o){var i=o.index;this.current=i,this.table[i]=o,this.table.splice(i+1),this.lexerState=o.lexerState,this.results=this.finish()},n.prototype.rewind=function(o){if(!this.options.keepHistory)throw new Error("set option `keepHistory` to enable rewinding");this.restore(this.table[o])},n.prototype.finish=function(){var o=[],i=this.grammar.start,a=this.table[this.table.length-1];return a.states.forEach(function(I){I.rule.name===i&&I.dot===I.rule.symbols.length&&I.reference===0&&I.data!==n.fail&&o.push(I)}),o.map(function(I){return I.data})};function R(o){var i=typeof o;if(i==="string")return o;if(i==="object"){if(o.literal)return JSON.stringify(o.literal);if(o instanceof RegExp)return"character matching "+o;if(o.type)return o.type+" token";if(o.test)return"token matching "+String(o.test);throw new Error("Unknown symbol type: "+o)}}function A(o){var i=typeof o;if(i==="string")return o;if(i==="object"){if(o.literal)return JSON.stringify(o.literal);if(o instanceof RegExp)return o.toString();if(o.type)return"%"+o.type;if(o.test)return"<"+String(o.test)+">";throw new Error("Unknown symbol type: "+o)}}return{Parser:n,Grammar:r,Rule:E}})})(Yo);var qa=Yo.exports;const Qa=fT(qa);var xo=Object.defineProperty,Za=Object.defineProperties,za=Object.getOwnPropertyDescriptors,cT=Object.getOwnPropertySymbols,Vo=Object.prototype.hasOwnProperty,wo=Object.prototype.propertyIsEnumerable,nn=(e,E,t)=>E in e?xo(e,E,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[E]=t,ye=(e,E)=>{for(var t in E||(E={}))Vo.call(E,t)&&nn(e,t,E[t]);if(cT)for(var t of cT(E))wo.call(E,t)&&nn(e,t,E[t]);return e},xe=(e,E)=>Za(e,za(E)),eI=(e,E)=>{var t={};for(var T in e)Vo.call(e,T)&&E.indexOf(T)<0&&(t[T]=e[T]);if(e!=null&&cT)for(var T of cT(e))E.indexOf(T)<0&&wo.call(e,T)&&(t[T]=e[T]);return t},EI=(e,E)=>{for(var t in E)xo(e,t,{get:E[t],enumerable:!0})},Wo={};EI(Wo,{bigquery:()=>cI,db2:()=>mI,db2i:()=>VI,hive:()=>qI,mariadb:()=>sN,mysql:()=>IN,n1ql:()=>fN,plsql:()=>mN,postgresql:()=>wN,redshift:()=>QN,singlestoredb:()=>Zl,snowflake:()=>R_,spark:()=>nl,sql:()=>Dl,sqlite:()=>ll,transactsql:()=>Wl,trino:()=>yl});var d=e=>e.flatMap(tI),tI=e=>RT(rI(e)).map(TI),TI=e=>e.replace(/ +/g," ").trim(),rI=e=>({type:"mandatory_block",items:Qr(e,0)[0]}),Qr=(e,E,t)=>{const T=[];for(;e[E];){const[r,s]=sI(e,E);if(T.push(r),E=s,e[E]==="|")E++;else if(e[E]==="}"||e[E]==="]"){if(t!==e[E])throw new Error(`Unbalanced parenthesis in: ${e}`);return E++,[T,E]}else if(E===e.length){if(t)throw new Error(`Unbalanced parenthesis in: ${e}`);return[T,E]}else throw new Error(`Unexpected "${e[E]}"`)}return[T,E]},sI=(e,E)=>{const t=[];for(;;){const[T,r]=nI(e,E);if(T)t.push(T),E=r;else break}return t.length===1?[t[0],E]:[{type:"concatenation",items:t},E]},nI=(e,E)=>{if(e[E]==="{")return RI(e,E+1);if(e[E]==="[")return oI(e,E+1);{let t="";for(;e[E]&&/[A-Za-z0-9_ ]/.test(e[E]);)t+=e[E],E++;return[t,E]}},RI=(e,E)=>{const[t,T]=Qr(e,E,"}");return[{type:"mandatory_block",items:t},T]},oI=(e,E)=>{const[t,T]=Qr(e,E,"]");return[{type:"optional_block",items:t},T]},RT=e=>{if(typeof e=="string")return[e];if(e.type==="concatenation")return e.items.map(RT).reduce(AI,[""]);if(e.type==="mandatory_block")return e.items.flatMap(RT);if(e.type==="optional_block")return["",...e.items.flatMap(RT)];throw new Error(`Unknown node type: ${e}`)},AI=(e,E)=>{const t=[];for(const T of e)for(const r of E)t.push(T+r);return t},Xo=(e=>(e.QUOTED_IDENTIFIER="QUOTED_IDENTIFIER",e.IDENTIFIER="IDENTIFIER",e.STRING="STRING",e.VARIABLE="VARIABLE",e.RESERVED_DATA_TYPE="RESERVED_DATA_TYPE",e.RESERVED_PARAMETERIZED_DATA_TYPE="RESERVED_PARAMETERIZED_DATA_TYPE",e.RESERVED_KEYWORD="RESERVED_KEYWORD",e.RESERVED_FUNCTION_NAME="RESERVED_FUNCTION_NAME",e.RESERVED_PHRASE="RESERVED_PHRASE",e.RESERVED_SET_OPERATION="RESERVED_SET_OPERATION",e.RESERVED_CLAUSE="RESERVED_CLAUSE",e.RESERVED_SELECT="RESERVED_SELECT",e.RESERVED_JOIN="RESERVED_JOIN",e.ARRAY_IDENTIFIER="ARRAY_IDENTIFIER",e.ARRAY_KEYWORD="ARRAY_KEYWORD",e.CASE="CASE",e.END="END",e.WHEN="WHEN",e.ELSE="ELSE",e.THEN="THEN",e.LIMIT="LIMIT",e.BETWEEN="BETWEEN",e.AND="AND",e.OR="OR",e.XOR="XOR",e.OPERATOR="OPERATOR",e.COMMA="COMMA",e.ASTERISK="ASTERISK",e.DOT="DOT",e.OPEN_PAREN="OPEN_PAREN",e.CLOSE_PAREN="CLOSE_PAREN",e.LINE_COMMENT="LINE_COMMENT",e.BLOCK_COMMENT="BLOCK_COMMENT",e.NUMBER="NUMBER",e.NAMED_PARAMETER="NAMED_PARAMETER",e.QUOTED_PARAMETER="QUOTED_PARAMETER",e.NUMBERED_PARAMETER="NUMBERED_PARAMETER",e.POSITIONAL_PARAMETER="POSITIONAL_PARAMETER",e.CUSTOM_PARAMETER="CUSTOM_PARAMETER",e.DELIMITER="DELIMITER",e.EOF="EOF",e))(Xo||{}),$o=e=>({type:"EOF",raw:"«EOF»",text:"«EOF»",start:e}),nt=$o(1/0),jE=e=>E=>E.type===e.type&&E.text===e.text,VE={ARRAY:jE({text:"ARRAY",type:"RESERVED_DATA_TYPE"}),BY:jE({text:"BY",type:"RESERVED_KEYWORD"}),SET:jE({text:"SET",type:"RESERVED_CLAUSE"}),STRUCT:jE({text:"STRUCT",type:"RESERVED_DATA_TYPE"}),WINDOW:jE({text:"WINDOW",type:"RESERVED_CLAUSE"}),VALUES:jE({text:"VALUES",type:"RESERVED_CLAUSE"})},Ko=e=>e==="RESERVED_DATA_TYPE"||e==="RESERVED_KEYWORD"||e==="RESERVED_FUNCTION_NAME"||e==="RESERVED_PHRASE"||e==="RESERVED_CLAUSE"||e==="RESERVED_SELECT"||e==="RESERVED_SET_OPERATION"||e==="RESERVED_JOIN"||e==="ARRAY_KEYWORD"||e==="CASE"||e==="END"||e==="WHEN"||e==="ELSE"||e==="THEN"||e==="LIMIT"||e==="BETWEEN"||e==="AND"||e==="OR"||e==="XOR",iI=e=>e==="AND"||e==="OR"||e==="XOR",SI=["KEYS.NEW_KEYSET","KEYS.ADD_KEY_FROM_RAW_BYTES","AEAD.DECRYPT_BYTES","AEAD.DECRYPT_STRING","AEAD.ENCRYPT","KEYS.KEYSET_CHAIN","KEYS.KEYSET_FROM_JSON","KEYS.KEYSET_TO_JSON","KEYS.ROTATE_KEYSET","KEYS.KEYSET_LENGTH","ANY_VALUE","ARRAY_AGG","AVG","CORR","COUNT","COUNTIF","COVAR_POP","COVAR_SAMP","MAX","MIN","ST_CLUSTERDBSCAN","STDDEV_POP","STDDEV_SAMP","STRING_AGG","SUM","VAR_POP","VAR_SAMP","ANY_VALUE","ARRAY_AGG","ARRAY_CONCAT_AGG","AVG","BIT_AND","BIT_OR","BIT_XOR","COUNT","COUNTIF","LOGICAL_AND","LOGICAL_OR","MAX","MIN","STRING_AGG","SUM","APPROX_COUNT_DISTINCT","APPROX_QUANTILES","APPROX_TOP_COUNT","APPROX_TOP_SUM","ARRAY_CONCAT","ARRAY_LENGTH","ARRAY_TO_STRING","GENERATE_ARRAY","GENERATE_DATE_ARRAY","GENERATE_TIMESTAMP_ARRAY","ARRAY_REVERSE","OFFSET","SAFE_OFFSET","ORDINAL","SAFE_ORDINAL","BIT_COUNT","PARSE_BIGNUMERIC","PARSE_NUMERIC","SAFE_CAST","CURRENT_DATE","EXTRACT","DATE","DATE_ADD","DATE_SUB","DATE_DIFF","DATE_TRUNC","DATE_FROM_UNIX_DATE","FORMAT_DATE","LAST_DAY","PARSE_DATE","UNIX_DATE","CURRENT_DATETIME","DATETIME","EXTRACT","DATETIME_ADD","DATETIME_SUB","DATETIME_DIFF","DATETIME_TRUNC","FORMAT_DATETIME","LAST_DAY","PARSE_DATETIME","ERROR","EXTERNAL_QUERY","S2_CELLIDFROMPOINT","S2_COVERINGCELLIDS","ST_ANGLE","ST_AREA","ST_ASBINARY","ST_ASGEOJSON","ST_ASTEXT","ST_AZIMUTH","ST_BOUNDARY","ST_BOUNDINGBOX","ST_BUFFER","ST_BUFFERWITHTOLERANCE","ST_CENTROID","ST_CENTROID_AGG","ST_CLOSESTPOINT","ST_CLUSTERDBSCAN","ST_CONTAINS","ST_CONVEXHULL","ST_COVEREDBY","ST_COVERS","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_DUMP","ST_DWITHIN","ST_ENDPOINT","ST_EQUALS","ST_EXTENT","ST_EXTERIORRING","ST_GEOGFROM","ST_GEOGFROMGEOJSON","ST_GEOGFROMTEXT","ST_GEOGFROMWKB","ST_GEOGPOINT","ST_GEOGPOINTFROMGEOHASH","ST_GEOHASH","ST_GEOMETRYTYPE","ST_INTERIORRINGS","ST_INTERSECTION","ST_INTERSECTS","ST_INTERSECTSBOX","ST_ISCOLLECTION","ST_ISEMPTY","ST_LENGTH","ST_MAKELINE","ST_MAKEPOLYGON","ST_MAKEPOLYGONORIENTED","ST_MAXDISTANCE","ST_NPOINTS","ST_NUMGEOMETRIES","ST_NUMPOINTS","ST_PERIMETER","ST_POINTN","ST_SIMPLIFY","ST_SNAPTOGRID","ST_STARTPOINT","ST_TOUCHES","ST_UNION","ST_UNION_AGG","ST_WITHIN","ST_X","ST_Y","FARM_FINGERPRINT","MD5","SHA1","SHA256","SHA512","HLL_COUNT.INIT","HLL_COUNT.MERGE","HLL_COUNT.MERGE_PARTIAL","HLL_COUNT.EXTRACT","MAKE_INTERVAL","EXTRACT","JUSTIFY_DAYS","JUSTIFY_HOURS","JUSTIFY_INTERVAL","JSON_EXTRACT","JSON_QUERY","JSON_EXTRACT_SCALAR","JSON_VALUE","JSON_EXTRACT_ARRAY","JSON_QUERY_ARRAY","JSON_EXTRACT_STRING_ARRAY","JSON_VALUE_ARRAY","TO_JSON_STRING","ABS","SIGN","IS_INF","IS_NAN","IEEE_DIVIDE","RAND","SQRT","POW","POWER","EXP","LN","LOG","LOG10","GREATEST","LEAST","DIV","SAFE_DIVIDE","SAFE_MULTIPLY","SAFE_NEGATE","SAFE_ADD","SAFE_SUBTRACT","MOD","ROUND","TRUNC","CEIL","CEILING","FLOOR","COS","COSH","ACOS","ACOSH","SIN","SINH","ASIN","ASINH","TAN","TANH","ATAN","ATANH","ATAN2","RANGE_BUCKET","FIRST_VALUE","LAST_VALUE","NTH_VALUE","LEAD","LAG","PERCENTILE_CONT","PERCENTILE_DISC","NET.IP_FROM_STRING","NET.SAFE_IP_FROM_STRING","NET.IP_TO_STRING","NET.IP_NET_MASK","NET.IP_TRUNC","NET.IPV4_FROM_INT64","NET.IPV4_TO_INT64","NET.HOST","NET.PUBLIC_SUFFIX","NET.REG_DOMAIN","RANK","DENSE_RANK","PERCENT_RANK","CUME_DIST","NTILE","ROW_NUMBER","SESSION_USER","CORR","COVAR_POP","COVAR_SAMP","STDDEV_POP","STDDEV_SAMP","STDDEV","VAR_POP","VAR_SAMP","VARIANCE","ASCII","BYTE_LENGTH","CHAR_LENGTH","CHARACTER_LENGTH","CHR","CODE_POINTS_TO_BYTES","CODE_POINTS_TO_STRING","CONCAT","CONTAINS_SUBSTR","ENDS_WITH","FORMAT","FROM_BASE32","FROM_BASE64","FROM_HEX","INITCAP","INSTR","LEFT","LENGTH","LPAD","LOWER","LTRIM","NORMALIZE","NORMALIZE_AND_CASEFOLD","OCTET_LENGTH","REGEXP_CONTAINS","REGEXP_EXTRACT","REGEXP_EXTRACT_ALL","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","REPLACE","REPEAT","REVERSE","RIGHT","RPAD","RTRIM","SAFE_CONVERT_BYTES_TO_STRING","SOUNDEX","SPLIT","STARTS_WITH","STRPOS","SUBSTR","SUBSTRING","TO_BASE32","TO_BASE64","TO_CODE_POINTS","TO_HEX","TRANSLATE","TRIM","UNICODE","UPPER","CURRENT_TIME","TIME","EXTRACT","TIME_ADD","TIME_SUB","TIME_DIFF","TIME_TRUNC","FORMAT_TIME","PARSE_TIME","CURRENT_TIMESTAMP","EXTRACT","STRING","TIMESTAMP","TIMESTAMP_ADD","TIMESTAMP_SUB","TIMESTAMP_DIFF","TIMESTAMP_TRUNC","FORMAT_TIMESTAMP","PARSE_TIMESTAMP","TIMESTAMP_SECONDS","TIMESTAMP_MILLIS","TIMESTAMP_MICROS","UNIX_SECONDS","UNIX_MILLIS","UNIX_MICROS","GENERATE_UUID","COALESCE","IF","IFNULL","NULLIF","AVG","BIT_AND","BIT_OR","BIT_XOR","CORR","COUNT","COVAR_POP","COVAR_SAMP","EXACT_COUNT_DISTINCT","FIRST","GROUP_CONCAT","GROUP_CONCAT_UNQUOTED","LAST","MAX","MIN","NEST","NTH","QUANTILES","STDDEV","STDDEV_POP","STDDEV_SAMP","SUM","TOP","UNIQUE","VARIANCE","VAR_POP","VAR_SAMP","BIT_COUNT","BOOLEAN","BYTES","CAST","FLOAT","HEX_STRING","INTEGER","STRING","COALESCE","GREATEST","IFNULL","IS_INF","IS_NAN","IS_EXPLICITLY_DEFINED","LEAST","NVL","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE","DATE_ADD","DATEDIFF","DAY","DAYOFWEEK","DAYOFYEAR","FORMAT_UTC_USEC","HOUR","MINUTE","MONTH","MSEC_TO_TIMESTAMP","NOW","PARSE_UTC_USEC","QUARTER","SEC_TO_TIMESTAMP","SECOND","STRFTIME_UTC_USEC","TIME","TIMESTAMP","TIMESTAMP_TO_MSEC","TIMESTAMP_TO_SEC","TIMESTAMP_TO_USEC","USEC_TO_TIMESTAMP","UTC_USEC_TO_DAY","UTC_USEC_TO_HOUR","UTC_USEC_TO_MONTH","UTC_USEC_TO_WEEK","UTC_USEC_TO_YEAR","WEEK","YEAR","FORMAT_IP","PARSE_IP","FORMAT_PACKED_IP","PARSE_PACKED_IP","JSON_EXTRACT","JSON_EXTRACT_SCALAR","ABS","ACOS","ACOSH","ASIN","ASINH","ATAN","ATANH","ATAN2","CEIL","COS","COSH","DEGREES","EXP","FLOOR","LN","LOG","LOG2","LOG10","PI","POW","RADIANS","RAND","ROUND","SIN","SINH","SQRT","TAN","TANH","REGEXP_MATCH","REGEXP_EXTRACT","REGEXP_REPLACE","CONCAT","INSTR","LEFT","LENGTH","LOWER","LPAD","LTRIM","REPLACE","RIGHT","RPAD","RTRIM","SPLIT","SUBSTR","UPPER","TABLE_DATE_RANGE","TABLE_DATE_RANGE_STRICT","TABLE_QUERY","HOST","DOMAIN","TLD","AVG","COUNT","MAX","MIN","STDDEV","SUM","CUME_DIST","DENSE_RANK","FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","RANK","RATIO_TO_REPORT","ROW_NUMBER","CURRENT_USER","EVERY","FROM_BASE64","HASH","FARM_FINGERPRINT","IF","POSITION","SHA1","SOME","TO_BASE64","BQ.JOBS.CANCEL","BQ.REFRESH_MATERIALIZED_VIEW","OPTIONS","PIVOT","UNPIVOT"],OI=["ALL","AND","ANY","AS","ASC","ASSERT_ROWS_MODIFIED","AT","BETWEEN","BY","CASE","CAST","COLLATE","CONTAINS","CREATE","CROSS","CUBE","CURRENT","DEFAULT","DEFINE","DESC","DISTINCT","ELSE","END","ENUM","ESCAPE","EXCEPT","EXCLUDE","EXISTS","EXTRACT","FALSE","FETCH","FOLLOWING","FOR","FROM","FULL","GROUP","GROUPING","GROUPS","HASH","HAVING","IF","IGNORE","IN","INNER","INTERSECT","INTO","IS","JOIN","LATERAL","LEFT","LIMIT","LOOKUP","MERGE","NATURAL","NEW","NO","NOT","NULL","NULLS","OF","ON","OR","ORDER","OUTER","OVER","PARTITION","PRECEDING","PROTO","RANGE","RECURSIVE","RESPECT","RIGHT","ROLLUP","ROWS","SELECT","SET","SOME","TABLE","TABLESAMPLE","THEN","TO","TREAT","TRUE","UNBOUNDED","UNION","UNNEST","USING","WHEN","WHERE","WINDOW","WITH","WITHIN","SAFE","LIKE","COPY","CLONE","IN","OUT","INOUT","RETURNS","LANGUAGE","CASCADE","RESTRICT","DETERMINISTIC"],aI=["ARRAY","BOOL","BYTES","DATE","DATETIME","GEOGRAPHY","INTERVAL","INT64","INT","SMALLINT","INTEGER","BIGINT","TINYINT","BYTEINT","NUMERIC","DECIMAL","BIGNUMERIC","BIGDECIMAL","FLOAT64","STRING","STRUCT","TIME","TIMEZONE"],II=d(["SELECT [ALL | DISTINCT] [AS STRUCT | AS VALUE]"]),NI=d(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","QUALIFY","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","OMIT RECORD IF","INSERT [INTO]","VALUES","SET","MERGE [INTO]","WHEN [NOT] MATCHED [BY SOURCE | BY TARGET] [THEN]","UPDATE SET","CLUSTER BY","FOR SYSTEM_TIME AS OF","WITH CONNECTION","WITH PARTITION COLUMNS","REMOTE WITH CONNECTION"]),Rn=d(["CREATE [OR REPLACE] [TEMP|TEMPORARY|SNAPSHOT|EXTERNAL] TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] [MATERIALIZED] VIEW [IF NOT EXISTS]","UPDATE","DELETE [FROM]","DROP [SNAPSHOT | EXTERNAL] TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS]","ADD COLUMN [IF NOT EXISTS]","DROP COLUMN [IF EXISTS]","RENAME TO","ALTER COLUMN [IF EXISTS]","SET DEFAULT COLLATE","SET OPTIONS","DROP NOT NULL","SET DATA TYPE","ALTER SCHEMA [IF EXISTS]","ALTER [MATERIALIZED] VIEW [IF EXISTS]","ALTER BI_CAPACITY","TRUNCATE TABLE","CREATE SCHEMA [IF NOT EXISTS]","DEFAULT COLLATE","CREATE [OR REPLACE] [TEMP|TEMPORARY|TABLE] FUNCTION [IF NOT EXISTS]","CREATE [OR REPLACE] PROCEDURE [IF NOT EXISTS]","CREATE [OR REPLACE] ROW ACCESS POLICY [IF NOT EXISTS]","GRANT TO","FILTER USING","CREATE CAPACITY","AS JSON","CREATE RESERVATION","CREATE ASSIGNMENT","CREATE SEARCH INDEX [IF NOT EXISTS]","DROP SCHEMA [IF EXISTS]","DROP [MATERIALIZED] VIEW [IF EXISTS]","DROP [TABLE] FUNCTION [IF EXISTS]","DROP PROCEDURE [IF EXISTS]","DROP ROW ACCESS POLICY","DROP ALL ROW ACCESS POLICIES","DROP CAPACITY [IF EXISTS]","DROP RESERVATION [IF EXISTS]","DROP ASSIGNMENT [IF EXISTS]","DROP SEARCH INDEX [IF EXISTS]","DROP [IF EXISTS]","GRANT","REVOKE","DECLARE","EXECUTE IMMEDIATE","LOOP","END LOOP","REPEAT","END REPEAT","WHILE","END WHILE","BREAK","LEAVE","CONTINUE","ITERATE","FOR","END FOR","BEGIN","BEGIN TRANSACTION","COMMIT TRANSACTION","ROLLBACK TRANSACTION","RAISE","RETURN","CALL","ASSERT","EXPORT DATA"]),lI=d(["UNION {ALL | DISTINCT}","EXCEPT DISTINCT","INTERSECT DISTINCT"]),_I=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN"]),CI=d(["TABLESAMPLE SYSTEM","ANY TYPE","ALL COLUMNS","NOT DETERMINISTIC","{ROWS | RANGE} BETWEEN","IS [NOT] DISTINCT FROM"]),cI={name:"bigquery",tokenizerOptions:{reservedSelect:II,reservedClauses:[...NI,...Rn],reservedSetOperations:lI,reservedJoins:_I,reservedPhrases:CI,reservedKeywords:OI,reservedDataTypes:aI,reservedFunctionNames:SI,extraParens:["[]"],stringTypes:[{quote:'""".."""',prefixes:["R","B","RB","BR"]},{quote:"'''..'''",prefixes:["R","B","RB","BR"]},'""-bs',"''-bs",{quote:'""-raw',prefixes:["R","B","RB","BR"],requirePrefix:!0},{quote:"''-raw",prefixes:["R","B","RB","BR"],requirePrefix:!0}],identTypes:["``"],identChars:{dashes:!0},paramTypes:{positional:!0,named:["@"],quoted:["@"]},variableTypes:[{regex:String.raw`@@\w+`}],lineCommentTypes:["--","#"],operators:["&","|","^","~",">>","<<","||","=>"],postProcess:LI},formatOptions:{onelineClauses:Rn}};function LI(e){return uI(pI(e))}function uI(e){let E=nt;return e.map(t=>t.text==="OFFSET"&&E.text==="["?(E=t,xe(ye({},t),{type:"RESERVED_FUNCTION_NAME"})):(E=t,t))}function pI(e){var E;const t=[];for(let T=0;T<e.length;T++){const r=e[T];if((VE.ARRAY(r)||VE.STRUCT(r))&&((E=e[T+1])==null?void 0:E.text)==="<"){const s=fI(e,T+1),n=e.slice(T,s+1);t.push({type:"IDENTIFIER",raw:n.map(on("raw")).join(""),text:n.map(on("text")).join(""),start:r.start}),T=s}else t.push(r)}return t}var on=e=>E=>E.type==="IDENTIFIER"||E.type==="COMMA"?E[e]+" ":E[e];function fI(e,E){let t=0;for(let T=E;T<e.length;T++){const r=e[T];if(r.text==="<"?t++:r.text===">"?t--:r.text===">>"&&(t-=2),t===0)return T}return e.length-1}var PI=["ARRAY_AGG","AVG","CORRELATION","COUNT","COUNT_BIG","COVARIANCE","COVARIANCE_SAMP","CUME_DIST","GROUPING","LISTAGG","MAX","MEDIAN","MIN","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_ICPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV","STDDEV_SAMP","SUM","VARIANCE","VARIANCE_SAMP","XMLAGG","XMLGROUP","ABS","ABSVAL","ACOS","ADD_DAYS","ADD_HOURS","ADD_MINUTES","ADD_MONTHS","ADD_SECONDS","ADD_YEARS","AGE","ARRAY_DELETE","ARRAY_FIRST","ARRAY_LAST","ARRAY_NEXT","ARRAY_PRIOR","ASCII","ASCII_STR","ASIN","ATAN","ATAN2","ATANH","BITAND","BITANDNOT","BITOR","BITXOR","BITNOT","BPCHAR","BSON_TO_JSON","BTRIM","CARDINALITY","CEILING","CEIL","CHARACTER_LENGTH","CHR","COALESCE","COLLATION_KEY","COLLATION_KEY_BIT","COMPARE_DECFLOAT","CONCAT","COS","COSH","COT","CURSOR_ROWCOUNT","DATAPARTITIONNUM","DATE_PART","DATE_TRUNC","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFWEEK_ISO","DAYOFYEAR","DAYS","DAYS_BETWEEN","DAYS_TO_END_OF_MONTH","DBPARTITIONNUM","DECFLOAT","DECFLOAT_FORMAT","DECODE","DECRYPT_BIN","DECRYPT_CHAR","DEGREES","DEREF","DIFFERENCE","DIGITS","DOUBLE_PRECISION","EMPTY_BLOB","EMPTY_CLOB","EMPTY_DBCLOB","EMPTY_NCLOB","ENCRYPT","EVENT_MON_STATE","EXP","EXTRACT","FIRST_DAY","FLOOR","FROM_UTC_TIMESTAMP","GENERATE_UNIQUE","GETHINT","GREATEST","HASH","HASH4","HASH8","HASHEDVALUE","HEX","HEXTORAW","HOUR","HOURS_BETWEEN","IDENTITY_VAL_LOCAL","IFNULL","INITCAP","INSERT","INSTR","INSTR2","INSTR4","INSTRB","INTNAND","INTNOR","INTNXOR","INTNNOT","ISNULL","JSON_ARRAY","JSON_OBJECT","JSON_QUERY","JSON_TO_BSON","JSON_VALUE","JULIAN_DAY","LAST_DAY","LCASE","LEAST","LEFT","LENGTH","LENGTH2","LENGTH4","LENGTHB","LN","LOCATE","LOCATE_IN_STRING","LOG10","LONG_VARCHAR","LONG_VARGRAPHIC","LOWER","LPAD","LTRIM","MAX","MAX_CARDINALITY","MICROSECOND","MIDNIGHT_SECONDS","MIN","MINUTE","MINUTES_BETWEEN","MOD","MONTH","MONTHNAME","MONTHS_BETWEEN","MULTIPLY_ALT","NEXT_DAY","NEXT_MONTH","NEXT_QUARTER","NEXT_WEEK","NEXT_YEAR","NORMALIZE_DECFLOAT","NOW","NULLIF","NVL","NVL2","OCTET_LENGTH","OVERLAY","PARAMETER","POSITION","POSSTR","POW","POWER","QUANTIZE","QUARTER","QUOTE_IDENT","QUOTE_LITERAL","RADIANS","RAISE_ERROR","RAND","RANDOM","RAWTOHEX","REC2XML","REGEXP_COUNT","REGEXP_EXTRACT","REGEXP_INSTR","REGEXP_LIKE","REGEXP_MATCH_COUNT","REGEXP_REPLACE","REGEXP_SUBSTR","REPEAT","REPLACE","RID","RID_BIT","RIGHT","ROUND","ROUND_TIMESTAMP","RPAD","RTRIM","SECLABEL","SECLABEL_BY_NAME","SECLABEL_TO_CHAR","SECOND","SECONDS_BETWEEN","SIGN","SIN","SINH","SOUNDEX","SPACE","SQRT","STRIP","STRLEFT","STRPOS","STRRIGHT","SUBSTR","SUBSTR2","SUBSTR4","SUBSTRB","SUBSTRING","TABLE_NAME","TABLE_SCHEMA","TAN","TANH","THIS_MONTH","THIS_QUARTER","THIS_WEEK","THIS_YEAR","TIMESTAMP_FORMAT","TIMESTAMP_ISO","TIMESTAMPDIFF","TIMEZONE","TO_CHAR","TO_CLOB","TO_DATE","TO_HEX","TO_MULTI_BYTE","TO_NCHAR","TO_NCLOB","TO_NUMBER","TO_SINGLE_BYTE","TO_TIMESTAMP","TO_UTC_TIMESTAMP","TOTALORDER","TRANSLATE","TRIM","TRIM_ARRAY","TRUNC_TIMESTAMP","TRUNCATE","TRUNC","TYPE_ID","TYPE_NAME","TYPE_SCHEMA","UCASE","UNICODE_STR","UPPER","VALUE","VARCHAR_BIT_FORMAT","VARCHAR_FORMAT","VARCHAR_FORMAT_BIT","VERIFY_GROUP_FOR_USER","VERIFY_ROLE_FOR_USER","VERIFY_TRUSTED_CONTEXT_ROLE_FOR_USER","WEEK","WEEK_ISO","WEEKS_BETWEEN","WIDTH_BUCKET","XMLATTRIBUTES","XMLCOMMENT","XMLCONCAT","XMLDOCUMENT","XMLELEMENT","XMLFOREST","XMLNAMESPACES","XMLPARSE","XMLPI","XMLQUERY","XMLROW","XMLSERIALIZE","XMLTEXT","XMLVALIDATE","XMLXSROBJECTID","XSLTRANSFORM","YEAR","YEARS_BETWEEN","YMD_BETWEEN","BASE_TABLE","JSON_TABLE","UNNEST","XMLTABLE","RANK","DENSE_RANK","NTILE","LAG","LEAD","ROW_NUMBER","FIRST_VALUE","LAST_VALUE","NTH_VALUE","RATIO_TO_REPORT","CAST"],DI=["ACTIVATE","ADD","AFTER","ALIAS","ALL","ALLOCATE","ALLOW","ALTER","AND","ANY","AS","ASENSITIVE","ASSOCIATE","ASUTIME","AT","ATTRIBUTES","AUDIT","AUTHORIZATION","AUX","AUXILIARY","BEFORE","BEGIN","BETWEEN","BINARY","BUFFERPOOL","BY","CACHE","CALL","CALLED","CAPTURE","CARDINALITY","CASCADED","CASE","CAST","CHECK","CLONE","CLOSE","CLUSTER","COLLECTION","COLLID","COLUMN","COMMENT","COMMIT","CONCAT","CONDITION","CONNECT","CONNECTION","CONSTRAINT","CONTAINS","CONTINUE","COUNT","COUNT_BIG","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_LC_CTYPE","CURRENT_PATH","CURRENT_SCHEMA","CURRENT_SERVER","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_USER","CURSOR","CYCLE","DATA","DATABASE","DATAPARTITIONNAME","DATAPARTITIONNUM","DAY","DAYS","DB2GENERAL","DB2GENRL","DB2SQL","DBINFO","DBPARTITIONNAME","DBPARTITIONNUM","DEALLOCATE","DECLARE","DEFAULT","DEFAULTS","DEFINITION","DELETE","DENSERANK","DENSE_RANK","DESCRIBE","DESCRIPTOR","DETERMINISTIC","DIAGNOSTICS","DISABLE","DISALLOW","DISCONNECT","DISTINCT","DO","DOCUMENT","DROP","DSSIZE","DYNAMIC","EACH","EDITPROC","ELSE","ELSEIF","ENABLE","ENCODING","ENCRYPTION","END","END-EXEC","ENDING","ERASE","ESCAPE","EVERY","EXCEPT","EXCEPTION","EXCLUDING","EXCLUSIVE","EXECUTE","EXISTS","EXIT","EXPLAIN","EXTENDED","EXTERNAL","EXTRACT","FENCED","FETCH","FIELDPROC","FILE","FINAL","FIRST1","FOR","FOREIGN","FREE","FROM","FULL","FUNCTION","GENERAL","GENERATED","GET","GLOBAL","GO","GOTO","GRANT","GRAPHIC","GROUP","HANDLER","HASH","HASHED_VALUE","HAVING","HINT","HOLD","HOUR","HOURS","IDENTITY","IF","IMMEDIATE","IMPORT","IN","INCLUDING","INCLUSIVE","INCREMENT","INDEX","INDICATOR","INDICATORS","INF","INFINITY","INHERIT","INNER","INOUT","INSENSITIVE","INSERT","INTEGRITY","INTERSECT","INTO","IS","ISNULL","ISOBID","ISOLATION","ITERATE","JAR","JAVA","JOIN","KEEP","KEY","LABEL","LANGUAGE","LAST3","LATERAL","LC_CTYPE","LEAVE","LEFT","LIKE","LIMIT","LINKTYPE","LOCAL","LOCALDATE","LOCALE","LOCALTIME","LOCALTIMESTAMP","LOCATOR","LOCATORS","LOCK","LOCKMAX","LOCKSIZE","LOOP","MAINTAINED","MATERIALIZED","MAXVALUE","MICROSECOND","MICROSECONDS","MINUTE","MINUTES","MINVALUE","MODE","MODIFIES","MONTH","MONTHS","NAN","NEW","NEW_TABLE","NEXTVAL","NO","NOCACHE","NOCYCLE","NODENAME","NODENUMBER","NOMAXVALUE","NOMINVALUE","NONE","NOORDER","NORMALIZED","NOT2","NOTNULL","NULL","NULLS","NUMPARTS","OBID","OF","OFF","OFFSET","OLD","OLD_TABLE","ON","OPEN","OPTIMIZATION","OPTIMIZE","OPTION","OR","ORDER","OUT","OUTER","OVER","OVERRIDING","PACKAGE","PADDED","PAGESIZE","PARAMETER","PART","PARTITION","PARTITIONED","PARTITIONING","PARTITIONS","PASSWORD","PATH","PERCENT","PIECESIZE","PLAN","POSITION","PRECISION","PREPARE","PREVVAL","PRIMARY","PRIQTY","PRIVILEGES","PROCEDURE","PROGRAM","PSID","PUBLIC","QUERY","QUERYNO","RANGE","RANK","READ","READS","RECOVERY","REFERENCES","REFERENCING","REFRESH","RELEASE","RENAME","REPEAT","RESET","RESIGNAL","RESTART","RESTRICT","RESULT","RESULT_SET_LOCATOR","RETURN","RETURNS","REVOKE","RIGHT","ROLE","ROLLBACK","ROUND_CEILING","ROUND_DOWN","ROUND_FLOOR","ROUND_HALF_DOWN","ROUND_HALF_EVEN","ROUND_HALF_UP","ROUND_UP","ROUTINE","ROW","ROWNUMBER","ROWS","ROWSET","ROW_NUMBER","RRN","RUN","SAVEPOINT","SCHEMA","SCRATCHPAD","SCROLL","SEARCH","SECOND","SECONDS","SECQTY","SECURITY","SELECT","SENSITIVE","SEQUENCE","SESSION","SESSION_USER","SET","SIGNAL","SIMPLE","SNAN","SOME","SOURCE","SPECIFIC","SQL","SQLID","STACKED","STANDARD","START","STARTING","STATEMENT","STATIC","STATMENT","STAY","STOGROUP","STORES","STYLE","SUBSTRING","SUMMARY","SYNONYM","SYSFUN","SYSIBM","SYSPROC","SYSTEM","SYSTEM_USER","TABLE","TABLESPACE","THEN","TO","TRANSACTION","TRIGGER","TRIM","TRUNCATE","TYPE","UNDO","UNION","UNIQUE","UNTIL","UPDATE","USAGE","USER","USING","VALIDPROC","VALUE","VALUES","VARIABLE","VARIANT","VCAT","VERSION","VIEW","VOLATILE","VOLUMES","WHEN","WHENEVER","WHERE","WHILE","WITH","WITHOUT","WLM","WRITE","XMLELEMENT","XMLEXISTS","XMLNAMESPACES","YEAR","YEARS"],dI=["ARRAY","BIGINT","BINARY","BLOB","BOOLEAN","CCSID","CHAR","CHARACTER","CLOB","DATE","DATETIME","DBCLOB","DEC","DECIMAL","DOUBLE","DOUBLE PRECISION","FLOAT","FLOAT4","FLOAT8","GRAPHIC","INT","INT2","INT4","INT8","INTEGER","INTERVAL","LONG VARCHAR","LONG VARGRAPHIC","NCHAR","NCHR","NCLOB","NVARCHAR","NUMERIC","SMALLINT","REAL","TIME","TIMESTAMP","VARBINARY","VARCHAR","VARGRAPHIC"],MI=d(["SELECT [ALL | DISTINCT]"]),UI=d(["WITH","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY [INPUT SEQUENCE]","LIMIT","OFFSET","FETCH NEXT","FOR UPDATE [OF]","FOR {READ | FETCH} ONLY","FOR {RR | CS | UR | RS} [USE AND KEEP {SHARE | UPDATE | EXCLUSIVE} LOCKS]","WAIT FOR OUTCOME","SKIP LOCKED DATA","INTO","INSERT INTO","VALUES","SET","MERGE INTO","WHEN [NOT] MATCHED [THEN]","UPDATE SET","INSERT"]),An=d(["CREATE [GLOBAL TEMPORARY | EXTERNAL] TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] VIEW","UPDATE","WHERE CURRENT OF","WITH {RR | RS | CS | UR}","DELETE FROM","DROP TABLE [IF EXISTS]","ALTER TABLE","ADD [COLUMN]","DROP [COLUMN]","RENAME COLUMN","ALTER [COLUMN]","SET DATA TYPE","SET NOT NULL","DROP {DEFAULT | GENERATED | NOT NULL}","TRUNCATE [TABLE]","ALLOCATE","ALTER AUDIT POLICY","ALTER BUFFERPOOL","ALTER DATABASE PARTITION GROUP","ALTER DATABASE","ALTER EVENT MONITOR","ALTER FUNCTION","ALTER HISTOGRAM TEMPLATE","ALTER INDEX","ALTER MASK","ALTER METHOD","ALTER MODULE","ALTER NICKNAME","ALTER PACKAGE","ALTER PERMISSION","ALTER PROCEDURE","ALTER SCHEMA","ALTER SECURITY LABEL COMPONENT","ALTER SECURITY POLICY","ALTER SEQUENCE","ALTER SERVER","ALTER SERVICE CLASS","ALTER STOGROUP","ALTER TABLESPACE","ALTER THRESHOLD","ALTER TRIGGER","ALTER TRUSTED CONTEXT","ALTER TYPE","ALTER USAGE LIST","ALTER USER MAPPING","ALTER VIEW","ALTER WORK ACTION SET","ALTER WORK CLASS SET","ALTER WORKLOAD","ALTER WRAPPER","ALTER XSROBJECT","ALTER STOGROUP","ALTER TABLESPACE","ALTER TRIGGER","ALTER TRUSTED CONTEXT","ALTER VIEW","ASSOCIATE [RESULT SET] {LOCATOR | LOCATORS}","AUDIT","BEGIN DECLARE SECTION","CALL","CLOSE","COMMENT ON","COMMIT [WORK]","CONNECT","CREATE [OR REPLACE] [PUBLIC] ALIAS","CREATE AUDIT POLICY","CREATE BUFFERPOOL","CREATE DATABASE PARTITION GROUP","CREATE EVENT MONITOR","CREATE [OR REPLACE] FUNCTION","CREATE FUNCTION MAPPING","CREATE HISTOGRAM TEMPLATE","CREATE [UNIQUE] INDEX","CREATE INDEX EXTENSION","CREATE [OR REPLACE] MASK","CREATE [SPECIFIC] METHOD","CREATE [OR REPLACE] MODULE","CREATE [OR REPLACE] NICKNAME","CREATE [OR REPLACE] PERMISSION","CREATE [OR REPLACE] PROCEDURE","CREATE ROLE","CREATE SCHEMA","CREATE SECURITY LABEL [COMPONENT]","CREATE SECURITY POLICY","CREATE [OR REPLACE] SEQUENCE","CREATE SERVICE CLASS","CREATE SERVER","CREATE STOGROUP","CREATE SYNONYM","CREATE [LARGE | REGULAR | {SYSTEM | USER} TEMPORARY] TABLESPACE","CREATE THRESHOLD","CREATE {TRANSFORM | TRANSFORMS} FOR","CREATE [OR REPLACE] TRIGGER","CREATE TRUSTED CONTEXT","CREATE [OR REPLACE] TYPE","CREATE TYPE MAPPING","CREATE USAGE LIST","CREATE USER MAPPING FOR","CREATE [OR REPLACE] VARIABLE","CREATE WORK ACTION SET","CREATE WORK CLASS SET","CREATE WORKLOAD","CREATE WRAPPER","DECLARE","DECLARE GLOBAL TEMPORARY TABLE","DESCRIBE [INPUT | OUTPUT]","DISCONNECT","DROP [PUBLIC] ALIAS","DROP AUDIT POLICY","DROP BUFFERPOOL","DROP DATABASE PARTITION GROUP","DROP EVENT MONITOR","DROP [SPECIFIC] FUNCTION","DROP FUNCTION MAPPING","DROP HISTOGRAM TEMPLATE","DROP INDEX [EXTENSION]","DROP MASK","DROP [SPECIFIC] METHOD","DROP MODULE","DROP NICKNAME","DROP PACKAGE","DROP PERMISSION","DROP [SPECIFIC] PROCEDURE","DROP ROLE","DROP SCHEMA","DROP SECURITY LABEL [COMPONENT]","DROP SECURITY POLICY","DROP SEQUENCE","DROP SERVER","DROP SERVICE CLASS","DROP STOGROUP","DROP TABLE HIERARCHY","DROP {TABLESPACE | TABLESPACES}","DROP {TRANSFORM | TRANSFORMS}","DROP THRESHOLD","DROP TRIGGER","DROP TRUSTED CONTEXT","DROP TYPE [MAPPING]","DROP USAGE LIST","DROP USER MAPPING FOR","DROP VARIABLE","DROP VIEW [HIERARCHY]","DROP WORK {ACTION | CLASS} SET","DROP WORKLOAD","DROP WRAPPER","DROP XSROBJECT","END DECLARE SECTION","EXECUTE [IMMEDIATE]","EXPLAIN {PLAN [SECTION] | ALL}","FETCH [FROM]","FLUSH {BUFFERPOOL | BUFFERPOOLS} ALL","FLUSH EVENT MONITOR","FLUSH FEDERATED CACHE","FLUSH OPTIMIZATION PROFILE CACHE","FLUSH PACKAGE CACHE [DYNAMIC]","FLUSH AUTHENTICATION CACHE [FOR ALL]","FREE LOCATOR","GET DIAGNOSTICS","GOTO","GRANT","INCLUDE","ITERATE","LEAVE","LOCK TABLE","LOOP","OPEN","PIPE","PREPARE","REFRESH TABLE","RELEASE","RELEASE [TO] SAVEPOINT","RENAME [TABLE | INDEX | STOGROUP | TABLESPACE]","REPEAT","RESIGNAL","RETURN","REVOKE","ROLLBACK [WORK] [TO SAVEPOINT]","SAVEPOINT","SET COMPILATION ENVIRONMENT","SET CONNECTION","SET CURRENT","SET ENCRYPTION PASSWORD","SET EVENT MONITOR STATE","SET INTEGRITY","SET PASSTHRU","SET PATH","SET ROLE","SET SCHEMA","SET SERVER OPTION","SET {SESSION AUTHORIZATION | SESSION_USER}","SET USAGE LIST","SIGNAL","TRANSFER OWNERSHIP OF","WHENEVER {NOT FOUND | SQLERROR | SQLWARNING}","WHILE"]),hI=d(["UNION [ALL]","EXCEPT [ALL]","INTERSECT [ALL]"]),GI=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN"]),gI=d(["ON DELETE","ON UPDATE","SET NULL","{ROWS | RANGE} BETWEEN"]),mI={name:"db2",tokenizerOptions:{reservedSelect:MI,reservedClauses:[...UI,...An],reservedSetOperations:hI,reservedJoins:GI,reservedPhrases:gI,reservedKeywords:DI,reservedDataTypes:dI,reservedFunctionNames:PI,extraParens:["[]"],stringTypes:[{quote:"''-qq",prefixes:["G","N","U&"]},{quote:"''-raw",prefixes:["X","BX","GX","UX"],requirePrefix:!0}],identTypes:['""-qq'],identChars:{first:"@#$",rest:"@#$"},paramTypes:{positional:!0,named:[":"]},paramChars:{first:"@#$",rest:"@#$"},operators:["**","%","|","&","^","~","¬=","¬>","¬<","!>","!<","^=","^>","^<","||","->","=>"]},formatOptions:{onelineClauses:An}},HI=["ARRAY_AGG","AVG","CORR","CORRELATION","COUNT","COUNT_BIG","COVAR_POP","COVARIANCE","COVAR","COVAR_SAMP","COVARIANCE_SAMP","EVERY","GROUPING","JSON_ARRAYAGG","JSON_OBJECTAGG","LISTAGG","MAX","MEDIAN","MIN","PERCENTILE_CONT","PERCENTILE_DISC","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","SOME","STDDEV_POP","STDDEV","STDDEV_SAMP","SUM","VAR_POP","VARIANCE","VAR","VAR_SAMP","VARIANCE_SAMP","XMLAGG","XMLGROUP","ABS","ABSVAL","ACOS","ADD_DAYS","ADD_HOURS","ADD_MINUTES","ADD_MONTHS","ADD_SECONDS","ADD_YEARS","ANTILOG","ARRAY_MAX_CARDINALITY","ARRAY_TRIM","ASCII","ASIN","ATAN","ATAN2","ATANH","BASE64_DECODE","BASE64_ENCODE","BIT_LENGTH","BITAND","BITANDNOT","BITNOT","BITOR","BITXOR","BSON_TO_JSON","CARDINALITY","CEIL","CEILING","CHAR_LENGTH","CHARACTER_LENGTH","CHR","COALESCE","COMPARE_DECFLOAT","CONCAT","CONTAINS","COS","COSH","COT","CURDATE","CURTIME","DATABASE","DATAPARTITIONNAME","DATAPARTITIONNUM","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK_ISO","DAYOFWEEK","DAYOFYEAR","DAYS","DBPARTITIONNAME","DBPARTITIONNUM","DECFLOAT_FORMAT","DECFLOAT_SORTKEY","DECRYPT_BINARY","DECRYPT_BIT","DECRYPT_CHAR","DECRYPT_DB","DEGREES","DIFFERENCE","DIGITS","DLCOMMENT","DLLINKTYPE","DLURLCOMPLETE","DLURLPATH","DLURLPATHONLY","DLURLSCHEME","DLURLSERVER","DLVALUE","DOUBLE_PRECISION","DOUBLE","ENCRPYT","ENCRYPT_AES","ENCRYPT_AES256","ENCRYPT_RC2","ENCRYPT_TDES","EXP","EXTRACT","FIRST_DAY","FLOOR","GENERATE_UNIQUE","GET_BLOB_FROM_FILE","GET_CLOB_FROM_FILE","GET_DBCLOB_FROM_FILE","GET_XML_FILE","GETHINT","GREATEST","HASH_MD5","HASH_ROW","HASH_SHA1","HASH_SHA256","HASH_SHA512","HASH_VALUES","HASHED_VALUE","HEX","HEXTORAW","HOUR","HTML_ENTITY_DECODE","HTML_ENTITY_ENCODE","HTTP_DELETE_BLOB","HTTP_DELETE","HTTP_GET_BLOB","HTTP_GET","HTTP_PATCH_BLOB","HTTP_PATCH","HTTP_POST_BLOB","HTTP_POST","HTTP_PUT_BLOB","HTTP_PUT","IDENTITY_VAL_LOCAL","IFNULL","INSERT","INSTR","INTERPRET","ISFALSE","ISNOTFALSE","ISNOTTRUE","ISTRUE","JSON_ARRAY","JSON_OBJECT","JSON_QUERY","JSON_TO_BSON","JSON_UPDATE","JSON_VALUE","JULIAN_DAY","LAND","LAST_DAY","LCASE","LEAST","LEFT","LENGTH","LN","LNOT","LOCATE_IN_STRING","LOCATE","LOG10","LOR","LOWER","LPAD","LTRIM","MAX_CARDINALITY","MAX","MICROSECOND","MIDNIGHT_SECONDS","MIN","MINUTE","MOD","MONTH","MONTHNAME","MONTHS_BETWEEN","MQREAD","MQREADCLOB","MQRECEIVE","MQRECEIVECLOB","MQSEND","MULTIPLY_ALT","NEXT_DAY","NORMALIZE_DECFLOAT","NOW","NULLIF","NVL","OCTET_LENGTH","OVERLAY","PI","POSITION","POSSTR","POW","POWER","QUANTIZE","QUARTER","RADIANS","RAISE_ERROR","RANDOM","RAND","REGEXP_COUNT","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","REPEAT","REPLACE","RID","RIGHT","ROUND_TIMESTAMP","ROUND","RPAD","RRN","RTRIM","SCORE","SECOND","SIGN","SIN","SINH","SOUNDEX","SPACE","SQRT","STRIP","STRLEFT","STRPOS","STRRIGHT","SUBSTR","SUBSTRING","TABLE_NAME","TABLE_SCHEMA","TAN","TANH","TIMESTAMP_FORMAT","TIMESTAMP_ISO","TIMESTAMPDIFF_BIG","TIMESTAMPDIFF","TO_CHAR","TO_CLOB","TO_DATE","TO_NUMBER","TO_TIMESTAMP","TOTALORDER","TRANSLATE","TRIM_ARRAY","TRIM","TRUNC_TIMESTAMP","TRUNC","TRUNCATE","UCASE","UPPER","URL_DECODE","URL_ENCODE","VALUE","VARBINARY_FORMAT","VARCHAR_BIT_FORMAT","VARCHAR_FORMAT_BINARY","VARCHAR_FORMAT","VERIFY_GROUP_FOR_USER","WEEK_ISO","WEEK","WRAP","XMLATTRIBUTES","XMLCOMMENT","XMLCONCAT","XMLDOCUMENT","XMLELEMENT","XMLFOREST","XMLNAMESPACES","XMLPARSE","XMLPI","XMLROW","XMLSERIALIZE","XMLTEXT","XMLVALIDATE","XOR","XSLTRANSFORM","YEAR","ZONED","BASE_TABLE","HTTP_DELETE_BLOB_VERBOSE","HTTP_DELETE_VERBOSE","HTTP_GET_BLOB_VERBOSE","HTTP_GET_VERBOSE","HTTP_PATCH_BLOB_VERBOSE","HTTP_PATCH_VERBOSE","HTTP_POST_BLOB_VERBOSE","HTTP_POST_VERBOSE","HTTP_PUT_BLOB_VERBOSE","HTTP_PUT_VERBOSE","JSON_TABLE","MQREADALL","MQREADALLCLOB","MQRECEIVEALL","MQRECEIVEALLCLOB","XMLTABLE","UNPACK","CUME_DIST","DENSE_RANK","FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","RANK","RATIO_TO_REPORT","ROW_NUMBER","CAST"],yI=["ABSENT","ACCORDING","ACCTNG","ACTION","ACTIVATE","ADD","ALIAS","ALL","ALLOCATE","ALLOW","ALTER","AND","ANY","APPEND","APPLNAME","ARRAY","ARRAY_AGG","ARRAY_TRIM","AS","ASC","ASENSITIVE","ASSOCIATE","ATOMIC","ATTACH","ATTRIBUTES","AUTHORIZATION","AUTONOMOUS","BEFORE","BEGIN","BETWEEN","BIND","BSON","BUFFERPOOL","BY","CACHE","CALL","CALLED","CARDINALITY","CASE","CAST","CHECK","CL","CLOSE","CLUSTER","COLLECT","COLLECTION","COLUMN","COMMENT","COMMIT","COMPACT","COMPARISONS","COMPRESS","CONCAT","CONCURRENT","CONDITION","CONNECT","CONNECT_BY_ROOT","CONNECTION","CONSTANT","CONSTRAINT","CONTAINS","CONTENT","CONTINUE","COPY","COUNT","COUNT_BIG","CREATE","CREATEIN","CROSS","CUBE","CUME_DIST","CURRENT","CURRENT_DATE","CURRENT_PATH","CURRENT_SCHEMA","CURRENT_SERVER","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_USER","CURSOR","CYCLE","DATABASE","DATAPARTITIONNAME","DATAPARTITIONNUM","DAY","DAYS","DB2GENERAL","DB2GENRL","DB2SQL","DBINFO","DBPARTITIONNAME","DBPARTITIONNUM","DEACTIVATE","DEALLOCATE","DECLARE","DEFAULT","DEFAULTS","DEFER","DEFINE","DEFINITION","DELETE","DELETING","DENSE_RANK","DENSERANK","DESC","DESCRIBE","DESCRIPTOR","DETACH","DETERMINISTIC","DIAGNOSTICS","DISABLE","DISALLOW","DISCONNECT","DISTINCT","DO","DOCUMENT","DROP","DYNAMIC","EACH","ELSE","ELSEIF","EMPTY","ENABLE","ENCODING","ENCRYPTION","END","END-EXEC","ENDING","ENFORCED","ERROR","ESCAPE","EVERY","EXCEPT","EXCEPTION","EXCLUDING","EXCLUSIVE","EXECUTE","EXISTS","EXIT","EXTEND","EXTERNAL","EXTRACT","FALSE","FENCED","FETCH","FIELDPROC","FILE","FINAL","FIRST_VALUE","FOR","FOREIGN","FORMAT","FREE","FREEPAGE","FROM","FULL","FUNCTION","GBPCACHE","GENERAL","GENERATED","GET","GLOBAL","GO","GOTO","GRANT","GROUP","HANDLER","HASH","HASH_ROW","HASHED_VALUE","HAVING","HINT","HOLD","HOUR","HOURS","IDENTITY","IF","IGNORE","IMMEDIATE","IMPLICITLY","IN","INCLUDE","INCLUDING","INCLUSIVE","INCREMENT","INDEX","INDEXBP","INDICATOR","INF","INFINITY","INHERIT","INLINE","INNER","INOUT","INSENSITIVE","INSERT","INSERTING","INTEGRITY","INTERPRET","INTERSECT","INTO","IS","ISNULL","ISOLATION","ITERATE","JAVA","JOIN","JSON","JSON_ARRAY","JSON_ARRAYAGG","JSON_EXISTS","JSON_OBJECT","JSON_OBJECTAGG","JSON_QUERY","JSON_TABLE","JSON_VALUE","KEEP","KEY","KEYS","LABEL","LAG","LANGUAGE","LAST_VALUE","LATERAL","LEAD","LEAVE","LEFT","LEVEL2","LIKE","LIMIT","LINKTYPE","LISTAGG","LOCAL","LOCALDATE","LOCALTIME","LOCALTIMESTAMP","LOCATION","LOCATOR","LOCK","LOCKSIZE","LOG","LOGGED","LOOP","MAINTAINED","MASK","MATCHED","MATERIALIZED","MAXVALUE","MERGE","MICROSECOND","MICROSECONDS","MINPCTUSED","MINUTE","MINUTES","MINVALUE","MIRROR","MIXED","MODE","MODIFIES","MONTH","MONTHS","NAMESPACE","NAN","NATIONAL","NCHAR","NCLOB","NESTED","NEW","NEW_TABLE","NEXTVAL","NO","NOCACHE","NOCYCLE","NODENAME","NODENUMBER","NOMAXVALUE","NOMINVALUE","NONE","NOORDER","NORMALIZED","NOT","NOTNULL","NTH_VALUE","NTILE","NULL","NULLS","NVARCHAR","OBID","OBJECT","OF","OFF","OFFSET","OLD","OLD_TABLE","OMIT","ON","ONLY","OPEN","OPTIMIZE","OPTION","OR","ORDER","ORDINALITY","ORGANIZE","OUT","OUTER","OVER","OVERLAY","OVERRIDING","PACKAGE","PADDED","PAGE","PAGESIZE","PARAMETER","PART","PARTITION","PARTITIONED","PARTITIONING","PARTITIONS","PASSING","PASSWORD","PATH","PCTFREE","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","PERIOD","PERMISSION","PIECESIZE","PIPE","PLAN","POSITION","PREPARE","PREVVAL","PRIMARY","PRIOR","PRIQTY","PRIVILEGES","PROCEDURE","PROGRAM","PROGRAMID","QUERY","RANGE","RANK","RATIO_TO_REPORT","RCDFMT","READ","READS","RECOVERY","REFERENCES","REFERENCING","REFRESH","REGEXP_LIKE","RELEASE","RENAME","REPEAT","RESET","RESIGNAL","RESTART","RESULT","RESULT_SET_LOCATOR","RETURN","RETURNING","RETURNS","REVOKE","RID","RIGHT","ROLLBACK","ROLLUP","ROUTINE","ROW","ROW_NUMBER","ROWNUMBER","ROWS","RRN","RUN","SAVEPOINT","SBCS","SCALAR","SCHEMA","SCRATCHPAD","SCROLL","SEARCH","SECOND","SECONDS","SECQTY","SECURED","SELECT","SENSITIVE","SEQUENCE","SESSION","SESSION_USER","SET","SIGNAL","SIMPLE","SKIP","SNAN","SOME","SOURCE","SPECIFIC","SQL","SQLID","SQLIND_DEFAULT","SQLIND_UNASSIGNED","STACKED","START","STARTING","STATEMENT","STATIC","STOGROUP","SUBSTRING","SUMMARY","SYNONYM","SYSTEM_TIME","SYSTEM_USER","TABLE","TABLESPACE","TABLESPACES","TAG","THEN","THREADSAFE","TO","TRANSACTION","TRANSFER","TRIGGER","TRIM","TRIM_ARRAY","TRUE","TRUNCATE","TRY_CAST","TYPE","UNDO","UNION","UNIQUE","UNIT","UNKNOWN","UNNEST","UNTIL","UPDATE","UPDATING","URI","USAGE","USE","USER","USERID","USING","VALUE","VALUES","VARIABLE","VARIANT","VCAT","VERSION","VERSIONING","VIEW","VOLATILE","WAIT","WHEN","WHENEVER","WHERE","WHILE","WITH","WITHIN","WITHOUT","WRAPPED","WRAPPER","WRITE","WRKSTNNAME","XMLAGG","XMLATTRIBUTES","XMLCAST","XMLCOMMENT","XMLCONCAT","XMLDOCUMENT","XMLELEMENT","XMLFOREST","XMLGROUP","XMLNAMESPACES","XMLPARSE","XMLPI","XMLROW","XMLSERIALIZE","XMLTABLE","XMLTEXT","XMLVALIDATE","XSLTRANSFORM","XSROBJECT","YEAR","YEARS","YES","ZONE"],bI=["ARRAY","BIGINT","BINARY","BIT","BLOB","BOOLEAN","CCSID","CHAR","CHARACTER","CLOB","DATA","DATALINK","DATE","DBCLOB","DECFLOAT","DECIMAL","DEC","DOUBLE","DOUBLE PRECISION","FLOAT","GRAPHIC","INT","INTEGER","LONG","NUMERIC","REAL","ROWID","SMALLINT","TIME","TIMESTAMP","VARBINARY","VARCHAR","VARGRAPHIC","XML"],BI=d(["SELECT [ALL | DISTINCT]"]),FI=d(["WITH [RECURSIVE]","INTO","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER [SIBLINGS] BY [INPUT SEQUENCE]","LIMIT","OFFSET","FETCH {FIRST | NEXT}","FOR UPDATE [OF]","FOR READ ONLY","OPTIMIZE FOR","INSERT INTO","VALUES","SET","MERGE INTO","WHEN [NOT] MATCHED [THEN]","UPDATE SET","DELETE","INSERT","FOR SYSTEM NAME"]),Sn=d(["CREATE [OR REPLACE] TABLE","CREATE [OR REPLACE] [RECURSIVE] VIEW","UPDATE","WHERE CURRENT OF","WITH {NC | RR | RS | CS | UR}","DELETE FROM","DROP TABLE","ALTER TABLE","ADD [COLUMN]","ALTER [COLUMN]","DROP [COLUMN]","SET DATA TYPE","SET {GENERATED ALWAYS | GENERATED BY DEFAULT}","SET NOT NULL","SET {NOT HIDDEN | IMPLICITLY HIDDEN}","SET FIELDPROC","DROP {DEFAULT | NOT NULL | GENERATED | IDENTITY | ROW CHANGE TIMESTAMP | FIELDPROC}","TRUNCATE [TABLE]","SET [CURRENT] SCHEMA","SET CURRENT_SCHEMA","ALLOCATE CURSOR","ALLOCATE [SQL] DESCRIPTOR [LOCAL | GLOBAL] SQL","ALTER [SPECIFIC] {FUNCTION | PROCEDURE}","ALTER {MASK | PERMISSION | SEQUENCE | TRIGGER}","ASSOCIATE [RESULT SET] {LOCATOR | LOCATORS}","BEGIN DECLARE SECTION","CALL","CLOSE","COMMENT ON {ALIAS | COLUMN | CONSTRAINT | INDEX | MASK | PACKAGE | PARAMETER | PERMISSION | SEQUENCE | TABLE | TRIGGER | VARIABLE | XSROBJECT}","COMMENT ON [SPECIFIC] {FUNCTION | PROCEDURE | ROUTINE}","COMMENT ON PARAMETER SPECIFIC {FUNCTION | PROCEDURE | ROUTINE}","COMMENT ON [TABLE FUNCTION] RETURN COLUMN","COMMENT ON [TABLE FUNCTION] RETURN COLUMN SPECIFIC [PROCEDURE | ROUTINE]","COMMIT [WORK] [HOLD]","CONNECT [TO | RESET] USER","CREATE [OR REPLACE] {ALIAS | FUNCTION | MASK | PERMISSION | PROCEDURE | SEQUENCE | TRIGGER | VARIABLE}","CREATE [ENCODED VECTOR] INDEX","CREATE UNIQUE [WHERE NOT NULL] INDEX","CREATE SCHEMA","CREATE TYPE","DEALLOCATE [SQL] DESCRIPTOR [LOCAL | GLOBAL]","DECLARE CURSOR","DECLARE GLOBAL TEMPORARY TABLE","DECLARE","DESCRIBE CURSOR","DESCRIBE INPUT","DESCRIBE [OUTPUT]","DESCRIBE {PROCEDURE | ROUTINE}","DESCRIBE TABLE","DISCONNECT ALL [SQL]","DISCONNECT [CURRENT]","DROP {ALIAS | INDEX | MASK | PACKAGE | PERMISSION | SCHEMA | SEQUENCE | TABLE | TYPE | VARIABLE | XSROBJECT} [IF EXISTS]","DROP [SPECIFIC] {FUNCTION | PROCEDURE | ROUTINE} [IF EXISTS]","END DECLARE SECTION","EXECUTE [IMMEDIATE]","FREE LOCATOR","GET [SQL] DESCRIPTOR [LOCAL | GLOBAL]","GET [CURRENT | STACKED] DIAGNOSTICS","GRANT {ALL [PRIVILEGES] | ALTER | EXECUTE} ON {FUNCTION | PROCEDURE | ROUTINE | PACKAGE | SCHEMA | SEQUENCE | TABLE | TYPE | VARIABLE | XSROBJECT}","HOLD LOCATOR","INCLUDE","LABEL ON {ALIAS | COLUMN | CONSTRAINT | INDEX | MASK | PACKAGE | PERMISSION | SEQUENCE | TABLE | TRIGGER | VARIABLE | XSROBJECT}","LABEL ON [SPECIFIC] {FUNCTION | PROCEDURE | ROUTINE}","LOCK TABLE","OPEN","PREPARE","REFRESH TABLE","RELEASE","RELEASE [TO] SAVEPOINT","RENAME [TABLE | INDEX] TO","REVOKE {ALL [PRIVILEGES] | ALTER | EXECUTE} ON {FUNCTION | PROCEDURE | ROUTINE | PACKAGE | SCHEMA | SEQUENCE | TABLE | TYPE | VARIABLE | XSROBJECT}","ROLLBACK [WORK] [HOLD | TO SAVEPOINT]","SAVEPOINT","SET CONNECTION","SET CURRENT {DEBUG MODE | DECFLOAT ROUNDING MODE | DEGREE | IMPLICIT XMLPARSE OPTION | TEMPORAL SYSTEM_TIME}","SET [SQL] DESCRIPTOR [LOCAL | GLOBAL]","SET ENCRYPTION PASSWORD","SET OPTION","SET {[CURRENT [FUNCTION]] PATH | CURRENT_PATH}","SET RESULT SETS [WITH RETURN [TO CALLER | TO CLIENT]]","SET SESSION AUTHORIZATION","SET SESSION_USER","SET TRANSACTION","SIGNAL SQLSTATE [VALUE]","TAG","TRANSFER OWNERSHIP OF","WHENEVER {NOT FOUND | SQLERROR | SQLWARNING}"]),vI=d(["UNION [ALL]","EXCEPT [ALL]","INTERSECT [ALL]"]),YI=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","[LEFT | RIGHT] EXCEPTION JOIN","{INNER | CROSS} JOIN"]),xI=d(["ON DELETE","ON UPDATE","SET NULL","{ROWS | RANGE} BETWEEN"]),VI={name:"db2i",tokenizerOptions:{reservedSelect:BI,reservedClauses:[...FI,...Sn],reservedSetOperations:vI,reservedJoins:YI,reservedPhrases:xI,reservedKeywords:yI,reservedDataTypes:bI,reservedFunctionNames:HI,nestedBlockComments:!0,extraParens:["[]"],stringTypes:[{quote:"''-qq",prefixes:["G","N"]},{quote:"''-raw",prefixes:["X","BX","GX","UX"],requirePrefix:!0}],identTypes:['""-qq'],identChars:{first:"@#$",rest:"@#$"},paramTypes:{positional:!0,named:[":"]},paramChars:{first:"@#$",rest:"@#$"},operators:["**","¬=","¬>","¬<","!>","!<","||","=>"]},formatOptions:{onelineClauses:Sn}},wI=["ABS","ACOS","ASIN","ATAN","BIN","BROUND","CBRT","CEIL","CEILING","CONV","COS","DEGREES","EXP","FACTORIAL","FLOOR","GREATEST","HEX","LEAST","LN","LOG","LOG10","LOG2","NEGATIVE","PI","PMOD","POSITIVE","POW","POWER","RADIANS","RAND","ROUND","SHIFTLEFT","SHIFTRIGHT","SHIFTRIGHTUNSIGNED","SIGN","SIN","SQRT","TAN","UNHEX","WIDTH_BUCKET","ARRAY_CONTAINS","MAP_KEYS","MAP_VALUES","SIZE","SORT_ARRAY","BINARY","CAST","ADD_MONTHS","DATE","DATE_ADD","DATE_FORMAT","DATE_SUB","DATEDIFF","DAY","DAYNAME","DAYOFMONTH","DAYOFYEAR","EXTRACT","FROM_UNIXTIME","FROM_UTC_TIMESTAMP","HOUR","LAST_DAY","MINUTE","MONTH","MONTHS_BETWEEN","NEXT_DAY","QUARTER","SECOND","TIMESTAMP","TO_DATE","TO_UTC_TIMESTAMP","TRUNC","UNIX_TIMESTAMP","WEEKOFYEAR","YEAR","ASSERT_TRUE","COALESCE","IF","ISNOTNULL","ISNULL","NULLIF","NVL","ASCII","BASE64","CHARACTER_LENGTH","CHR","CONCAT","CONCAT_WS","CONTEXT_NGRAMS","DECODE","ELT","ENCODE","FIELD","FIND_IN_SET","FORMAT_NUMBER","GET_JSON_OBJECT","IN_FILE","INITCAP","INSTR","LCASE","LENGTH","LEVENSHTEIN","LOCATE","LOWER","LPAD","LTRIM","NGRAMS","OCTET_LENGTH","PARSE_URL","PRINTF","QUOTE","REGEXP_EXTRACT","REGEXP_REPLACE","REPEAT","REVERSE","RPAD","RTRIM","SENTENCES","SOUNDEX","SPACE","SPLIT","STR_TO_MAP","SUBSTR","SUBSTRING","TRANSLATE","TRIM","UCASE","UNBASE64","UPPER","MASK","MASK_FIRST_N","MASK_HASH","MASK_LAST_N","MASK_SHOW_FIRST_N","MASK_SHOW_LAST_N","AES_DECRYPT","AES_ENCRYPT","CRC32","CURRENT_DATABASE","CURRENT_USER","HASH","JAVA_METHOD","LOGGED_IN_USER","MD5","REFLECT","SHA","SHA1","SHA2","SURROGATE_KEY","VERSION","AVG","COLLECT_LIST","COLLECT_SET","CORR","COUNT","COVAR_POP","COVAR_SAMP","HISTOGRAM_NUMERIC","MAX","MIN","NTILE","PERCENTILE","PERCENTILE_APPROX","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE","EXPLODE","INLINE","JSON_TUPLE","PARSE_URL_TUPLE","POSEXPLODE","STACK","LEAD","LAG","FIRST_VALUE","LAST_VALUE","RANK","ROW_NUMBER","DENSE_RANK","CUME_DIST","PERCENT_RANK","NTILE"],WI=["ADD","ADMIN","AFTER","ANALYZE","ARCHIVE","ASC","BEFORE","BUCKET","BUCKETS","CASCADE","CHANGE","CLUSTER","CLUSTERED","CLUSTERSTATUS","COLLECTION","COLUMNS","COMMENT","COMPACT","COMPACTIONS","COMPUTE","CONCATENATE","CONTINUE","DATA","DATABASES","DATETIME","DAY","DBPROPERTIES","DEFERRED","DEFINED","DELIMITED","DEPENDENCY","DESC","DIRECTORIES","DIRECTORY","DISABLE","DISTRIBUTE","ELEM_TYPE","ENABLE","ESCAPED","EXCLUSIVE","EXPLAIN","EXPORT","FIELDS","FILE","FILEFORMAT","FIRST","FORMAT","FORMATTED","FUNCTIONS","HOLD_DDLTIME","HOUR","IDXPROPERTIES","IGNORE","INDEX","INDEXES","INPATH","INPUTDRIVER","INPUTFORMAT","ITEMS","JAR","KEYS","KEY_TYPE","LIMIT","LINES","LOAD","LOCATION","LOCK","LOCKS","LOGICAL","LONG","MAPJOIN","MATERIALIZED","METADATA","MINUS","MINUTE","MONTH","MSCK","NOSCAN","NO_DROP","OFFLINE","OPTION","OUTPUTDRIVER","OUTPUTFORMAT","OVERWRITE","OWNER","PARTITIONED","PARTITIONS","PLUS","PRETTY","PRINCIPALS","PROTECTION","PURGE","READ","READONLY","REBUILD","RECORDREADER","RECORDWRITER","RELOAD","RENAME","REPAIR","REPLACE","REPLICATION","RESTRICT","REWRITE","ROLE","ROLES","SCHEMA","SCHEMAS","SECOND","SEMI","SERDE","SERDEPROPERTIES","SERVER","SETS","SHARED","SHOW","SHOW_DATABASE","SKEWED","SORT","SORTED","SSL","STATISTICS","STORED","STREAMTABLE","STRING","TABLES","TBLPROPERTIES","TEMPORARY","TERMINATED","TINYINT","TOUCH","TRANSACTIONS","UNARCHIVE","UNDO","UNIONTYPE","UNLOCK","UNSET","UNSIGNED","URI","USE","UTC","UTCTIMESTAMP","VALUE_TYPE","VIEW","WHILE","YEAR","AUTOCOMMIT","ISOLATION","LEVEL","OFFSET","SNAPSHOT","TRANSACTION","WORK","WRITE","ABORT","KEY","LAST","NORELY","NOVALIDATE","NULLS","RELY","VALIDATE","DETAIL","DOW","EXPRESSION","OPERATOR","QUARTER","SUMMARY","VECTORIZATION","WEEK","YEARS","MONTHS","WEEKS","DAYS","HOURS","MINUTES","SECONDS","TIMESTAMPTZ","ZONE","ALL","ALTER","AND","AS","AUTHORIZATION","BETWEEN","BOTH","BY","CASE","CAST","COLUMN","CONF","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIMESTAMP","CURSOR","DATABASE","DELETE","DESCRIBE","DISTINCT","DROP","ELSE","END","EXCHANGE","EXISTS","EXTENDED","EXTERNAL","FALSE","FETCH","FOLLOWING","FOR","FROM","FULL","FUNCTION","GRANT","GROUP","GROUPING","HAVING","IF","IMPORT","IN","INNER","INSERT","INTERSECT","INTO","IS","JOIN","LATERAL","LEFT","LESS","LIKE","LOCAL","MACRO","MORE","NONE","NOT","NULL","OF","ON","OR","ORDER","OUT","OUTER","OVER","PARTIALSCAN","PARTITION","PERCENT","PRECEDING","PRESERVE","PROCEDURE","RANGE","READS","REDUCE","REVOKE","RIGHT","ROLLUP","ROW","ROWS","SELECT","SET","TABLE","TABLESAMPLE","THEN","TO","TRANSFORM","TRIGGER","TRUE","TRUNCATE","UNBOUNDED","UNION","UNIQUEJOIN","UPDATE","USER","USING","UTC_TMESTAMP","VALUES","WHEN","WHERE","WINDOW","WITH","COMMIT","ONLY","REGEXP","RLIKE","ROLLBACK","START","CACHE","CONSTRAINT","FOREIGN","PRIMARY","REFERENCES","DAYOFWEEK","EXTRACT","FLOOR","VIEWS","TIME","SYNC","TEXTFILE","SEQUENCEFILE","ORC","CSV","TSV","PARQUET","AVRO","RCFILE","JSONFILE","INPUTFORMAT","OUTPUTFORMAT"],XI=["ARRAY","BIGINT","BINARY","BOOLEAN","CHAR","DATE","DECIMAL","DOUBLE","FLOAT","INT","INTEGER","INTERVAL","MAP","NUMERIC","PRECISION","SMALLINT","STRUCT","TIMESTAMP","VARCHAR"],$I=d(["SELECT [ALL | DISTINCT]"]),KI=d(["WITH","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","SORT BY","CLUSTER BY","DISTRIBUTE BY","LIMIT","INSERT INTO [TABLE]","VALUES","SET","MERGE INTO","WHEN [NOT] MATCHED [THEN]","UPDATE SET","INSERT [VALUES]","INSERT OVERWRITE [LOCAL] DIRECTORY","LOAD DATA [LOCAL] INPATH","[OVERWRITE] INTO TABLE"]),On=d(["CREATE [TEMPORARY] [EXTERNAL] TABLE [IF NOT EXISTS]","CREATE [MATERIALIZED] VIEW [IF NOT EXISTS]","UPDATE","DELETE FROM","DROP TABLE [IF EXISTS]","ALTER TABLE","RENAME TO","TRUNCATE [TABLE]","ALTER","CREATE","USE","DESCRIBE","DROP","FETCH","SHOW","STORED AS","STORED BY","ROW FORMAT"]),JI=d(["UNION [ALL | DISTINCT]"]),kI=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","LEFT SEMI JOIN"]),jI=d(["{ROWS | RANGE} BETWEEN"]),qI={name:"hive",tokenizerOptions:{reservedSelect:$I,reservedClauses:[...KI,...On],reservedSetOperations:JI,reservedJoins:kI,reservedPhrases:jI,reservedKeywords:WI,reservedDataTypes:XI,reservedFunctionNames:wI,extraParens:["[]"],stringTypes:['""-bs',"''-bs"],identTypes:["``"],variableTypes:[{quote:"{}",prefixes:["$"],requirePrefix:!0}],operators:["%","~","^","|","&","<=>","==","!","||"]},formatOptions:{onelineClauses:On}};function Zr(e){return e.map((E,t)=>{const T=e[t+1]||nt;if(VE.SET(E)&&T.text==="(")return xe(ye({},E),{type:"RESERVED_FUNCTION_NAME"});const r=e[t-1]||nt;return VE.VALUES(E)&&r.text==="="?xe(ye({},E),{type:"RESERVED_FUNCTION_NAME"}):E})}var QI=["ACCESSIBLE","ADD","ALL","ALTER","ANALYZE","AND","AS","ASC","ASENSITIVE","BEFORE","BETWEEN","BOTH","BY","CALL","CASCADE","CASE","CHANGE","CHECK","COLLATE","COLUMN","CONDITION","CONSTRAINT","CONTINUE","CONVERT","CREATE","CROSS","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATABASES","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DECLARE","DEFAULT","DELAYED","DELETE","DELETE_DOMAIN_ID","DESC","DESCRIBE","DETERMINISTIC","DISTINCT","DISTINCTROW","DIV","DO_DOMAIN_IDS","DROP","DUAL","EACH","ELSE","ELSEIF","ENCLOSED","ESCAPED","EXCEPT","EXISTS","EXIT","EXPLAIN","FALSE","FETCH","FOR","FORCE","FOREIGN","FROM","FULLTEXT","GENERAL","GRANT","GROUP","HAVING","HIGH_PRIORITY","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IF","IGNORE","IGNORE_DOMAIN_IDS","IGNORE_SERVER_IDS","IN","INDEX","INFILE","INNER","INOUT","INSENSITIVE","INSERT","INTERSECT","INTERVAL","INTO","IS","ITERATE","JOIN","KEY","KEYS","KILL","LEADING","LEAVE","LEFT","LIKE","LIMIT","LINEAR","LINES","LOAD","LOCALTIME","LOCALTIMESTAMP","LOCK","LOOP","LOW_PRIORITY","MASTER_HEARTBEAT_PERIOD","MASTER_SSL_VERIFY_SERVER_CERT","MATCH","MAXVALUE","MINUTE_MICROSECOND","MINUTE_SECOND","MOD","MODIFIES","NATURAL","NOT","NO_WRITE_TO_BINLOG","NULL","OFFSET","ON","OPTIMIZE","OPTION","OPTIONALLY","OR","ORDER","OUT","OUTER","OUTFILE","OVER","PAGE_CHECKSUM","PARSE_VCOL_EXPR","PARTITION","POSITION","PRIMARY","PROCEDURE","PURGE","RANGE","READ","READS","READ_WRITE","RECURSIVE","REF_SYSTEM_ID","REFERENCES","REGEXP","RELEASE","RENAME","REPEAT","REPLACE","REQUIRE","RESIGNAL","RESTRICT","RETURN","RETURNING","REVOKE","RIGHT","RLIKE","ROW_NUMBER","ROWS","SCHEMA","SCHEMAS","SECOND_MICROSECOND","SELECT","SENSITIVE","SEPARATOR","SET","SHOW","SIGNAL","SLOW","SPATIAL","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_BIG_RESULT","SQL_CALC_FOUND_ROWS","SQL_SMALL_RESULT","SSL","STARTING","STATS_AUTO_RECALC","STATS_PERSISTENT","STATS_SAMPLE_PAGES","STRAIGHT_JOIN","TABLE","TERMINATED","THEN","TO","TRAILING","TRIGGER","TRUE","UNDO","UNION","UNIQUE","UNLOCK","UNSIGNED","UPDATE","USAGE","USE","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALUES","WHEN","WHERE","WHILE","WINDOW","WITH","WRITE","XOR","YEAR_MONTH","ZEROFILL"],ZI=["BIGINT","BINARY","BIT","BLOB","CHAR BYTE","CHAR","CHARACTER","DATETIME","DEC","DECIMAL","DOUBLE PRECISION","DOUBLE","ENUM","FIXED","FLOAT","FLOAT4","FLOAT8","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","LONG","LONGBLOB","LONGTEXT","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MIDDLEINT","NATIONAL CHAR","NATIONAL VARCHAR","NUMERIC","PRECISION","REAL","SMALLINT","TEXT","TIMESTAMP","TINYBLOB","TINYINT","TINYTEXT","VARBINARY","VARCHAR","VARCHARACTER","VARYING","YEAR"],zI=["ADDDATE","ADD_MONTHS","BIT_AND","BIT_OR","BIT_XOR","CAST","COUNT","CUME_DIST","CURDATE","CURTIME","DATE_ADD","DATE_SUB","DATE_FORMAT","DECODE","DENSE_RANK","EXTRACT","FIRST_VALUE","GROUP_CONCAT","JSON_ARRAYAGG","JSON_OBJECTAGG","LAG","LEAD","MAX","MEDIAN","MID","MIN","NOW","NTH_VALUE","NTILE","POSITION","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","RANK","ROW_NUMBER","SESSION_USER","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","SUBDATE","SUBSTR","SUBSTRING","SUM","SYSTEM_USER","TRIM","TRIM_ORACLE","VARIANCE","VAR_POP","VAR_SAMP","ABS","ACOS","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ASIN","ATAN","ATAN2","BENCHMARK","BIN","BINLOG_GTID_POS","BIT_COUNT","BIT_LENGTH","CEIL","CEILING","CHARACTER_LENGTH","CHAR_LENGTH","CHR","COERCIBILITY","COLUMN_CHECK","COLUMN_EXISTS","COLUMN_LIST","COLUMN_JSON","COMPRESS","CONCAT","CONCAT_OPERATOR_ORACLE","CONCAT_WS","CONNECTION_ID","CONV","CONVERT_TZ","COS","COT","CRC32","DATEDIFF","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DEGREES","DECODE_HISTOGRAM","DECODE_ORACLE","DES_DECRYPT","DES_ENCRYPT","ELT","ENCODE","ENCRYPT","EXP","EXPORT_SET","EXTRACTVALUE","FIELD","FIND_IN_SET","FLOOR","FORMAT","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GET_LOCK","GREATEST","HEX","IFNULL","INSTR","ISNULL","IS_FREE_LOCK","IS_USED_LOCK","JSON_ARRAY","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_COMPACT","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_DETAILED","JSON_EXISTS","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_LOOSE","JSON_MERGE","JSON_MERGE_PATCH","JSON_MERGE_PRESERVE","JSON_QUERY","JSON_QUOTE","JSON_OBJECT","JSON_REMOVE","JSON_REPLACE","JSON_SET","JSON_SEARCH","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","JSON_VALUE","LAST_DAY","LAST_INSERT_ID","LCASE","LEAST","LENGTH","LENGTHB","LN","LOAD_FILE","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LPAD_ORACLE","LTRIM","LTRIM_ORACLE","MAKEDATE","MAKETIME","MAKE_SET","MASTER_GTID_WAIT","MASTER_POS_WAIT","MD5","MONTHNAME","NAME_CONST","NVL","NVL2","OCT","OCTET_LENGTH","ORD","PERIOD_ADD","PERIOD_DIFF","PI","POW","POWER","QUOTE","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","RADIANS","RAND","RELEASE_ALL_LOCKS","RELEASE_LOCK","REPLACE_ORACLE","REVERSE","ROUND","RPAD","RPAD_ORACLE","RTRIM","RTRIM_ORACLE","SEC_TO_TIME","SHA","SHA1","SHA2","SIGN","SIN","SLEEP","SOUNDEX","SPACE","SQRT","STRCMP","STR_TO_DATE","SUBSTR_ORACLE","SUBSTRING_INDEX","SUBTIME","SYS_GUID","TAN","TIMEDIFF","TIME_FORMAT","TIME_TO_SEC","TO_BASE64","TO_CHAR","TO_DAYS","TO_SECONDS","UCASE","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","UUID","UUID_SHORT","VERSION","WEEKDAY","WEEKOFYEAR","WSREP_LAST_WRITTEN_GTID","WSREP_LAST_SEEN_GTID","WSREP_SYNC_WAIT_UPTO_GTID","YEARWEEK","COALESCE","NULLIF"],eN=d(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),EN=d(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT [LOW_PRIORITY | DELAYED | HIGH_PRIORITY] [IGNORE] [INTO]","REPLACE [LOW_PRIORITY | DELAYED] [INTO]","VALUES","ON DUPLICATE KEY UPDATE","SET","RETURNING"]),an=d(["CREATE [OR REPLACE] [TEMPORARY] TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] [SQL SECURITY DEFINER | SQL SECURITY INVOKER] VIEW [IF NOT EXISTS]","UPDATE [LOW_PRIORITY] [IGNORE]","DELETE [LOW_PRIORITY] [QUICK] [IGNORE] FROM","DROP [TEMPORARY] TABLE [IF EXISTS]","ALTER [ONLINE] [IGNORE] TABLE [IF EXISTS]","ADD [COLUMN] [IF NOT EXISTS]","{CHANGE | MODIFY} [COLUMN] [IF EXISTS]","DROP [COLUMN] [IF EXISTS]","RENAME [TO]","RENAME COLUMN","ALTER [COLUMN]","{SET | DROP} DEFAULT","SET {VISIBLE | INVISIBLE}","TRUNCATE [TABLE]","ALTER DATABASE","ALTER DATABASE COMMENT","ALTER EVENT","ALTER FUNCTION","ALTER PROCEDURE","ALTER SCHEMA","ALTER SCHEMA COMMENT","ALTER SEQUENCE","ALTER SERVER","ALTER USER","ALTER VIEW","ANALYZE","ANALYZE TABLE","BACKUP LOCK","BACKUP STAGE","BACKUP UNLOCK","BEGIN","BINLOG","CACHE INDEX","CALL","CHANGE MASTER TO","CHECK TABLE","CHECK VIEW","CHECKSUM TABLE","COMMIT","CREATE AGGREGATE FUNCTION","CREATE DATABASE","CREATE EVENT","CREATE FUNCTION","CREATE INDEX","CREATE PROCEDURE","CREATE ROLE","CREATE SEQUENCE","CREATE SERVER","CREATE SPATIAL INDEX","CREATE TRIGGER","CREATE UNIQUE INDEX","CREATE USER","DEALLOCATE PREPARE","DESCRIBE","DROP DATABASE","DROP EVENT","DROP FUNCTION","DROP INDEX","DROP PREPARE","DROP PROCEDURE","DROP ROLE","DROP SEQUENCE","DROP SERVER","DROP TRIGGER","DROP USER","DROP VIEW","EXECUTE","EXPLAIN","FLUSH","GET DIAGNOSTICS","GET DIAGNOSTICS CONDITION","GRANT","HANDLER","HELP","INSTALL PLUGIN","INSTALL SONAME","KILL","LOAD DATA INFILE","LOAD INDEX INTO CACHE","LOAD XML INFILE","LOCK TABLE","OPTIMIZE TABLE","PREPARE","PURGE BINARY LOGS","PURGE MASTER LOGS","RELEASE SAVEPOINT","RENAME TABLE","RENAME USER","REPAIR TABLE","REPAIR VIEW","RESET MASTER","RESET QUERY CACHE","RESET REPLICA","RESET SLAVE","RESIGNAL","REVOKE","ROLLBACK","SAVEPOINT","SET CHARACTER SET","SET DEFAULT ROLE","SET GLOBAL TRANSACTION","SET NAMES","SET PASSWORD","SET ROLE","SET STATEMENT","SET TRANSACTION","SHOW","SHOW ALL REPLICAS STATUS","SHOW ALL SLAVES STATUS","SHOW AUTHORS","SHOW BINARY LOGS","SHOW BINLOG EVENTS","SHOW BINLOG STATUS","SHOW CHARACTER SET","SHOW CLIENT_STATISTICS","SHOW COLLATION","SHOW COLUMNS","SHOW CONTRIBUTORS","SHOW CREATE DATABASE","SHOW CREATE EVENT","SHOW CREATE FUNCTION","SHOW CREATE PACKAGE","SHOW CREATE PACKAGE BODY","SHOW CREATE PROCEDURE","SHOW CREATE SEQUENCE","SHOW CREATE TABLE","SHOW CREATE TRIGGER","SHOW CREATE USER","SHOW CREATE VIEW","SHOW DATABASES","SHOW ENGINE","SHOW ENGINE INNODB STATUS","SHOW ENGINES","SHOW ERRORS","SHOW EVENTS","SHOW EXPLAIN","SHOW FUNCTION CODE","SHOW FUNCTION STATUS","SHOW GRANTS","SHOW INDEX","SHOW INDEXES","SHOW INDEX_STATISTICS","SHOW KEYS","SHOW LOCALES","SHOW MASTER LOGS","SHOW MASTER STATUS","SHOW OPEN TABLES","SHOW PACKAGE BODY CODE","SHOW PACKAGE BODY STATUS","SHOW PACKAGE STATUS","SHOW PLUGINS","SHOW PLUGINS SONAME","SHOW PRIVILEGES","SHOW PROCEDURE CODE","SHOW PROCEDURE STATUS","SHOW PROCESSLIST","SHOW PROFILE","SHOW PROFILES","SHOW QUERY_RESPONSE_TIME","SHOW RELAYLOG EVENTS","SHOW REPLICA","SHOW REPLICA HOSTS","SHOW REPLICA STATUS","SHOW SCHEMAS","SHOW SLAVE","SHOW SLAVE HOSTS","SHOW SLAVE STATUS","SHOW STATUS","SHOW STORAGE ENGINES","SHOW TABLE STATUS","SHOW TABLES","SHOW TRIGGERS","SHOW USER_STATISTICS","SHOW VARIABLES","SHOW WARNINGS","SHOW WSREP_MEMBERSHIP","SHOW WSREP_STATUS","SHUTDOWN","SIGNAL","START ALL REPLICAS","START ALL SLAVES","START REPLICA","START SLAVE","START TRANSACTION","STOP ALL REPLICAS","STOP ALL SLAVES","STOP REPLICA","STOP SLAVE","UNINSTALL PLUGIN","UNINSTALL SONAME","UNLOCK TABLE","USE","XA BEGIN","XA COMMIT","XA END","XA PREPARE","XA RECOVER","XA ROLLBACK","XA START"]),tN=d(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]","MINUS [ALL | DISTINCT]"]),TN=d(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),rN=d(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","CHARACTER SET","{ROWS | RANGE} BETWEEN","IDENTIFIED BY"]),sN={name:"mariadb",tokenizerOptions:{reservedSelect:eN,reservedClauses:[...EN,...an],reservedSetOperations:tN,reservedJoins:TN,reservedPhrases:rN,supportsXor:!0,reservedKeywords:QI,reservedDataTypes:ZI,reservedFunctionNames:zI,stringTypes:['""-qq-bs',"''-qq-bs",{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:["``"],identChars:{first:"$",rest:"$",allowFirstCharNumber:!0},variableTypes:[{regex:"@@?[A-Za-z0-9_.$]+"},{quote:'""-qq-bs',prefixes:["@"],requirePrefix:!0},{quote:"''-qq-bs",prefixes:["@"],requirePrefix:!0},{quote:"``",prefixes:["@"],requirePrefix:!0}],paramTypes:{positional:!0},lineCommentTypes:["--","#"],operators:["%",":=","&","|","^","~","<<",">>","<=>","&&","||","!","*.*"],postProcess:Zr},formatOptions:{onelineClauses:an}},nN=["ACCESSIBLE","ADD","ALL","ALTER","ANALYZE","AND","AS","ASC","ASENSITIVE","BEFORE","BETWEEN","BOTH","BY","CALL","CASCADE","CASE","CHANGE","CHECK","COLLATE","COLUMN","CONDITION","CONSTRAINT","CONTINUE","CONVERT","CREATE","CROSS","CUBE","CUME_DIST","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATABASES","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DECLARE","DEFAULT","DELAYED","DELETE","DENSE_RANK","DESC","DESCRIBE","DETERMINISTIC","DISTINCT","DISTINCTROW","DIV","DROP","DUAL","EACH","ELSE","ELSEIF","EMPTY","ENCLOSED","ESCAPED","EXCEPT","EXISTS","EXIT","EXPLAIN","FALSE","FETCH","FIRST_VALUE","FOR","FORCE","FOREIGN","FROM","FULLTEXT","FUNCTION","GENERATED","GET","GRANT","GROUP","GROUPING","GROUPS","HAVING","HIGH_PRIORITY","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IF","IGNORE","IN","INDEX","INFILE","INNER","INOUT","INSENSITIVE","INSERT","IN","INTERSECT","INTERVAL","INTO","IO_AFTER_GTIDS","IO_BEFORE_GTIDS","IS","ITERATE","JOIN","JSON_TABLE","KEY","KEYS","KILL","LAG","LAST_VALUE","LATERAL","LEAD","LEADING","LEAVE","LEFT","LIKE","LIMIT","LINEAR","LINES","LOAD","LOCALTIME","LOCALTIMESTAMP","LOCK","LONG","LOOP","LOW_PRIORITY","MASTER_BIND","MASTER_SSL_VERIFY_SERVER_CERT","MATCH","MAXVALUE","MINUTE_MICROSECOND","MINUTE_SECOND","MOD","MODIFIES","NATURAL","NOT","NO_WRITE_TO_BINLOG","NTH_VALUE","NTILE","NULL","OF","ON","OPTIMIZE","OPTIMIZER_COSTS","OPTION","OPTIONALLY","OR","ORDER","OUT","OUTER","OUTFILE","OVER","PARTITION","PERCENT_RANK","PRIMARY","PROCEDURE","PURGE","RANGE","RANK","READ","READS","READ_WRITE","RECURSIVE","REFERENCES","REGEXP","RELEASE","RENAME","REPEAT","REPLACE","REQUIRE","RESIGNAL","RESTRICT","RETURN","REVOKE","RIGHT","RLIKE","ROW","ROWS","ROW_NUMBER","SCHEMA","SCHEMAS","SECOND_MICROSECOND","SELECT","SENSITIVE","SEPARATOR","SET","SHOW","SIGNAL","SPATIAL","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_BIG_RESULT","SQL_CALC_FOUND_ROWS","SQL_SMALL_RESULT","SSL","STARTING","STORED","STRAIGHT_JOIN","SYSTEM","TABLE","TERMINATED","THEN","TO","TRAILING","TRIGGER","TRUE","UNDO","UNION","UNIQUE","UNLOCK","UNSIGNED","UPDATE","USAGE","USE","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALUES","VIRTUAL","WHEN","WHERE","WHILE","WINDOW","WITH","WRITE","XOR","YEAR_MONTH","ZEROFILL"],RN=["BIGINT","BINARY","BIT","BLOB","BOOL","BOOLEAN","CHAR","CHARACTER","DATE","DATETIME","DEC","DECIMAL","DOUBLE PRECISION","DOUBLE","ENUM","FIXED","FLOAT","FLOAT4","FLOAT8","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","LONGBLOB","LONGTEXT","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MIDDLEINT","NATIONAL CHAR","NATIONAL VARCHAR","NUMERIC","PRECISION","REAL","SMALLINT","TEXT","TIME","TIMESTAMP","TINYBLOB","TINYINT","TINYTEXT","VARBINARY","VARCHAR","VARCHARACTER","VARYING","YEAR"],oN=["ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ANY_VALUE","ASCII","ASIN","ATAN","ATAN2","AVG","BENCHMARK","BIN","BIN_TO_UUID","BINARY","BIT_AND","BIT_COUNT","BIT_LENGTH","BIT_OR","BIT_XOR","CAN_ACCESS_COLUMN","CAN_ACCESS_DATABASE","CAN_ACCESS_TABLE","CAN_ACCESS_USER","CAN_ACCESS_VIEW","CAST","CEIL","CEILING","CHAR","CHAR_LENGTH","CHARACTER_LENGTH","CHARSET","COALESCE","COERCIBILITY","COLLATION","COMPRESS","CONCAT","CONCAT_WS","CONNECTION_ID","CONV","CONVERT","CONVERT_TZ","COS","COT","COUNT","CRC32","CUME_DIST","CURDATE","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURTIME","DATABASE","DATE","DATE_ADD","DATE_FORMAT","DATE_SUB","DATEDIFF","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DEFAULT","DEGREES","DENSE_RANK","DIV","ELT","EXP","EXPORT_SET","EXTRACT","EXTRACTVALUE","FIELD","FIND_IN_SET","FIRST_VALUE","FLOOR","FORMAT","FORMAT_BYTES","FORMAT_PICO_TIME","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GEOMCOLLECTION","GEOMETRYCOLLECTION","GET_DD_COLUMN_PRIVILEGES","GET_DD_CREATE_OPTIONS","GET_DD_INDEX_SUB_PART_LENGTH","GET_FORMAT","GET_LOCK","GREATEST","GROUP_CONCAT","GROUPING","GTID_SUBSET","GTID_SUBTRACT","HEX","HOUR","ICU_VERSION","IF","IFNULL","INET_ATON","INET_NTOA","INET6_ATON","INET6_NTOA","INSERT","INSTR","INTERNAL_AUTO_INCREMENT","INTERNAL_AVG_ROW_LENGTH","INTERNAL_CHECK_TIME","INTERNAL_CHECKSUM","INTERNAL_DATA_FREE","INTERNAL_DATA_LENGTH","INTERNAL_DD_CHAR_LENGTH","INTERNAL_GET_COMMENT_OR_ERROR","INTERNAL_GET_ENABLED_ROLE_JSON","INTERNAL_GET_HOSTNAME","INTERNAL_GET_USERNAME","INTERNAL_GET_VIEW_WARNING_OR_ERROR","INTERNAL_INDEX_COLUMN_CARDINALITY","INTERNAL_INDEX_LENGTH","INTERNAL_IS_ENABLED_ROLE","INTERNAL_IS_MANDATORY_ROLE","INTERNAL_KEYS_DISABLED","INTERNAL_MAX_DATA_LENGTH","INTERNAL_TABLE_ROWS","INTERNAL_UPDATE_TIME","INTERVAL","IS","IS_FREE_LOCK","IS_IPV4","IS_IPV4_COMPAT","IS_IPV4_MAPPED","IS_IPV6","IS NOT","IS NOT NULL","IS NULL","IS_USED_LOCK","IS_UUID","ISNULL","JSON_ARRAY","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_ARRAYAGG","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_MERGE","JSON_MERGE_PATCH","JSON_MERGE_PRESERVE","JSON_OBJECT","JSON_OBJECTAGG","JSON_OVERLAPS","JSON_PRETTY","JSON_QUOTE","JSON_REMOVE","JSON_REPLACE","JSON_SCHEMA_VALID","JSON_SCHEMA_VALIDATION_REPORT","JSON_SEARCH","JSON_SET","JSON_STORAGE_FREE","JSON_STORAGE_SIZE","JSON_TABLE","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","JSON_VALUE","LAG","LAST_DAY","LAST_INSERT_ID","LAST_VALUE","LCASE","LEAD","LEAST","LEFT","LENGTH","LIKE","LINESTRING","LN","LOAD_FILE","LOCALTIME","LOCALTIMESTAMP","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LTRIM","MAKE_SET","MAKEDATE","MAKETIME","MASTER_POS_WAIT","MATCH","MAX","MBRCONTAINS","MBRCOVEREDBY","MBRCOVERS","MBRDISJOINT","MBREQUALS","MBRINTERSECTS","MBROVERLAPS","MBRTOUCHES","MBRWITHIN","MD5","MEMBER OF","MICROSECOND","MID","MIN","MINUTE","MOD","MONTH","MONTHNAME","MULTILINESTRING","MULTIPOINT","MULTIPOLYGON","NAME_CONST","NOT","NOT IN","NOT LIKE","NOT REGEXP","NOW","NTH_VALUE","NTILE","NULLIF","OCT","OCTET_LENGTH","ORD","PERCENT_RANK","PERIOD_ADD","PERIOD_DIFF","PI","POINT","POLYGON","POSITION","POW","POWER","PS_CURRENT_THREAD_ID","PS_THREAD_ID","QUARTER","QUOTE","RADIANS","RAND","RANDOM_BYTES","RANK","REGEXP","REGEXP_INSTR","REGEXP_LIKE","REGEXP_REPLACE","REGEXP_SUBSTR","RELEASE_ALL_LOCKS","RELEASE_LOCK","REPEAT","REPLACE","REVERSE","RIGHT","RLIKE","ROLES_GRAPHML","ROUND","ROW_COUNT","ROW_NUMBER","RPAD","RTRIM","SCHEMA","SEC_TO_TIME","SECOND","SESSION_USER","SHA1","SHA2","SIGN","SIN","SLEEP","SOUNDEX","SOUNDS LIKE","SOURCE_POS_WAIT","SPACE","SQRT","ST_AREA","ST_ASBINARY","ST_ASGEOJSON","ST_ASTEXT","ST_BUFFER","ST_BUFFER_STRATEGY","ST_CENTROID","ST_COLLECT","ST_CONTAINS","ST_CONVEXHULL","ST_CROSSES","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_DISTANCE_SPHERE","ST_ENDPOINT","ST_ENVELOPE","ST_EQUALS","ST_EXTERIORRING","ST_FRECHETDISTANCE","ST_GEOHASH","ST_GEOMCOLLFROMTEXT","ST_GEOMCOLLFROMWKB","ST_GEOMETRYN","ST_GEOMETRYTYPE","ST_GEOMFROMGEOJSON","ST_GEOMFROMTEXT","ST_GEOMFROMWKB","ST_HAUSDORFFDISTANCE","ST_INTERIORRINGN","ST_INTERSECTION","ST_INTERSECTS","ST_ISCLOSED","ST_ISEMPTY","ST_ISSIMPLE","ST_ISVALID","ST_LATFROMGEOHASH","ST_LATITUDE","ST_LENGTH","ST_LINEFROMTEXT","ST_LINEFROMWKB","ST_LINEINTERPOLATEPOINT","ST_LINEINTERPOLATEPOINTS","ST_LONGFROMGEOHASH","ST_LONGITUDE","ST_MAKEENVELOPE","ST_MLINEFROMTEXT","ST_MLINEFROMWKB","ST_MPOINTFROMTEXT","ST_MPOINTFROMWKB","ST_MPOLYFROMTEXT","ST_MPOLYFROMWKB","ST_NUMGEOMETRIES","ST_NUMINTERIORRING","ST_NUMPOINTS","ST_OVERLAPS","ST_POINTATDISTANCE","ST_POINTFROMGEOHASH","ST_POINTFROMTEXT","ST_POINTFROMWKB","ST_POINTN","ST_POLYFROMTEXT","ST_POLYFROMWKB","ST_SIMPLIFY","ST_SRID","ST_STARTPOINT","ST_SWAPXY","ST_SYMDIFFERENCE","ST_TOUCHES","ST_TRANSFORM","ST_UNION","ST_VALIDATE","ST_WITHIN","ST_X","ST_Y","STATEMENT_DIGEST","STATEMENT_DIGEST_TEXT","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DATE","STRCMP","SUBDATE","SUBSTR","SUBSTRING","SUBSTRING_INDEX","SUBTIME","SUM","SYSDATE","SYSTEM_USER","TAN","TIME","TIME_FORMAT","TIME_TO_SEC","TIMEDIFF","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TO_BASE64","TO_DAYS","TO_SECONDS","TRIM","TRUNCATE","UCASE","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","UUID","UUID_SHORT","UUID_TO_BIN","VALIDATE_PASSWORD_STRENGTH","VALUES","VAR_POP","VAR_SAMP","VARIANCE","VERSION","WAIT_FOR_EXECUTED_GTID_SET","WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS","WEEK","WEEKDAY","WEEKOFYEAR","WEIGHT_STRING","YEAR","YEARWEEK"],AN=d(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),iN=d(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT [LOW_PRIORITY | DELAYED | HIGH_PRIORITY] [IGNORE] [INTO]","REPLACE [LOW_PRIORITY | DELAYED] [INTO]","VALUES","ON DUPLICATE KEY UPDATE","SET"]),In=d(["CREATE [TEMPORARY] TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] [SQL SECURITY DEFINER | SQL SECURITY INVOKER] VIEW [IF NOT EXISTS]","UPDATE [LOW_PRIORITY] [IGNORE]","DELETE [LOW_PRIORITY] [QUICK] [IGNORE] FROM","DROP [TEMPORARY] TABLE [IF EXISTS]","ALTER TABLE","ADD [COLUMN]","{CHANGE | MODIFY} [COLUMN]","DROP [COLUMN]","RENAME [TO | AS]","RENAME COLUMN","ALTER [COLUMN]","{SET | DROP} DEFAULT","TRUNCATE [TABLE]","ALTER DATABASE","ALTER EVENT","ALTER FUNCTION","ALTER INSTANCE","ALTER LOGFILE GROUP","ALTER PROCEDURE","ALTER RESOURCE GROUP","ALTER SERVER","ALTER TABLESPACE","ALTER USER","ALTER VIEW","ANALYZE TABLE","BINLOG","CACHE INDEX","CALL","CHANGE MASTER TO","CHANGE REPLICATION FILTER","CHANGE REPLICATION SOURCE TO","CHECK TABLE","CHECKSUM TABLE","CLONE","COMMIT","CREATE DATABASE","CREATE EVENT","CREATE FUNCTION","CREATE FUNCTION","CREATE INDEX","CREATE LOGFILE GROUP","CREATE PROCEDURE","CREATE RESOURCE GROUP","CREATE ROLE","CREATE SERVER","CREATE SPATIAL REFERENCE SYSTEM","CREATE TABLESPACE","CREATE TRIGGER","CREATE USER","DEALLOCATE PREPARE","DESCRIBE","DROP DATABASE","DROP EVENT","DROP FUNCTION","DROP FUNCTION","DROP INDEX","DROP LOGFILE GROUP","DROP PROCEDURE","DROP RESOURCE GROUP","DROP ROLE","DROP SERVER","DROP SPATIAL REFERENCE SYSTEM","DROP TABLESPACE","DROP TRIGGER","DROP USER","DROP VIEW","EXECUTE","EXPLAIN","FLUSH","GRANT","HANDLER","HELP","IMPORT TABLE","INSTALL COMPONENT","INSTALL PLUGIN","KILL","LOAD DATA","LOAD INDEX INTO CACHE","LOAD XML","LOCK INSTANCE FOR BACKUP","LOCK TABLES","MASTER_POS_WAIT","OPTIMIZE TABLE","PREPARE","PURGE BINARY LOGS","RELEASE SAVEPOINT","RENAME TABLE","RENAME USER","REPAIR TABLE","RESET","RESET MASTER","RESET PERSIST","RESET REPLICA","RESET SLAVE","RESTART","REVOKE","ROLLBACK","ROLLBACK TO SAVEPOINT","SAVEPOINT","SET CHARACTER SET","SET DEFAULT ROLE","SET NAMES","SET PASSWORD","SET RESOURCE GROUP","SET ROLE","SET TRANSACTION","SHOW","SHOW BINARY LOGS","SHOW BINLOG EVENTS","SHOW CHARACTER SET","SHOW COLLATION","SHOW COLUMNS","SHOW CREATE DATABASE","SHOW CREATE EVENT","SHOW CREATE FUNCTION","SHOW CREATE PROCEDURE","SHOW CREATE TABLE","SHOW CREATE TRIGGER","SHOW CREATE USER","SHOW CREATE VIEW","SHOW DATABASES","SHOW ENGINE","SHOW ENGINES","SHOW ERRORS","SHOW EVENTS","SHOW FUNCTION CODE","SHOW FUNCTION STATUS","SHOW GRANTS","SHOW INDEX","SHOW MASTER STATUS","SHOW OPEN TABLES","SHOW PLUGINS","SHOW PRIVILEGES","SHOW PROCEDURE CODE","SHOW PROCEDURE STATUS","SHOW PROCESSLIST","SHOW PROFILE","SHOW PROFILES","SHOW RELAYLOG EVENTS","SHOW REPLICA STATUS","SHOW REPLICAS","SHOW SLAVE","SHOW SLAVE HOSTS","SHOW STATUS","SHOW TABLE STATUS","SHOW TABLES","SHOW TRIGGERS","SHOW VARIABLES","SHOW WARNINGS","SHUTDOWN","SOURCE_POS_WAIT","START GROUP_REPLICATION","START REPLICA","START SLAVE","START TRANSACTION","STOP GROUP_REPLICATION","STOP REPLICA","STOP SLAVE","TABLE","UNINSTALL COMPONENT","UNINSTALL PLUGIN","UNLOCK INSTANCE","UNLOCK TABLES","USE","XA","ITERATE","LEAVE","LOOP","REPEAT","RETURN","WHILE"]),SN=d(["UNION [ALL | DISTINCT]"]),ON=d(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),aN=d(["ON {UPDATE | DELETE} [SET NULL]","CHARACTER SET","{ROWS | RANGE} BETWEEN","IDENTIFIED BY"]),IN={name:"mysql",tokenizerOptions:{reservedSelect:AN,reservedClauses:[...iN,...In],reservedSetOperations:SN,reservedJoins:ON,reservedPhrases:aN,supportsXor:!0,reservedKeywords:nN,reservedDataTypes:RN,reservedFunctionNames:oN,stringTypes:['""-qq-bs',{quote:"''-qq-bs",prefixes:["N"]},{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:["``"],identChars:{first:"$",rest:"$",allowFirstCharNumber:!0},variableTypes:[{regex:"@@?[A-Za-z0-9_.$]+"},{quote:'""-qq-bs',prefixes:["@"],requirePrefix:!0},{quote:"''-qq-bs",prefixes:["@"],requirePrefix:!0},{quote:"``",prefixes:["@"],requirePrefix:!0}],paramTypes:{positional:!0},lineCommentTypes:["--","#"],operators:["%",":=","&","|","^","~","<<",">>","<=>","->","->>","&&","||","!","*.*"],postProcess:Zr},formatOptions:{onelineClauses:In}},NN=["ABORT","ABS","ACOS","ADVISOR","ARRAY_AGG","ARRAY_AGG","ARRAY_APPEND","ARRAY_AVG","ARRAY_BINARY_SEARCH","ARRAY_CONCAT","ARRAY_CONTAINS","ARRAY_COUNT","ARRAY_DISTINCT","ARRAY_EXCEPT","ARRAY_FLATTEN","ARRAY_IFNULL","ARRAY_INSERT","ARRAY_INTERSECT","ARRAY_LENGTH","ARRAY_MAX","ARRAY_MIN","ARRAY_MOVE","ARRAY_POSITION","ARRAY_PREPEND","ARRAY_PUT","ARRAY_RANGE","ARRAY_REMOVE","ARRAY_REPEAT","ARRAY_REPLACE","ARRAY_REVERSE","ARRAY_SORT","ARRAY_STAR","ARRAY_SUM","ARRAY_SYMDIFF","ARRAY_SYMDIFF1","ARRAY_SYMDIFFN","ARRAY_UNION","ASIN","ATAN","ATAN2","AVG","BASE64","BASE64_DECODE","BASE64_ENCODE","BITAND ","BITCLEAR ","BITNOT ","BITOR ","BITSET ","BITSHIFT ","BITTEST ","BITXOR ","CEIL","CLOCK_LOCAL","CLOCK_MILLIS","CLOCK_STR","CLOCK_TZ","CLOCK_UTC","COALESCE","CONCAT","CONCAT2","CONTAINS","CONTAINS_TOKEN","CONTAINS_TOKEN_LIKE","CONTAINS_TOKEN_REGEXP","COS","COUNT","COUNT","COUNTN","CUME_DIST","CURL","DATE_ADD_MILLIS","DATE_ADD_STR","DATE_DIFF_MILLIS","DATE_DIFF_STR","DATE_FORMAT_STR","DATE_PART_MILLIS","DATE_PART_STR","DATE_RANGE_MILLIS","DATE_RANGE_STR","DATE_TRUNC_MILLIS","DATE_TRUNC_STR","DECODE","DECODE_JSON","DEGREES","DENSE_RANK","DURATION_TO_STR","ENCODED_SIZE","ENCODE_JSON","EXP","FIRST_VALUE","FLOOR","GREATEST","HAS_TOKEN","IFINF","IFMISSING","IFMISSINGORNULL","IFNAN","IFNANORINF","IFNULL","INITCAP","ISARRAY","ISATOM","ISBITSET","ISBOOLEAN","ISNUMBER","ISOBJECT","ISSTRING","LAG","LAST_VALUE","LEAD","LEAST","LENGTH","LN","LOG","LOWER","LTRIM","MAX","MEAN","MEDIAN","META","MILLIS","MILLIS_TO_LOCAL","MILLIS_TO_STR","MILLIS_TO_TZ","MILLIS_TO_UTC","MILLIS_TO_ZONE_NAME","MIN","MISSINGIF","NANIF","NEGINFIF","NOW_LOCAL","NOW_MILLIS","NOW_STR","NOW_TZ","NOW_UTC","NTH_VALUE","NTILE","NULLIF","NVL","NVL2","OBJECT_ADD","OBJECT_CONCAT","OBJECT_INNER_PAIRS","OBJECT_INNER_VALUES","OBJECT_LENGTH","OBJECT_NAMES","OBJECT_PAIRS","OBJECT_PUT","OBJECT_REMOVE","OBJECT_RENAME","OBJECT_REPLACE","OBJECT_UNWRAP","OBJECT_VALUES","PAIRS","PERCENT_RANK","PI","POLY_LENGTH","POSINFIF","POSITION","POWER","RADIANS","RANDOM","RANK","RATIO_TO_REPORT","REGEXP_CONTAINS","REGEXP_LIKE","REGEXP_MATCHES","REGEXP_POSITION","REGEXP_REPLACE","REGEXP_SPLIT","REGEX_CONTAINS","REGEX_LIKE","REGEX_MATCHES","REGEX_POSITION","REGEX_REPLACE","REGEX_SPLIT","REPEAT","REPLACE","REVERSE","ROUND","ROW_NUMBER","RTRIM","SEARCH","SEARCH_META","SEARCH_SCORE","SIGN","SIN","SPLIT","SQRT","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DURATION","STR_TO_MILLIS","STR_TO_TZ","STR_TO_UTC","STR_TO_ZONE_NAME","SUBSTR","SUFFIXES","SUM","TAN","TITLE","TOARRAY","TOATOM","TOBOOLEAN","TOKENS","TOKENS","TONUMBER","TOOBJECT","TOSTRING","TRIM","TRUNC","UPPER","UUID","VARIANCE","VARIANCE_POP","VARIANCE_SAMP","VAR_POP","VAR_SAMP","WEEKDAY_MILLIS","WEEKDAY_STR","CAST"],lN=["ADVISE","ALL","ALTER","ANALYZE","AND","ANY","ARRAY","AS","ASC","AT","BEGIN","BETWEEN","BINARY","BOOLEAN","BREAK","BUCKET","BUILD","BY","CALL","CASE","CAST","CLUSTER","COLLATE","COLLECTION","COMMIT","COMMITTED","CONNECT","CONTINUE","CORRELATED","COVER","CREATE","CURRENT","DATABASE","DATASET","DATASTORE","DECLARE","DECREMENT","DELETE","DERIVED","DESC","DESCRIBE","DISTINCT","DO","DROP","EACH","ELEMENT","ELSE","END","EVERY","EXCEPT","EXCLUDE","EXECUTE","EXISTS","EXPLAIN","FALSE","FETCH","FILTER","FIRST","FLATTEN","FLUSH","FOLLOWING","FOR","FORCE","FROM","FTS","FUNCTION","GOLANG","GRANT","GROUP","GROUPS","GSI","HASH","HAVING","IF","IGNORE","ILIKE","IN","INCLUDE","INCREMENT","INDEX","INFER","INLINE","INNER","INSERT","INTERSECT","INTO","IS","ISOLATION","JAVASCRIPT","JOIN","KEY","KEYS","KEYSPACE","KNOWN","LANGUAGE","LAST","LEFT","LET","LETTING","LEVEL","LIKE","LIMIT","LSM","MAP","MAPPING","MATCHED","MATERIALIZED","MERGE","MINUS","MISSING","NAMESPACE","NEST","NL","NO","NOT","NTH_VALUE","NULL","NULLS","NUMBER","OBJECT","OFFSET","ON","OPTION","OPTIONS","OR","ORDER","OTHERS","OUTER","OVER","PARSE","PARTITION","PASSWORD","PATH","POOL","PRECEDING","PREPARE","PRIMARY","PRIVATE","PRIVILEGE","PROBE","PROCEDURE","PUBLIC","RANGE","RAW","REALM","REDUCE","RENAME","RESPECT","RETURN","RETURNING","REVOKE","RIGHT","ROLE","ROLLBACK","ROW","ROWS","SATISFIES","SAVEPOINT","SCHEMA","SCOPE","SELECT","SELF","SEMI","SET","SHOW","SOME","START","STATISTICS","STRING","SYSTEM","THEN","TIES","TO","TRAN","TRANSACTION","TRIGGER","TRUE","TRUNCATE","UNBOUNDED","UNDER","UNION","UNIQUE","UNKNOWN","UNNEST","UNSET","UPDATE","UPSERT","USE","USER","USING","VALIDATE","VALUE","VALUED","VALUES","VIA","VIEW","WHEN","WHERE","WHILE","WINDOW","WITH","WITHIN","WORK","XOR"],_N=[],CN=d(["SELECT [ALL | DISTINCT]"]),cN=d(["WITH","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT INTO","VALUES","SET","MERGE INTO","WHEN [NOT] MATCHED THEN","UPDATE SET","INSERT","NEST","UNNEST","RETURNING"]),Nn=d(["UPDATE","DELETE FROM","SET SCHEMA","ADVISE","ALTER INDEX","BEGIN TRANSACTION","BUILD INDEX","COMMIT TRANSACTION","CREATE COLLECTION","CREATE FUNCTION","CREATE INDEX","CREATE PRIMARY INDEX","CREATE SCOPE","DROP COLLECTION","DROP FUNCTION","DROP INDEX","DROP PRIMARY INDEX","DROP SCOPE","EXECUTE","EXECUTE FUNCTION","EXPLAIN","GRANT","INFER","PREPARE","REVOKE","ROLLBACK TRANSACTION","SAVEPOINT","SET TRANSACTION","UPDATE STATISTICS","UPSERT","LET","SET CURRENT SCHEMA","SHOW","USE [PRIMARY] KEYS"]),LN=d(["UNION [ALL]","EXCEPT [ALL]","INTERSECT [ALL]"]),uN=d(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","INNER JOIN"]),pN=d(["{ROWS | RANGE | GROUPS} BETWEEN"]),fN={name:"n1ql",tokenizerOptions:{reservedSelect:CN,reservedClauses:[...cN,...Nn],reservedSetOperations:LN,reservedJoins:uN,reservedPhrases:pN,supportsXor:!0,reservedKeywords:lN,reservedDataTypes:_N,reservedFunctionNames:NN,stringTypes:['""-bs',"''-bs"],identTypes:["``"],extraParens:["[]","{}"],paramTypes:{positional:!0,numbered:["$"],named:["$"]},lineCommentTypes:["#","--"],operators:["%","==",":","||"]},formatOptions:{onelineClauses:Nn}},PN=["ADD","AGENT","AGGREGATE","ALL","ALTER","AND","ANY","ARROW","AS","ASC","AT","ATTRIBUTE","AUTHID","AVG","BEGIN","BETWEEN","BLOCK","BODY","BOTH","BOUND","BULK","BY","BYTE","CALL","CALLING","CASCADE","CASE","CHARSET","CHARSETFORM","CHARSETID","CHECK","CLOSE","CLUSTER","CLUSTERS","COLAUTH","COLLECT","COLUMNS","COMMENT","COMMIT","COMMITTED","COMPILED","COMPRESS","CONNECT","CONSTANT","CONSTRUCTOR","CONTEXT","CONVERT","COUNT","CRASH","CREATE","CURRENT","CURSOR","CUSTOMDATUM","DANGLING","DATA","DAY","DECLARE","DEFAULT","DEFINE","DELETE","DESC","DETERMINISTIC","DISTINCT","DROP","DURATION","ELEMENT","ELSE","ELSIF","EMPTY","END","ESCAPE","EXCEPT","EXCEPTION","EXCEPTIONS","EXCLUSIVE","EXECUTE","EXISTS","EXIT","EXTERNAL","FETCH","FINAL","FIXED","FOR","FORALL","FORCE","FORM","FROM","FUNCTION","GENERAL","GOTO","GRANT","GROUP","HASH","HAVING","HEAP","HIDDEN","HOUR","IDENTIFIED","IF","IMMEDIATE","IN","INCLUDING","INDEX","INDEXES","INDICATOR","INDICES","INFINITE","INSERT","INSTANTIABLE","INTERFACE","INTERSECT","INTERVAL","INTO","INVALIDATE","IS","ISOLATION","JAVA","LANGUAGE","LARGE","LEADING","LENGTH","LEVEL","LIBRARY","LIKE","LIKE2","LIKE4","LIKEC","LIMIT","LIMITED","LOCAL","LOCK","LOOP","MAP","MAX","MAXLEN","MEMBER","MERGE","MIN","MINUS","MINUTE","MOD","MODE","MODIFY","MONTH","MULTISET","NAME","NAN","NATIONAL","NATIVE","NEW","NOCOMPRESS","NOCOPY","NOT","NOWAIT","NULL","OBJECT","OCICOLL","OCIDATE","OCIDATETIME","OCIDURATION","OCIINTERVAL","OCILOBLOCATOR","OCINUMBER","OCIRAW","OCIREF","OCIREFCURSOR","OCIROWID","OCISTRING","OCITYPE","OF","ON","ONLY","OPAQUE","OPEN","OPERATOR","OPTION","OR","ORACLE","ORADATA","ORDER","OVERLAPS","ORGANIZATION","ORLANY","ORLVARY","OTHERS","OUT","OVERRIDING","PACKAGE","PARALLEL_ENABLE","PARAMETER","PARAMETERS","PARTITION","PASCAL","PIPE","PIPELINED","PRAGMA","PRIOR","PRIVATE","PROCEDURE","PUBLIC","RAISE","RANGE","READ","RECORD","REF","REFERENCE","REM","REMAINDER","RENAME","RESOURCE","RESULT","RETURN","RETURNING","REVERSE","REVOKE","ROLLBACK","ROW","SAMPLE","SAVE","SAVEPOINT","SB1","SB2","SB4","SECOND","SEGMENT","SELECT","SELF","SEPARATE","SEQUENCE","SERIALIZABLE","SET","SHARE","SHORT","SIZE","SIZE_T","SOME","SPARSE","SQL","SQLCODE","SQLDATA","SQLNAME","SQLSTATE","STANDARD","START","STATIC","STDDEV","STORED","STRING","STRUCT","STYLE","SUBMULTISET","SUBPARTITION","SUBSTITUTABLE","SUBTYPE","SUM","SYNONYM","TABAUTH","TABLE","TDO","THE","THEN","TIME","TIMEZONE_ABBR","TIMEZONE_HOUR","TIMEZONE_MINUTE","TIMEZONE_REGION","TO","TRAILING","TRANSAC","TRANSACTIONAL","TRUSTED","TYPE","UB1","UB2","UB4","UNDER","UNION","UNIQUE","UNSIGNED","UNTRUSTED","UPDATE","USE","USING","VALIST","VALUE","VALUES","VARIABLE","VARIANCE","VARRAY","VIEW","VIEWS","VOID","WHEN","WHERE","WHILE","WITH","WORK","WRAPPED","WRITE","YEAR","ZONE"],DN=["ARRAY","BFILE_BASE","BINARY","BLOB_BASE","CHAR VARYING","CHAR_BASE","CHAR","CHARACTER VARYING","CHARACTER","CLOB_BASE","DATE_BASE","DATE","DECIMAL","DOUBLE","FLOAT","INT","INTERVAL DAY","INTERVAL YEAR","LONG","NATIONAL CHAR VARYING","NATIONAL CHAR","NATIONAL CHARACTER VARYING","NATIONAL CHARACTER","NCHAR VARYING","NCHAR","NCHAR","NUMBER_BASE","NUMBER","NUMBERIC","NVARCHAR","PRECISION","RAW","TIMESTAMP","UROWID","VARCHAR","VARCHAR2"],dN=["ABS","ACOS","ASIN","ATAN","ATAN2","BITAND","CEIL","COS","COSH","EXP","FLOOR","LN","LOG","MOD","NANVL","POWER","REMAINDER","ROUND","SIGN","SIN","SINH","SQRT","TAN","TANH","TRUNC","WIDTH_BUCKET","CHR","CONCAT","INITCAP","LOWER","LPAD","LTRIM","NLS_INITCAP","NLS_LOWER","NLSSORT","NLS_UPPER","REGEXP_REPLACE","REGEXP_SUBSTR","REPLACE","RPAD","RTRIM","SOUNDEX","SUBSTR","TRANSLATE","TREAT","TRIM","UPPER","NLS_CHARSET_DECL_LEN","NLS_CHARSET_ID","NLS_CHARSET_NAME","ASCII","INSTR","LENGTH","REGEXP_INSTR","ADD_MONTHS","CURRENT_DATE","CURRENT_TIMESTAMP","DBTIMEZONE","EXTRACT","FROM_TZ","LAST_DAY","LOCALTIMESTAMP","MONTHS_BETWEEN","NEW_TIME","NEXT_DAY","NUMTODSINTERVAL","NUMTOYMINTERVAL","ROUND","SESSIONTIMEZONE","SYS_EXTRACT_UTC","SYSDATE","SYSTIMESTAMP","TO_CHAR","TO_TIMESTAMP","TO_TIMESTAMP_TZ","TO_DSINTERVAL","TO_YMINTERVAL","TRUNC","TZ_OFFSET","GREATEST","LEAST","ASCIISTR","BIN_TO_NUM","CAST","CHARTOROWID","COMPOSE","CONVERT","DECOMPOSE","HEXTORAW","NUMTODSINTERVAL","NUMTOYMINTERVAL","RAWTOHEX","RAWTONHEX","ROWIDTOCHAR","ROWIDTONCHAR","SCN_TO_TIMESTAMP","TIMESTAMP_TO_SCN","TO_BINARY_DOUBLE","TO_BINARY_FLOAT","TO_CHAR","TO_CLOB","TO_DATE","TO_DSINTERVAL","TO_LOB","TO_MULTI_BYTE","TO_NCHAR","TO_NCLOB","TO_NUMBER","TO_DSINTERVAL","TO_SINGLE_BYTE","TO_TIMESTAMP","TO_TIMESTAMP_TZ","TO_YMINTERVAL","TO_YMINTERVAL","TRANSLATE","UNISTR","BFILENAME","EMPTY_BLOB,","EMPTY_CLOB","CARDINALITY","COLLECT","POWERMULTISET","POWERMULTISET_BY_CARDINALITY","SET","SYS_CONNECT_BY_PATH","CLUSTER_ID","CLUSTER_PROBABILITY","CLUSTER_SET","FEATURE_ID","FEATURE_SET","FEATURE_VALUE","PREDICTION","PREDICTION_COST","PREDICTION_DETAILS","PREDICTION_PROBABILITY","PREDICTION_SET","APPENDCHILDXML","DELETEXML","DEPTH","EXTRACT","EXISTSNODE","EXTRACTVALUE","INSERTCHILDXML","INSERTXMLBEFORE","PATH","SYS_DBURIGEN","SYS_XMLAGG","SYS_XMLGEN","UPDATEXML","XMLAGG","XMLCDATA","XMLCOLATTVAL","XMLCOMMENT","XMLCONCAT","XMLFOREST","XMLPARSE","XMLPI","XMLQUERY","XMLROOT","XMLSEQUENCE","XMLSERIALIZE","XMLTABLE","XMLTRANSFORM","DECODE","DUMP","ORA_HASH","VSIZE","COALESCE","LNNVL","NULLIF","NVL","NVL2","SYS_CONTEXT","SYS_GUID","SYS_TYPEID","UID","USER","USERENV","AVG","COLLECT","CORR","CORR_S","CORR_K","COUNT","COVAR_POP","COVAR_SAMP","CUME_DIST","DENSE_RANK","FIRST","GROUP_ID","GROUPING","GROUPING_ID","LAST","MAX","MEDIAN","MIN","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","RANK","REGR_SLOPE","REGR_INTERCEPT","REGR_COUNT","REGR_R2","REGR_AVGX","REGR_AVGY","REGR_SXX","REGR_SYY","REGR_SXY","STATS_BINOMIAL_TEST","STATS_CROSSTAB","STATS_F_TEST","STATS_KS_TEST","STATS_MODE","STATS_MW_TEST","STATS_ONE_WAY_ANOVA","STATS_T_TEST_ONE","STATS_T_TEST_PAIRED","STATS_T_TEST_INDEP","STATS_T_TEST_INDEPU","STATS_WSR_TEST","STDDEV","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE","FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTILE","RATIO_TO_REPORT","ROW_NUMBER","DEREF","MAKE_REF","REF","REFTOHEX","VALUE","CV","ITERATION_NUMBER","PRESENTNNV","PRESENTV","PREVIOUS"],MN=d(["SELECT [ALL | DISTINCT | UNIQUE]"]),UN=d(["WITH","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER [SIBLINGS] BY","OFFSET","FETCH {FIRST | NEXT}","FOR UPDATE [OF]","INSERT [INTO | ALL INTO]","VALUES","SET","MERGE [INTO]","WHEN [NOT] MATCHED [THEN]","UPDATE SET","RETURNING"]),ln=d(["CREATE [GLOBAL TEMPORARY | PRIVATE TEMPORARY | SHARDED | DUPLICATED | IMMUTABLE BLOCKCHAIN | BLOCKCHAIN | IMMUTABLE] TABLE","CREATE [OR REPLACE] [NO FORCE | FORCE] [EDITIONING | EDITIONABLE | EDITIONABLE EDITIONING | NONEDITIONABLE] VIEW","CREATE MATERIALIZED VIEW","UPDATE [ONLY]","DELETE FROM [ONLY]","DROP TABLE","ALTER TABLE","ADD","DROP {COLUMN | UNUSED COLUMNS | COLUMNS CONTINUE}","MODIFY","RENAME TO","RENAME COLUMN","TRUNCATE TABLE","SET SCHEMA","BEGIN","CONNECT BY","DECLARE","EXCEPT","EXCEPTION","LOOP","START WITH"]),hN=d(["UNION [ALL]","EXCEPT","INTERSECT"]),GN=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN","{CROSS | OUTER} APPLY"]),gN=d(["ON {UPDATE | DELETE} [SET NULL]","ON COMMIT","{ROWS | RANGE} BETWEEN"]),mN={name:"plsql",tokenizerOptions:{reservedSelect:MN,reservedClauses:[...UN,...ln],reservedSetOperations:hN,reservedJoins:GN,reservedPhrases:gN,supportsXor:!0,reservedKeywords:PN,reservedDataTypes:DN,reservedFunctionNames:dN,stringTypes:[{quote:"''-qq",prefixes:["N"]},{quote:"q''",prefixes:["N"]}],identTypes:['""-qq'],identChars:{rest:"$#"},variableTypes:[{regex:"&{1,2}[A-Za-z][A-Za-z0-9_$#]*"}],paramTypes:{numbered:[":"],named:[":"]},paramChars:{},operators:["**",":=","%","~=","^=",">>","<<","=>","@","||"],postProcess:HN},formatOptions:{alwaysDenseOperators:["@"],onelineClauses:ln}};function HN(e){let E=nt;return e.map(t=>VE.SET(t)&&VE.BY(E)?xe(ye({},t),{type:"RESERVED_KEYWORD"}):(Ko(t.type)&&(E=t),t))}var yN=["ABS","ACOS","ACOSD","ACOSH","ASIN","ASIND","ASINH","ATAN","ATAN2","ATAN2D","ATAND","ATANH","CBRT","CEIL","CEILING","COS","COSD","COSH","COT","COTD","DEGREES","DIV","EXP","FACTORIAL","FLOOR","GCD","LCM","LN","LOG","LOG10","MIN_SCALE","MOD","PI","POWER","RADIANS","RANDOM","ROUND","SCALE","SETSEED","SIGN","SIN","SIND","SINH","SQRT","TAN","TAND","TANH","TRIM_SCALE","TRUNC","WIDTH_BUCKET","ABS","ASCII","BIT_LENGTH","BTRIM","CHARACTER_LENGTH","CHAR_LENGTH","CHR","CONCAT","CONCAT_WS","FORMAT","INITCAP","LEFT","LENGTH","LOWER","LPAD","LTRIM","MD5","NORMALIZE","OCTET_LENGTH","OVERLAY","PARSE_IDENT","PG_CLIENT_ENCODING","POSITION","QUOTE_IDENT","QUOTE_LITERAL","QUOTE_NULLABLE","REGEXP_MATCH","REGEXP_MATCHES","REGEXP_REPLACE","REGEXP_SPLIT_TO_ARRAY","REGEXP_SPLIT_TO_TABLE","REPEAT","REPLACE","REVERSE","RIGHT","RPAD","RTRIM","SPLIT_PART","SPRINTF","STARTS_WITH","STRING_AGG","STRING_TO_ARRAY","STRING_TO_TABLE","STRPOS","SUBSTR","SUBSTRING","TO_ASCII","TO_HEX","TRANSLATE","TRIM","UNISTR","UPPER","BIT_COUNT","BIT_LENGTH","BTRIM","CONVERT","CONVERT_FROM","CONVERT_TO","DECODE","ENCODE","GET_BIT","GET_BYTE","LENGTH","LTRIM","MD5","OCTET_LENGTH","OVERLAY","POSITION","RTRIM","SET_BIT","SET_BYTE","SHA224","SHA256","SHA384","SHA512","STRING_AGG","SUBSTR","SUBSTRING","TRIM","BIT_COUNT","BIT_LENGTH","GET_BIT","LENGTH","OCTET_LENGTH","OVERLAY","POSITION","SET_BIT","SUBSTRING","REGEXP_MATCH","REGEXP_MATCHES","REGEXP_REPLACE","REGEXP_SPLIT_TO_ARRAY","REGEXP_SPLIT_TO_TABLE","TO_CHAR","TO_DATE","TO_NUMBER","TO_TIMESTAMP","CLOCK_TIMESTAMP","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE_BIN","DATE_PART","DATE_TRUNC","EXTRACT","ISFINITE","JUSTIFY_DAYS","JUSTIFY_HOURS","JUSTIFY_INTERVAL","LOCALTIME","LOCALTIMESTAMP","MAKE_DATE","MAKE_INTERVAL","MAKE_TIME","MAKE_TIMESTAMP","MAKE_TIMESTAMPTZ","NOW","PG_SLEEP","PG_SLEEP_FOR","PG_SLEEP_UNTIL","STATEMENT_TIMESTAMP","TIMEOFDAY","TO_TIMESTAMP","TRANSACTION_TIMESTAMP","ENUM_FIRST","ENUM_LAST","ENUM_RANGE","AREA","BOUND_BOX","BOX","CENTER","CIRCLE","DIAGONAL","DIAMETER","HEIGHT","ISCLOSED","ISOPEN","LENGTH","LINE","LSEG","NPOINTS","PATH","PCLOSE","POINT","POLYGON","POPEN","RADIUS","SLOPE","WIDTH","ABBREV","BROADCAST","FAMILY","HOST","HOSTMASK","INET_MERGE","INET_SAME_FAMILY","MACADDR8_SET7BIT","MASKLEN","NETMASK","NETWORK","SET_MASKLEN","TEXT","TRUNC","ARRAY_TO_TSVECTOR","GET_CURRENT_TS_CONFIG","JSONB_TO_TSVECTOR","JSON_TO_TSVECTOR","LENGTH","NUMNODE","PHRASETO_TSQUERY","PLAINTO_TSQUERY","QUERYTREE","SETWEIGHT","STRIP","TO_TSQUERY","TO_TSVECTOR","TSQUERY_PHRASE","TSVECTOR_TO_ARRAY","TS_DEBUG","TS_DELETE","TS_FILTER","TS_HEADLINE","TS_LEXIZE","TS_PARSE","TS_RANK","TS_RANK_CD","TS_REWRITE","TS_STAT","TS_TOKEN_TYPE","WEBSEARCH_TO_TSQUERY","UUID","CURSOR_TO_XML","CURSOR_TO_XMLSCHEMA","DATABASE_TO_XML","DATABASE_TO_XMLSCHEMA","DATABASE_TO_XML_AND_XMLSCHEMA","NEXTVAL","QUERY_TO_XML","QUERY_TO_XMLSCHEMA","QUERY_TO_XML_AND_XMLSCHEMA","SCHEMA_TO_XML","SCHEMA_TO_XMLSCHEMA","SCHEMA_TO_XML_AND_XMLSCHEMA","STRING","TABLE_TO_XML","TABLE_TO_XMLSCHEMA","TABLE_TO_XML_AND_XMLSCHEMA","XMLAGG","XMLCOMMENT","XMLCONCAT","XMLELEMENT","XMLEXISTS","XMLFOREST","XMLPARSE","XMLPI","XMLROOT","XMLSERIALIZE","XMLTABLE","XML_IS_WELL_FORMED","XML_IS_WELL_FORMED_CONTENT","XML_IS_WELL_FORMED_DOCUMENT","XPATH","XPATH_EXISTS","ARRAY_TO_JSON","JSONB_AGG","JSONB_ARRAY_ELEMENTS","JSONB_ARRAY_ELEMENTS_TEXT","JSONB_ARRAY_LENGTH","JSONB_BUILD_ARRAY","JSONB_BUILD_OBJECT","JSONB_EACH","JSONB_EACH_TEXT","JSONB_EXTRACT_PATH","JSONB_EXTRACT_PATH_TEXT","JSONB_INSERT","JSONB_OBJECT","JSONB_OBJECT_AGG","JSONB_OBJECT_KEYS","JSONB_PATH_EXISTS","JSONB_PATH_EXISTS_TZ","JSONB_PATH_MATCH","JSONB_PATH_MATCH_TZ","JSONB_PATH_QUERY","JSONB_PATH_QUERY_ARRAY","JSONB_PATH_QUERY_ARRAY_TZ","JSONB_PATH_QUERY_FIRST","JSONB_PATH_QUERY_FIRST_TZ","JSONB_PATH_QUERY_TZ","JSONB_POPULATE_RECORD","JSONB_POPULATE_RECORDSET","JSONB_PRETTY","JSONB_SET","JSONB_SET_LAX","JSONB_STRIP_NULLS","JSONB_TO_RECORD","JSONB_TO_RECORDSET","JSONB_TYPEOF","JSON_AGG","JSON_ARRAY_ELEMENTS","JSON_ARRAY_ELEMENTS_TEXT","JSON_ARRAY_LENGTH","JSON_BUILD_ARRAY","JSON_BUILD_OBJECT","JSON_EACH","JSON_EACH_TEXT","JSON_EXTRACT_PATH","JSON_EXTRACT_PATH_TEXT","JSON_OBJECT","JSON_OBJECT_AGG","JSON_OBJECT_KEYS","JSON_POPULATE_RECORD","JSON_POPULATE_RECORDSET","JSON_STRIP_NULLS","JSON_TO_RECORD","JSON_TO_RECORDSET","JSON_TYPEOF","ROW_TO_JSON","TO_JSON","TO_JSONB","TO_TIMESTAMP","CURRVAL","LASTVAL","NEXTVAL","SETVAL","COALESCE","GREATEST","LEAST","NULLIF","ARRAY_AGG","ARRAY_APPEND","ARRAY_CAT","ARRAY_DIMS","ARRAY_FILL","ARRAY_LENGTH","ARRAY_LOWER","ARRAY_NDIMS","ARRAY_POSITION","ARRAY_POSITIONS","ARRAY_PREPEND","ARRAY_REMOVE","ARRAY_REPLACE","ARRAY_TO_STRING","ARRAY_UPPER","CARDINALITY","STRING_TO_ARRAY","TRIM_ARRAY","UNNEST","ISEMPTY","LOWER","LOWER_INC","LOWER_INF","MULTIRANGE","RANGE_MERGE","UPPER","UPPER_INC","UPPER_INF","ARRAY_AGG","AVG","BIT_AND","BIT_OR","BIT_XOR","BOOL_AND","BOOL_OR","COALESCE","CORR","COUNT","COVAR_POP","COVAR_SAMP","CUME_DIST","DENSE_RANK","EVERY","GROUPING","JSONB_AGG","JSONB_OBJECT_AGG","JSON_AGG","JSON_OBJECT_AGG","MAX","MIN","MODE","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","RANGE_AGG","RANGE_INTERSECT_AGG","RANK","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV","STDDEV_POP","STDDEV_SAMP","STRING_AGG","SUM","TO_JSON","TO_JSONB","VARIANCE","VAR_POP","VAR_SAMP","XMLAGG","CUME_DIST","DENSE_RANK","FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","RANK","ROW_NUMBER","GENERATE_SERIES","GENERATE_SUBSCRIPTS","ACLDEFAULT","ACLEXPLODE","COL_DESCRIPTION","CURRENT_CATALOG","CURRENT_DATABASE","CURRENT_QUERY","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_SCHEMAS","CURRENT_USER","FORMAT_TYPE","HAS_ANY_COLUMN_PRIVILEGE","HAS_COLUMN_PRIVILEGE","HAS_DATABASE_PRIVILEGE","HAS_FOREIGN_DATA_WRAPPER_PRIVILEGE","HAS_FUNCTION_PRIVILEGE","HAS_LANGUAGE_PRIVILEGE","HAS_SCHEMA_PRIVILEGE","HAS_SEQUENCE_PRIVILEGE","HAS_SERVER_PRIVILEGE","HAS_TABLESPACE_PRIVILEGE","HAS_TABLE_PRIVILEGE","HAS_TYPE_PRIVILEGE","INET_CLIENT_ADDR","INET_CLIENT_PORT","INET_SERVER_ADDR","INET_SERVER_PORT","MAKEACLITEM","OBJ_DESCRIPTION","PG_BACKEND_PID","PG_BLOCKING_PIDS","PG_COLLATION_IS_VISIBLE","PG_CONF_LOAD_TIME","PG_CONTROL_CHECKPOINT","PG_CONTROL_INIT","PG_CONTROL_SYSTEM","PG_CONVERSION_IS_VISIBLE","PG_CURRENT_LOGFILE","PG_CURRENT_SNAPSHOT","PG_CURRENT_XACT_ID","PG_CURRENT_XACT_ID_IF_ASSIGNED","PG_DESCRIBE_OBJECT","PG_FUNCTION_IS_VISIBLE","PG_GET_CATALOG_FOREIGN_KEYS","PG_GET_CONSTRAINTDEF","PG_GET_EXPR","PG_GET_FUNCTIONDEF","PG_GET_FUNCTION_ARGUMENTS","PG_GET_FUNCTION_IDENTITY_ARGUMENTS","PG_GET_FUNCTION_RESULT","PG_GET_INDEXDEF","PG_GET_KEYWORDS","PG_GET_OBJECT_ADDRESS","PG_GET_OWNED_SEQUENCE","PG_GET_RULEDEF","PG_GET_SERIAL_SEQUENCE","PG_GET_STATISTICSOBJDEF","PG_GET_TRIGGERDEF","PG_GET_USERBYID","PG_GET_VIEWDEF","PG_HAS_ROLE","PG_IDENTIFY_OBJECT","PG_IDENTIFY_OBJECT_AS_ADDRESS","PG_INDEXAM_HAS_PROPERTY","PG_INDEX_COLUMN_HAS_PROPERTY","PG_INDEX_HAS_PROPERTY","PG_IS_OTHER_TEMP_SCHEMA","PG_JIT_AVAILABLE","PG_LAST_COMMITTED_XACT","PG_LISTENING_CHANNELS","PG_MY_TEMP_SCHEMA","PG_NOTIFICATION_QUEUE_USAGE","PG_OPCLASS_IS_VISIBLE","PG_OPERATOR_IS_VISIBLE","PG_OPFAMILY_IS_VISIBLE","PG_OPTIONS_TO_TABLE","PG_POSTMASTER_START_TIME","PG_SAFE_SNAPSHOT_BLOCKING_PIDS","PG_SNAPSHOT_XIP","PG_SNAPSHOT_XMAX","PG_SNAPSHOT_XMIN","PG_STATISTICS_OBJ_IS_VISIBLE","PG_TABLESPACE_DATABASES","PG_TABLESPACE_LOCATION","PG_TABLE_IS_VISIBLE","PG_TRIGGER_DEPTH","PG_TS_CONFIG_IS_VISIBLE","PG_TS_DICT_IS_VISIBLE","PG_TS_PARSER_IS_VISIBLE","PG_TS_TEMPLATE_IS_VISIBLE","PG_TYPEOF","PG_TYPE_IS_VISIBLE","PG_VISIBLE_IN_SNAPSHOT","PG_XACT_COMMIT_TIMESTAMP","PG_XACT_COMMIT_TIMESTAMP_ORIGIN","PG_XACT_STATUS","PQSERVERVERSION","ROW_SECURITY_ACTIVE","SESSION_USER","SHOBJ_DESCRIPTION","TO_REGCLASS","TO_REGCOLLATION","TO_REGNAMESPACE","TO_REGOPER","TO_REGOPERATOR","TO_REGPROC","TO_REGPROCEDURE","TO_REGROLE","TO_REGTYPE","TXID_CURRENT","TXID_CURRENT_IF_ASSIGNED","TXID_CURRENT_SNAPSHOT","TXID_SNAPSHOT_XIP","TXID_SNAPSHOT_XMAX","TXID_SNAPSHOT_XMIN","TXID_STATUS","TXID_VISIBLE_IN_SNAPSHOT","USER","VERSION","BRIN_DESUMMARIZE_RANGE","BRIN_SUMMARIZE_NEW_VALUES","BRIN_SUMMARIZE_RANGE","CONVERT_FROM","CURRENT_SETTING","GIN_CLEAN_PENDING_LIST","PG_ADVISORY_LOCK","PG_ADVISORY_LOCK_SHARED","PG_ADVISORY_UNLOCK","PG_ADVISORY_UNLOCK_ALL","PG_ADVISORY_UNLOCK_SHARED","PG_ADVISORY_XACT_LOCK","PG_ADVISORY_XACT_LOCK_SHARED","PG_BACKUP_START_TIME","PG_CANCEL_BACKEND","PG_COLLATION_ACTUAL_VERSION","PG_COLUMN_COMPRESSION","PG_COLUMN_SIZE","PG_COPY_LOGICAL_REPLICATION_SLOT","PG_COPY_PHYSICAL_REPLICATION_SLOT","PG_CREATE_LOGICAL_REPLICATION_SLOT","PG_CREATE_PHYSICAL_REPLICATION_SLOT","PG_CREATE_RESTORE_POINT","PG_CURRENT_WAL_FLUSH_LSN","PG_CURRENT_WAL_INSERT_LSN","PG_CURRENT_WAL_LSN","PG_DATABASE_SIZE","PG_DROP_REPLICATION_SLOT","PG_EXPORT_SNAPSHOT","PG_FILENODE_RELATION","PG_GET_WAL_REPLAY_PAUSE_STATE","PG_IMPORT_SYSTEM_COLLATIONS","PG_INDEXES_SIZE","PG_IS_IN_BACKUP","PG_IS_IN_RECOVERY","PG_IS_WAL_REPLAY_PAUSED","PG_LAST_WAL_RECEIVE_LSN","PG_LAST_WAL_REPLAY_LSN","PG_LAST_XACT_REPLAY_TIMESTAMP","PG_LOGICAL_EMIT_MESSAGE","PG_LOGICAL_SLOT_GET_BINARY_CHANGES","PG_LOGICAL_SLOT_GET_CHANGES","PG_LOGICAL_SLOT_PEEK_BINARY_CHANGES","PG_LOGICAL_SLOT_PEEK_CHANGES","PG_LOG_BACKEND_MEMORY_CONTEXTS","PG_LS_ARCHIVE_STATUSDIR","PG_LS_DIR","PG_LS_LOGDIR","PG_LS_TMPDIR","PG_LS_WALDIR","PG_PARTITION_ANCESTORS","PG_PARTITION_ROOT","PG_PARTITION_TREE","PG_PROMOTE","PG_READ_BINARY_FILE","PG_READ_FILE","PG_RELATION_FILENODE","PG_RELATION_FILEPATH","PG_RELATION_SIZE","PG_RELOAD_CONF","PG_REPLICATION_ORIGIN_ADVANCE","PG_REPLICATION_ORIGIN_CREATE","PG_REPLICATION_ORIGIN_DROP","PG_REPLICATION_ORIGIN_OID","PG_REPLICATION_ORIGIN_PROGRESS","PG_REPLICATION_ORIGIN_SESSION_IS_SETUP","PG_REPLICATION_ORIGIN_SESSION_PROGRESS","PG_REPLICATION_ORIGIN_SESSION_RESET","PG_REPLICATION_ORIGIN_SESSION_SETUP","PG_REPLICATION_ORIGIN_XACT_RESET","PG_REPLICATION_ORIGIN_XACT_SETUP","PG_REPLICATION_SLOT_ADVANCE","PG_ROTATE_LOGFILE","PG_SIZE_BYTES","PG_SIZE_PRETTY","PG_START_BACKUP","PG_STAT_FILE","PG_STOP_BACKUP","PG_SWITCH_WAL","PG_TABLESPACE_SIZE","PG_TABLE_SIZE","PG_TERMINATE_BACKEND","PG_TOTAL_RELATION_SIZE","PG_TRY_ADVISORY_LOCK","PG_TRY_ADVISORY_LOCK_SHARED","PG_TRY_ADVISORY_XACT_LOCK","PG_TRY_ADVISORY_XACT_LOCK_SHARED","PG_WALFILE_NAME","PG_WALFILE_NAME_OFFSET","PG_WAL_LSN_DIFF","PG_WAL_REPLAY_PAUSE","PG_WAL_REPLAY_RESUME","SET_CONFIG","SUPPRESS_REDUNDANT_UPDATES_TRIGGER","TSVECTOR_UPDATE_TRIGGER","TSVECTOR_UPDATE_TRIGGER_COLUMN","PG_EVENT_TRIGGER_DDL_COMMANDS","PG_EVENT_TRIGGER_DROPPED_OBJECTS","PG_EVENT_TRIGGER_TABLE_REWRITE_OID","PG_EVENT_TRIGGER_TABLE_REWRITE_REASON","PG_GET_OBJECT_ADDRESS","PG_MCV_LIST_ITEMS","CAST"],bN=["ABORT","ABSOLUTE","ACCESS","ACTION","ADD","ADMIN","AFTER","AGGREGATE","ALL","ALSO","ALTER","ALWAYS","ANALYSE","ANALYZE","AND","ANY","AS","ASC","ASENSITIVE","ASSERTION","ASSIGNMENT","ASYMMETRIC","AT","ATOMIC","ATTACH","ATTRIBUTE","AUTHORIZATION","BACKWARD","BEFORE","BEGIN","BETWEEN","BINARY","BOTH","BREADTH","BY","CACHE","CALL","CALLED","CASCADE","CASCADED","CASE","CAST","CATALOG","CHAIN","CHARACTERISTICS","CHECK","CHECKPOINT","CLASS","CLOSE","CLUSTER","COALESCE","COLLATE","COLLATION","COLUMN","COLUMNS","COMMENT","COMMENTS","COMMIT","COMMITTED","COMPRESSION","CONCURRENTLY","CONFIGURATION","CONFLICT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTENT","CONTINUE","CONVERSION","COPY","COST","CREATE","CROSS","CSV","CUBE","CURRENT","CURRENT_CATALOG","CURRENT_DATE","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CYCLE","DATA","DATABASE","DAY","DEALLOCATE","DEC","DECLARE","DEFAULT","DEFAULTS","DEFERRABLE","DEFERRED","DEFINER","DELETE","DELIMITER","DELIMITERS","DEPENDS","DEPTH","DESC","DETACH","DICTIONARY","DISABLE","DISCARD","DISTINCT","DO","DOCUMENT","DOMAIN","DROP","EACH","ELSE","ENABLE","ENCODING","ENCRYPTED","END","ENUM","ESCAPE","EVENT","EXCEPT","EXCLUDE","EXCLUDING","EXCLUSIVE","EXECUTE","EXISTS","EXPLAIN","EXPRESSION","EXTENSION","EXTERNAL","EXTRACT","FALSE","FAMILY","FETCH","FILTER","FINALIZE","FIRST","FOLLOWING","FOR","FORCE","FOREIGN","FORWARD","FREEZE","FROM","FULL","FUNCTION","FUNCTIONS","GENERATED","GLOBAL","GRANT","GRANTED","GREATEST","GROUP","GROUPING","GROUPS","HANDLER","HAVING","HEADER","HOLD","HOUR","IDENTITY","IF","ILIKE","IMMEDIATE","IMMUTABLE","IMPLICIT","IMPORT","IN","INCLUDE","INCLUDING","INCREMENT","INDEX","INDEXES","INHERIT","INHERITS","INITIALLY","INLINE","INNER","INOUT","INPUT","INSENSITIVE","INSERT","INSTEAD","INTERSECT","INTO","INVOKER","IS","ISNULL","ISOLATION","JOIN","KEY","LANGUAGE","LARGE","LAST","LATERAL","LEADING","LEAKPROOF","LEAST","LEFT","LEVEL","LIKE","LIMIT","LISTEN","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCK","LOCKED","LOGGED","MAPPING","MATCH","MATERIALIZED","MAXVALUE","METHOD","MINUTE","MINVALUE","MODE","MONTH","MOVE","NATIONAL","NATURAL","NCHAR","NEW","NEXT","NFC","NFD","NFKC","NFKD","NO","NONE","NORMALIZE","NORMALIZED","NOT","NOTHING","NOTIFY","NOTNULL","NOWAIT","NULL","NULLIF","NULLS","OBJECT","OF","OFF","OFFSET","OIDS","OLD","ON","ONLY","OPERATOR","OPTION","OPTIONS","OR","ORDER","ORDINALITY","OTHERS","OUT","OUTER","OVER","OVERLAPS","OVERLAY","OVERRIDING","OWNED","OWNER","PARALLEL","PARSER","PARTIAL","PARTITION","PASSING","PASSWORD","PLACING","PLANS","POLICY","POSITION","PRECEDING","PREPARE","PREPARED","PRESERVE","PRIMARY","PRIOR","PRIVILEGES","PROCEDURAL","PROCEDURE","PROCEDURES","PROGRAM","PUBLICATION","QUOTE","RANGE","READ","REASSIGN","RECHECK","RECURSIVE","REF","REFERENCES","REFERENCING","REFRESH","REINDEX","RELATIVE","RENAME","REPEATABLE","REPLACE","REPLICA","RESET","RESTART","RESTRICT","RETURN","RETURNING","RETURNS","REVOKE","RIGHT","ROLE","ROLLBACK","ROLLUP","ROUTINE","ROUTINES","ROW","ROWS","RULE","SAVEPOINT","SCHEMA","SCHEMAS","SCROLL","SEARCH","SECOND","SECURITY","SELECT","SEQUENCE","SEQUENCES","SERIALIZABLE","SERVER","SESSION","SESSION_USER","SET","SETOF","SETS","SHARE","SHOW","SIMILAR","SIMPLE","SKIP","SNAPSHOT","SOME","SQL","STABLE","STANDALONE","START","STATEMENT","STATISTICS","STDIN","STDOUT","STORAGE","STORED","STRICT","STRIP","SUBSCRIPTION","SUBSTRING","SUPPORT","SYMMETRIC","SYSID","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESPACE","TEMP","TEMPLATE","TEMPORARY","THEN","TIES","TO","TRAILING","TRANSACTION","TRANSFORM","TREAT","TRIGGER","TRIM","TRUE","TRUNCATE","TRUSTED","UESCAPE","UNBOUNDED","UNCOMMITTED","UNENCRYPTED","UNION","UNIQUE","UNKNOWN","UNLISTEN","UNLOGGED","UNTIL","UPDATE","USER","USING","VACUUM","VALID","VALIDATE","VALIDATOR","VALUE","VALUES","VARIADIC","VERBOSE","VERSION","VIEW","VIEWS","VOLATILE","WHEN","WHERE","WHITESPACE","WINDOW","WITH","WITHIN","WITHOUT","WORK","WRAPPER","WRITE","XMLATTRIBUTES","XMLCONCAT","XMLELEMENT","XMLEXISTS","XMLFOREST","XMLNAMESPACES","XMLPARSE","XMLPI","XMLROOT","XMLSERIALIZE","XMLTABLE","YEAR","YES"],BN=["ARRAY","BIGINT","BIT","BIT VARYING","BOOL","BOOLEAN","CHAR","CHARACTER","CHARACTER VARYING","DECIMAL","DOUBLE","ENUM","FLOAT","INT","INTEGER","INTERVAL","NUMERIC","PRECISION","REAL","SMALLINT","TEXT","TIME","TIMESTAMP","TIMESTAMPTZ","VARCHAR","XML","ZONE"],FN=d(["SELECT [ALL | DISTINCT]"]),vN=d(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","FOR {UPDATE | NO KEY UPDATE | SHARE | KEY SHARE} [OF]","INSERT INTO","VALUES","SET","RETURNING"]),_n=d(["CREATE [GLOBAL | LOCAL] [TEMPORARY | TEMP | UNLOGGED] TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] [TEMP | TEMPORARY] [RECURSIVE] VIEW","CREATE [MATERIALIZED] VIEW [IF NOT EXISTS]","UPDATE [ONLY]","WHERE CURRENT OF","ON CONFLICT","DELETE FROM [ONLY]","DROP TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS] [ONLY]","ALTER TABLE ALL IN TABLESPACE","RENAME [COLUMN]","RENAME TO","ADD [COLUMN] [IF NOT EXISTS]","DROP [COLUMN] [IF EXISTS]","ALTER [COLUMN]","SET DATA TYPE","{SET | DROP} DEFAULT","{SET | DROP} NOT NULL","TRUNCATE [TABLE] [ONLY]","SET SCHEMA","AFTER","ABORT","ALTER AGGREGATE","ALTER COLLATION","ALTER CONVERSION","ALTER DATABASE","ALTER DEFAULT PRIVILEGES","ALTER DOMAIN","ALTER EVENT TRIGGER","ALTER EXTENSION","ALTER FOREIGN DATA WRAPPER","ALTER FOREIGN TABLE","ALTER FUNCTION","ALTER GROUP","ALTER INDEX","ALTER LANGUAGE","ALTER LARGE OBJECT","ALTER MATERIALIZED VIEW","ALTER OPERATOR","ALTER OPERATOR CLASS","ALTER OPERATOR FAMILY","ALTER POLICY","ALTER PROCEDURE","ALTER PUBLICATION","ALTER ROLE","ALTER ROUTINE","ALTER RULE","ALTER SCHEMA","ALTER SEQUENCE","ALTER SERVER","ALTER STATISTICS","ALTER SUBSCRIPTION","ALTER SYSTEM","ALTER TABLESPACE","ALTER TEXT SEARCH CONFIGURATION","ALTER TEXT SEARCH DICTIONARY","ALTER TEXT SEARCH PARSER","ALTER TEXT SEARCH TEMPLATE","ALTER TRIGGER","ALTER TYPE","ALTER USER","ALTER USER MAPPING","ALTER VIEW","ANALYZE","BEGIN","CALL","CHECKPOINT","CLOSE","CLUSTER","COMMIT","COMMIT PREPARED","COPY","CREATE ACCESS METHOD","CREATE AGGREGATE","CREATE CAST","CREATE COLLATION","CREATE CONVERSION","CREATE DATABASE","CREATE DOMAIN","CREATE EVENT TRIGGER","CREATE EXTENSION","CREATE FOREIGN DATA WRAPPER","CREATE FOREIGN TABLE","CREATE FUNCTION","CREATE GROUP","CREATE INDEX","CREATE LANGUAGE","CREATE OPERATOR","CREATE OPERATOR CLASS","CREATE OPERATOR FAMILY","CREATE POLICY","CREATE PROCEDURE","CREATE PUBLICATION","CREATE ROLE","CREATE RULE","CREATE SCHEMA","CREATE SEQUENCE","CREATE SERVER","CREATE STATISTICS","CREATE SUBSCRIPTION","CREATE TABLESPACE","CREATE TEXT SEARCH CONFIGURATION","CREATE TEXT SEARCH DICTIONARY","CREATE TEXT SEARCH PARSER","CREATE TEXT SEARCH TEMPLATE","CREATE TRANSFORM","CREATE TRIGGER","CREATE TYPE","CREATE USER","CREATE USER MAPPING","DEALLOCATE","DECLARE","DISCARD","DROP ACCESS METHOD","DROP AGGREGATE","DROP CAST","DROP COLLATION","DROP CONVERSION","DROP DATABASE","DROP DOMAIN","DROP EVENT TRIGGER","DROP EXTENSION","DROP FOREIGN DATA WRAPPER","DROP FOREIGN TABLE","DROP FUNCTION","DROP GROUP","DROP INDEX","DROP LANGUAGE","DROP MATERIALIZED VIEW","DROP OPERATOR","DROP OPERATOR CLASS","DROP OPERATOR FAMILY","DROP OWNED","DROP POLICY","DROP PROCEDURE","DROP PUBLICATION","DROP ROLE","DROP ROUTINE","DROP RULE","DROP SCHEMA","DROP SEQUENCE","DROP SERVER","DROP STATISTICS","DROP SUBSCRIPTION","DROP TABLESPACE","DROP TEXT SEARCH CONFIGURATION","DROP TEXT SEARCH DICTIONARY","DROP TEXT SEARCH PARSER","DROP TEXT SEARCH TEMPLATE","DROP TRANSFORM","DROP TRIGGER","DROP TYPE","DROP USER","DROP USER MAPPING","DROP VIEW","EXECUTE","EXPLAIN","FETCH","GRANT","IMPORT FOREIGN SCHEMA","LISTEN","LOAD","LOCK","MOVE","NOTIFY","PREPARE","PREPARE TRANSACTION","REASSIGN OWNED","REFRESH MATERIALIZED VIEW","REINDEX","RELEASE SAVEPOINT","RESET","REVOKE","ROLLBACK","ROLLBACK PREPARED","ROLLBACK TO SAVEPOINT","SAVEPOINT","SECURITY LABEL","SELECT INTO","SET CONSTRAINTS","SET ROLE","SET SESSION AUTHORIZATION","SET TRANSACTION","SHOW","START TRANSACTION","UNLISTEN","VACUUM"]),YN=d(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),xN=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),VN=d(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE | GROUPS} BETWEEN","[TIMESTAMP | TIME] {WITH | WITHOUT} TIME ZONE","IS [NOT] DISTINCT FROM"]),wN={name:"postgresql",tokenizerOptions:{reservedSelect:FN,reservedClauses:[...vN,..._n],reservedSetOperations:YN,reservedJoins:xN,reservedPhrases:VN,reservedKeywords:bN,reservedDataTypes:BN,reservedFunctionNames:yN,nestedBlockComments:!0,extraParens:["[]"],stringTypes:["$$",{quote:"''-qq",prefixes:["U&"]},{quote:"''-qq-bs",prefixes:["E"],requirePrefix:!0},{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:[{quote:'""-qq',prefixes:["U&"]}],identChars:{rest:"$"},paramTypes:{numbered:["$"]},operators:["%","^","|/","||/","@",":=","&","|","#","~","<<",">>","~>~","~<~","~>=~","~<=~","@-@","@@","##","<->","&&","&<","&>","<<|","&<|","|>>","|&>","<^","^>","?#","?-","?|","?-|","?||","@>","<@","~=","?","@?","?&","->","->>","#>","#>>","#-","=>",">>=","<<=","~~","~~*","!~~","!~~*","~","~*","!~","!~*","-|-","||","@@@","!!","<%","%>","<<%","%>>","<<->","<->>","<<<->","<->>>","::",":"]},formatOptions:{alwaysDenseOperators:["::",":"],onelineClauses:_n}},WN=["ANY_VALUE","APPROXIMATE PERCENTILE_DISC","AVG","COUNT","LISTAGG","MAX","MEDIAN","MIN","PERCENTILE_CONT","STDDEV_SAMP","STDDEV_POP","SUM","VAR_SAMP","VAR_POP","array","array_concat","array_flatten","get_array_length","split_to_array","subarray","BIT_AND","BIT_OR","BOOL_AND","BOOL_OR","COALESCE","DECODE","GREATEST","LEAST","NVL","NVL2","NULLIF","ADD_MONTHS","AT TIME ZONE","CONVERT_TIMEZONE","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE_CMP","DATE_CMP_TIMESTAMP","DATE_CMP_TIMESTAMPTZ","DATE_PART_YEAR","DATEADD","DATEDIFF","DATE_PART","DATE_TRUNC","EXTRACT","GETDATE","INTERVAL_CMP","LAST_DAY","MONTHS_BETWEEN","NEXT_DAY","SYSDATE","TIMEOFDAY","TIMESTAMP_CMP","TIMESTAMP_CMP_DATE","TIMESTAMP_CMP_TIMESTAMPTZ","TIMESTAMPTZ_CMP","TIMESTAMPTZ_CMP_DATE","TIMESTAMPTZ_CMP_TIMESTAMP","TIMEZONE","TO_TIMESTAMP","TRUNC","AddBBox","DropBBox","GeometryType","ST_AddPoint","ST_Angle","ST_Area","ST_AsBinary","ST_AsEWKB","ST_AsEWKT","ST_AsGeoJSON","ST_AsText","ST_Azimuth","ST_Boundary","ST_Collect","ST_Contains","ST_ContainsProperly","ST_ConvexHull","ST_CoveredBy","ST_Covers","ST_Crosses","ST_Dimension","ST_Disjoint","ST_Distance","ST_DistanceSphere","ST_DWithin","ST_EndPoint","ST_Envelope","ST_Equals","ST_ExteriorRing","ST_Force2D","ST_Force3D","ST_Force3DM","ST_Force3DZ","ST_Force4D","ST_GeometryN","ST_GeometryType","ST_GeomFromEWKB","ST_GeomFromEWKT","ST_GeomFromText","ST_GeomFromWKB","ST_InteriorRingN","ST_Intersects","ST_IsPolygonCCW","ST_IsPolygonCW","ST_IsClosed","ST_IsCollection","ST_IsEmpty","ST_IsSimple","ST_IsValid","ST_Length","ST_LengthSphere","ST_Length2D","ST_LineFromMultiPoint","ST_LineInterpolatePoint","ST_M","ST_MakeEnvelope","ST_MakeLine","ST_MakePoint","ST_MakePolygon","ST_MemSize","ST_MMax","ST_MMin","ST_Multi","ST_NDims","ST_NPoints","ST_NRings","ST_NumGeometries","ST_NumInteriorRings","ST_NumPoints","ST_Perimeter","ST_Perimeter2D","ST_Point","ST_PointN","ST_Points","ST_Polygon","ST_RemovePoint","ST_Reverse","ST_SetPoint","ST_SetSRID","ST_Simplify","ST_SRID","ST_StartPoint","ST_Touches","ST_Within","ST_X","ST_XMax","ST_XMin","ST_Y","ST_YMax","ST_YMin","ST_Z","ST_ZMax","ST_ZMin","SupportsBBox","CHECKSUM","FUNC_SHA1","FNV_HASH","MD5","SHA","SHA1","SHA2","HLL","HLL_CREATE_SKETCH","HLL_CARDINALITY","HLL_COMBINE","IS_VALID_JSON","IS_VALID_JSON_ARRAY","JSON_ARRAY_LENGTH","JSON_EXTRACT_ARRAY_ELEMENT_TEXT","JSON_EXTRACT_PATH_TEXT","JSON_PARSE","JSON_SERIALIZE","ABS","ACOS","ASIN","ATAN","ATAN2","CBRT","CEILING","CEIL","COS","COT","DEGREES","DEXP","DLOG1","DLOG10","EXP","FLOOR","LN","LOG","MOD","PI","POWER","RADIANS","RANDOM","ROUND","SIN","SIGN","SQRT","TAN","TO_HEX","TRUNC","EXPLAIN_MODEL","ASCII","BPCHARCMP","BTRIM","BTTEXT_PATTERN_CMP","CHAR_LENGTH","CHARACTER_LENGTH","CHARINDEX","CHR","COLLATE","CONCAT","CRC32","DIFFERENCE","INITCAP","LEFT","RIGHT","LEN","LENGTH","LOWER","LPAD","RPAD","LTRIM","OCTETINDEX","OCTET_LENGTH","POSITION","QUOTE_IDENT","QUOTE_LITERAL","REGEXP_COUNT","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","REPEAT","REPLACE","REPLICATE","REVERSE","RTRIM","SOUNDEX","SPLIT_PART","STRPOS","STRTOL","SUBSTRING","TEXTLEN","TRANSLATE","TRIM","UPPER","decimal_precision","decimal_scale","is_array","is_bigint","is_boolean","is_char","is_decimal","is_float","is_integer","is_object","is_scalar","is_smallint","is_varchar","json_typeof","AVG","COUNT","CUME_DIST","DENSE_RANK","FIRST_VALUE","LAST_VALUE","LAG","LEAD","LISTAGG","MAX","MEDIAN","MIN","NTH_VALUE","NTILE","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","RANK","RATIO_TO_REPORT","ROW_NUMBER","STDDEV_SAMP","STDDEV_POP","SUM","VAR_SAMP","VAR_POP","CAST","CONVERT","TO_CHAR","TO_DATE","TO_NUMBER","TEXT_TO_INT_ALT","TEXT_TO_NUMERIC_ALT","CHANGE_QUERY_PRIORITY","CHANGE_SESSION_PRIORITY","CHANGE_USER_PRIORITY","CURRENT_SETTING","PG_CANCEL_BACKEND","PG_TERMINATE_BACKEND","REBOOT_CLUSTER","SET_CONFIG","CURRENT_AWS_ACCOUNT","CURRENT_DATABASE","CURRENT_NAMESPACE","CURRENT_SCHEMA","CURRENT_SCHEMAS","CURRENT_USER","CURRENT_USER_ID","HAS_ASSUMEROLE_PRIVILEGE","HAS_DATABASE_PRIVILEGE","HAS_SCHEMA_PRIVILEGE","HAS_TABLE_PRIVILEGE","PG_BACKEND_PID","PG_GET_COLS","PG_GET_GRANTEE_BY_IAM_ROLE","PG_GET_IAM_ROLE_BY_USER","PG_GET_LATE_BINDING_VIEW_COLS","PG_LAST_COPY_COUNT","PG_LAST_COPY_ID","PG_LAST_UNLOAD_ID","PG_LAST_QUERY_ID","PG_LAST_UNLOAD_COUNT","SESSION_USER","SLICE_NUM","USER","VERSION"],XN=["AES128","AES256","ALL","ALLOWOVERWRITE","ANY","AS","ASC","AUTHORIZATION","BACKUP","BETWEEN","BINARY","BOTH","CHECK","COLUMN","CONSTRAINT","CREATE","CROSS","DEFAULT","DEFERRABLE","DEFLATE","DEFRAG","DESC","DISABLE","DISTINCT","DO","ENABLE","ENCODE","ENCRYPT","ENCRYPTION","EXPLICIT","FALSE","FOR","FOREIGN","FREEZE","FROM","FULL","GLOBALDICT256","GLOBALDICT64K","GROUP","IDENTITY","IGNORE","ILIKE","IN","INITIALLY","INNER","INTO","IS","ISNULL","LANGUAGE","LEADING","LIKE","LIMIT","LOCALTIME","LOCALTIMESTAMP","LUN","LUNS","MINUS","NATURAL","NEW","NOT","NOTNULL","NULL","NULLS","OFF","OFFLINE","OFFSET","OID","OLD","ON","ONLY","OPEN","ORDER","OUTER","OVERLAPS","PARALLEL","PARTITION","PERCENT","PERMISSIONS","PLACING","PRIMARY","RECOVER","REFERENCES","REJECTLOG","RESORT","RESPECT","RESTORE","SIMILAR","SNAPSHOT","SOME","SYSTEM","TABLE","TAG","TDES","THEN","TIMESTAMP","TO","TOP","TRAILING","TRUE","UNIQUE","USING","VERBOSE","WALLET","WITHOUT","ACCEPTANYDATE","ACCEPTINVCHARS","BLANKSASNULL","DATEFORMAT","EMPTYASNULL","ENCODING","ESCAPE","EXPLICIT_IDS","FILLRECORD","IGNOREBLANKLINES","IGNOREHEADER","REMOVEQUOTES","ROUNDEC","TIMEFORMAT","TRIMBLANKS","TRUNCATECOLUMNS","COMPROWS","COMPUPDATE","MAXERROR","NOLOAD","STATUPDATE","FORMAT","CSV","DELIMITER","FIXEDWIDTH","SHAPEFILE","AVRO","JSON","PARQUET","ORC","ACCESS_KEY_ID","CREDENTIALS","ENCRYPTED","IAM_ROLE","MASTER_SYMMETRIC_KEY","SECRET_ACCESS_KEY","SESSION_TOKEN","BZIP2","GZIP","LZOP","ZSTD","MANIFEST","READRATIO","REGION","SSH","RAW","AZ64","BYTEDICT","DELTA","DELTA32K","LZO","MOSTLY8","MOSTLY16","MOSTLY32","RUNLENGTH","TEXT255","TEXT32K","CATALOG_ROLE","SECRET_ARN","EXTERNAL","AUTO","EVEN","KEY","PREDICATE","COMPRESSION"],$N=["ARRAY","BIGINT","BPCHAR","CHAR","CHARACTER VARYING","CHARACTER","DECIMAL","INT","INT2","INT4","INT8","INTEGER","NCHAR","NUMERIC","NVARCHAR","SMALLINT","TEXT","VARBYTE","VARCHAR"],KN=d(["SELECT [ALL | DISTINCT]"]),JN=d(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT INTO","VALUES","SET"]),Cn=d(["CREATE [TEMPORARY | TEMP | LOCAL TEMPORARY | LOCAL TEMP] TABLE [IF NOT EXISTS]","CREATE [OR REPLACE | MATERIALIZED] VIEW","UPDATE","DELETE [FROM]","DROP TABLE [IF EXISTS]","ALTER TABLE","ALTER TABLE APPEND","ADD [COLUMN]","DROP [COLUMN]","RENAME TO","RENAME COLUMN","ALTER COLUMN","TYPE","ENCODE","TRUNCATE [TABLE]","ABORT","ALTER DATABASE","ALTER DATASHARE","ALTER DEFAULT PRIVILEGES","ALTER GROUP","ALTER MATERIALIZED VIEW","ALTER PROCEDURE","ALTER SCHEMA","ALTER USER","ANALYSE","ANALYZE","ANALYSE COMPRESSION","ANALYZE COMPRESSION","BEGIN","CALL","CANCEL","CLOSE","COMMIT","COPY","CREATE DATABASE","CREATE DATASHARE","CREATE EXTERNAL FUNCTION","CREATE EXTERNAL SCHEMA","CREATE EXTERNAL TABLE","CREATE FUNCTION","CREATE GROUP","CREATE LIBRARY","CREATE MODEL","CREATE PROCEDURE","CREATE SCHEMA","CREATE USER","DEALLOCATE","DECLARE","DESC DATASHARE","DROP DATABASE","DROP DATASHARE","DROP FUNCTION","DROP GROUP","DROP LIBRARY","DROP MODEL","DROP MATERIALIZED VIEW","DROP PROCEDURE","DROP SCHEMA","DROP USER","DROP VIEW","DROP","EXECUTE","EXPLAIN","FETCH","GRANT","LOCK","PREPARE","REFRESH MATERIALIZED VIEW","RESET","REVOKE","ROLLBACK","SELECT INTO","SET SESSION AUTHORIZATION","SET SESSION CHARACTERISTICS","SHOW","SHOW EXTERNAL TABLE","SHOW MODEL","SHOW DATASHARES","SHOW PROCEDURE","SHOW TABLE","SHOW VIEW","START TRANSACTION","UNLOAD","VACUUM"]),kN=d(["UNION [ALL]","EXCEPT","INTERSECT","MINUS"]),jN=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),qN=d(["NULL AS","DATA CATALOG","HIVE METASTORE","{ROWS | RANGE} BETWEEN"]),QN={name:"redshift",tokenizerOptions:{reservedSelect:KN,reservedClauses:[...JN,...Cn],reservedSetOperations:kN,reservedJoins:jN,reservedPhrases:qN,reservedKeywords:XN,reservedDataTypes:$N,reservedFunctionNames:WN,stringTypes:["''-qq"],identTypes:['""-qq'],identChars:{first:"#"},paramTypes:{numbered:["$"]},operators:["^","%","@","|/","||/","&","|","~","<<",">>","||","::"]},formatOptions:{alwaysDenseOperators:["::"],onelineClauses:Cn}},ZN=["ADD","AFTER","ALL","ALTER","ANALYZE","AND","ANTI","ANY","ARCHIVE","AS","ASC","AT","AUTHORIZATION","BETWEEN","BOTH","BUCKET","BUCKETS","BY","CACHE","CASCADE","CAST","CHANGE","CHECK","CLEAR","CLUSTER","CLUSTERED","CODEGEN","COLLATE","COLLECTION","COLUMN","COLUMNS","COMMENT","COMMIT","COMPACT","COMPACTIONS","COMPUTE","CONCATENATE","CONSTRAINT","COST","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","DATA","DATABASE","DATABASES","DAY","DBPROPERTIES","DEFINED","DELETE","DELIMITED","DESC","DESCRIBE","DFS","DIRECTORIES","DIRECTORY","DISTINCT","DISTRIBUTE","DIV","DROP","ESCAPE","ESCAPED","EXCEPT","EXCHANGE","EXISTS","EXPORT","EXTENDED","EXTERNAL","EXTRACT","FALSE","FETCH","FIELDS","FILTER","FILEFORMAT","FIRST","FIRST_VALUE","FOLLOWING","FOR","FOREIGN","FORMAT","FORMATTED","FULL","FUNCTION","FUNCTIONS","GLOBAL","GRANT","GROUP","GROUPING","HOUR","IF","IGNORE","IMPORT","IN","INDEX","INDEXES","INNER","INPATH","INPUTFORMAT","INTERSECT","INTO","IS","ITEMS","KEYS","LAST","LAST_VALUE","LATERAL","LAZY","LEADING","LEFT","LIKE","LINES","LIST","LOCAL","LOCATION","LOCK","LOCKS","LOGICAL","MACRO","MATCHED","MERGE","MINUTE","MONTH","MSCK","NAMESPACE","NAMESPACES","NATURAL","NO","NOT","NULL","NULLS","OF","ONLY","OPTION","OPTIONS","OR","ORDER","OUT","OUTER","OUTPUTFORMAT","OVER","OVERLAPS","OVERLAY","OVERWRITE","OWNER","PARTITION","PARTITIONED","PARTITIONS","PERCENT","PLACING","POSITION","PRECEDING","PRIMARY","PRINCIPALS","PROPERTIES","PURGE","QUERY","RANGE","RECORDREADER","RECORDWRITER","RECOVER","REDUCE","REFERENCES","RENAME","REPAIR","REPLACE","RESPECT","RESTRICT","REVOKE","RIGHT","RLIKE","ROLE","ROLES","ROLLBACK","ROLLUP","ROW","ROWS","SCHEMA","SECOND","SELECT","SEMI","SEPARATED","SERDE","SERDEPROPERTIES","SESSION_USER","SETS","SHOW","SKEWED","SOME","SORT","SORTED","START","STATISTICS","STORED","STRATIFY","SUBSTR","SUBSTRING","TABLE","TABLES","TBLPROPERTIES","TEMPORARY","TERMINATED","THEN","TO","TOUCH","TRAILING","TRANSACTION","TRANSACTIONS","TRIM","TRUE","TRUNCATE","UNARCHIVE","UNBOUNDED","UNCACHE","UNIQUE","UNKNOWN","UNLOCK","UNSET","USE","USER","USING","VIEW","WINDOW","YEAR","ANALYSE","ARRAY_ZIP","COALESCE","CONTAINS","CONVERT","DAYS","DAY_HOUR","DAY_MINUTE","DAY_SECOND","DECODE","DEFAULT","DISTINCTROW","ENCODE","EXPLODE","EXPLODE_OUTER","FIXED","GREATEST","GROUP_CONCAT","HOURS","HOUR_MINUTE","HOUR_SECOND","IFNULL","LEAST","LEVEL","MINUTE_SECOND","NULLIF","OFFSET","ON","OPTIMIZE","REGEXP","SEPARATOR","SIZE","TYPE","TYPES","UNSIGNED","VARIABLES","YEAR_MONTH"],zN=["ARRAY","BIGINT","BINARY","BOOLEAN","BYTE","CHAR","DATE","DEC","DECIMAL","DOUBLE","FLOAT","INT","INTEGER","INTERVAL","LONG","MAP","NUMERIC","REAL","SHORT","SMALLINT","STRING","STRUCT","TIMESTAMP_LTZ","TIMESTAMP_NTZ","TIMESTAMP","TINYINT","VARCHAR"],el=["APPROX_COUNT_DISTINCT","APPROX_PERCENTILE","AVG","BIT_AND","BIT_OR","BIT_XOR","BOOL_AND","BOOL_OR","COLLECT_LIST","COLLECT_SET","CORR","COUNT","COUNT","COUNT","COUNT_IF","COUNT_MIN_SKETCH","COVAR_POP","COVAR_SAMP","EVERY","FIRST","FIRST_VALUE","GROUPING","GROUPING_ID","KURTOSIS","LAST","LAST_VALUE","MAX","MAX_BY","MEAN","MIN","MIN_BY","PERCENTILE","PERCENTILE","PERCENTILE_APPROX","SKEWNESS","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE","CUME_DIST","DENSE_RANK","LAG","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","RANK","ROW_NUMBER","ARRAY","ARRAY_CONTAINS","ARRAY_DISTINCT","ARRAY_EXCEPT","ARRAY_INTERSECT","ARRAY_JOIN","ARRAY_MAX","ARRAY_MIN","ARRAY_POSITION","ARRAY_REMOVE","ARRAY_REPEAT","ARRAY_UNION","ARRAYS_OVERLAP","ARRAYS_ZIP","FLATTEN","SEQUENCE","SHUFFLE","SLICE","SORT_ARRAY","ELEMENT_AT","ELEMENT_AT","MAP_CONCAT","MAP_ENTRIES","MAP_FROM_ARRAYS","MAP_FROM_ENTRIES","MAP_KEYS","MAP_VALUES","STR_TO_MAP","ADD_MONTHS","CURRENT_DATE","CURRENT_DATE","CURRENT_TIMESTAMP","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","DATE_ADD","DATE_FORMAT","DATE_FROM_UNIX_DATE","DATE_PART","DATE_SUB","DATE_TRUNC","DATEDIFF","DAY","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","EXTRACT","FROM_UNIXTIME","FROM_UTC_TIMESTAMP","HOUR","LAST_DAY","MAKE_DATE","MAKE_DT_INTERVAL","MAKE_INTERVAL","MAKE_TIMESTAMP","MAKE_YM_INTERVAL","MINUTE","MONTH","MONTHS_BETWEEN","NEXT_DAY","NOW","QUARTER","SECOND","SESSION_WINDOW","TIMESTAMP_MICROS","TIMESTAMP_MILLIS","TIMESTAMP_SECONDS","TO_DATE","TO_TIMESTAMP","TO_UNIX_TIMESTAMP","TO_UTC_TIMESTAMP","TRUNC","UNIX_DATE","UNIX_MICROS","UNIX_MILLIS","UNIX_SECONDS","UNIX_TIMESTAMP","WEEKDAY","WEEKOFYEAR","WINDOW","YEAR","FROM_JSON","GET_JSON_OBJECT","JSON_ARRAY_LENGTH","JSON_OBJECT_KEYS","JSON_TUPLE","SCHEMA_OF_JSON","TO_JSON","ABS","ACOS","ACOSH","AGGREGATE","ARRAY_SORT","ASCII","ASIN","ASINH","ASSERT_TRUE","ATAN","ATAN2","ATANH","BASE64","BIN","BIT_COUNT","BIT_GET","BIT_LENGTH","BROUND","BTRIM","CARDINALITY","CBRT","CEIL","CEILING","CHAR_LENGTH","CHARACTER_LENGTH","CHR","CONCAT","CONCAT_WS","CONV","COS","COSH","COT","CRC32","CURRENT_CATALOG","CURRENT_DATABASE","CURRENT_USER","DEGREES","ELT","EXP","EXPM1","FACTORIAL","FIND_IN_SET","FLOOR","FORALL","FORMAT_NUMBER","FORMAT_STRING","FROM_CSV","GETBIT","HASH","HEX","HYPOT","INITCAP","INLINE","INLINE_OUTER","INPUT_FILE_BLOCK_LENGTH","INPUT_FILE_BLOCK_START","INPUT_FILE_NAME","INSTR","ISNAN","ISNOTNULL","ISNULL","JAVA_METHOD","LCASE","LEFT","LENGTH","LEVENSHTEIN","LN","LOCATE","LOG","LOG10","LOG1P","LOG2","LOWER","LPAD","LTRIM","MAP_FILTER","MAP_ZIP_WITH","MD5","MOD","MONOTONICALLY_INCREASING_ID","NAMED_STRUCT","NANVL","NEGATIVE","NVL","NVL2","OCTET_LENGTH","OVERLAY","PARSE_URL","PI","PMOD","POSEXPLODE","POSEXPLODE_OUTER","POSITION","POSITIVE","POW","POWER","PRINTF","RADIANS","RAISE_ERROR","RAND","RANDN","RANDOM","REFLECT","REGEXP_EXTRACT","REGEXP_EXTRACT_ALL","REGEXP_LIKE","REGEXP_REPLACE","REPEAT","REPLACE","REVERSE","RIGHT","RINT","ROUND","RPAD","RTRIM","SCHEMA_OF_CSV","SENTENCES","SHA","SHA1","SHA2","SHIFTLEFT","SHIFTRIGHT","SHIFTRIGHTUNSIGNED","SIGN","SIGNUM","SIN","SINH","SOUNDEX","SPACE","SPARK_PARTITION_ID","SPLIT","SQRT","STACK","SUBSTR","SUBSTRING","SUBSTRING_INDEX","TAN","TANH","TO_CSV","TRANSFORM_KEYS","TRANSFORM_VALUES","TRANSLATE","TRIM","TRY_ADD","TRY_DIVIDE","TYPEOF","UCASE","UNBASE64","UNHEX","UPPER","UUID","VERSION","WIDTH_BUCKET","XPATH","XPATH_BOOLEAN","XPATH_DOUBLE","XPATH_FLOAT","XPATH_INT","XPATH_LONG","XPATH_NUMBER","XPATH_SHORT","XPATH_STRING","XXHASH64","ZIP_WITH","CAST","COALESCE","NULLIF"],El=d(["SELECT [ALL | DISTINCT]"]),tl=d(["WITH","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","SORT BY","CLUSTER BY","DISTRIBUTE BY","LIMIT","INSERT [INTO | OVERWRITE] [TABLE]","VALUES","INSERT OVERWRITE [LOCAL] DIRECTORY","LOAD DATA [LOCAL] INPATH","[OVERWRITE] INTO TABLE"]),cn=d(["CREATE [EXTERNAL] TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] [GLOBAL TEMPORARY | TEMPORARY] VIEW [IF NOT EXISTS]","DROP TABLE [IF EXISTS]","ALTER TABLE","ADD COLUMNS","DROP {COLUMN | COLUMNS}","RENAME TO","RENAME COLUMN","ALTER COLUMN","TRUNCATE TABLE","LATERAL VIEW","ALTER DATABASE","ALTER VIEW","CREATE DATABASE","CREATE FUNCTION","DROP DATABASE","DROP FUNCTION","DROP VIEW","REPAIR TABLE","USE DATABASE","TABLESAMPLE","PIVOT","TRANSFORM","EXPLAIN","ADD FILE","ADD JAR","ANALYZE TABLE","CACHE TABLE","CLEAR CACHE","DESCRIBE DATABASE","DESCRIBE FUNCTION","DESCRIBE QUERY","DESCRIBE TABLE","LIST FILE","LIST JAR","REFRESH","REFRESH TABLE","REFRESH FUNCTION","RESET","SHOW COLUMNS","SHOW CREATE TABLE","SHOW DATABASES","SHOW FUNCTIONS","SHOW PARTITIONS","SHOW TABLE EXTENDED","SHOW TABLES","SHOW TBLPROPERTIES","SHOW VIEWS","UNCACHE TABLE"]),Tl=d(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),rl=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN","[LEFT] {ANTI | SEMI} JOIN","NATURAL [LEFT] {ANTI | SEMI} JOIN"]),sl=d(["ON DELETE","ON UPDATE","CURRENT ROW","{ROWS | RANGE} BETWEEN"]),nl={name:"spark",tokenizerOptions:{reservedSelect:El,reservedClauses:[...tl,...cn],reservedSetOperations:Tl,reservedJoins:rl,reservedPhrases:sl,supportsXor:!0,reservedKeywords:ZN,reservedDataTypes:zN,reservedFunctionNames:el,extraParens:["[]"],stringTypes:["''-bs",'""-bs',{quote:"''-raw",prefixes:["R","X"],requirePrefix:!0},{quote:'""-raw',prefixes:["R","X"],requirePrefix:!0}],identTypes:["``"],variableTypes:[{quote:"{}",prefixes:["$"],requirePrefix:!0}],operators:["%","~","^","|","&","<=>","==","!","||","->"],postProcess:Rl},formatOptions:{onelineClauses:cn}};function Rl(e){return e.map((E,t)=>{const T=e[t-1]||nt,r=e[t+1]||nt;return VE.WINDOW(E)&&r.type==="OPEN_PAREN"?xe(ye({},E),{type:"RESERVED_FUNCTION_NAME"}):E.text==="ITEMS"&&E.type==="RESERVED_KEYWORD"&&!(T.text==="COLLECTION"&&r.text==="TERMINATED")?xe(ye({},E),{type:"IDENTIFIER",text:E.raw}):E})}var ol=["ABS","CHANGES","CHAR","COALESCE","FORMAT","GLOB","HEX","IFNULL","IIF","INSTR","LAST_INSERT_ROWID","LENGTH","LIKE","LIKELIHOOD","LIKELY","LOAD_EXTENSION","LOWER","LTRIM","NULLIF","PRINTF","QUOTE","RANDOM","RANDOMBLOB","REPLACE","ROUND","RTRIM","SIGN","SOUNDEX","SQLITE_COMPILEOPTION_GET","SQLITE_COMPILEOPTION_USED","SQLITE_OFFSET","SQLITE_SOURCE_ID","SQLITE_VERSION","SUBSTR","SUBSTRING","TOTAL_CHANGES","TRIM","TYPEOF","UNICODE","UNLIKELY","UPPER","ZEROBLOB","AVG","COUNT","GROUP_CONCAT","MAX","MIN","SUM","TOTAL","DATE","TIME","DATETIME","JULIANDAY","UNIXEPOCH","STRFTIME","row_number","rank","dense_rank","percent_rank","cume_dist","ntile","lag","lead","first_value","last_value","nth_value","ACOS","ACOSH","ASIN","ASINH","ATAN","ATAN2","ATANH","CEIL","CEILING","COS","COSH","DEGREES","EXP","FLOOR","LN","LOG","LOG","LOG10","LOG2","MOD","PI","POW","POWER","RADIANS","SIN","SINH","SQRT","TAN","TANH","TRUNC","JSON","JSON_ARRAY","JSON_ARRAY_LENGTH","JSON_ARRAY_LENGTH","JSON_EXTRACT","JSON_INSERT","JSON_OBJECT","JSON_PATCH","JSON_REMOVE","JSON_REPLACE","JSON_SET","JSON_TYPE","JSON_TYPE","JSON_VALID","JSON_QUOTE","JSON_GROUP_ARRAY","JSON_GROUP_OBJECT","JSON_EACH","JSON_TREE","CAST"],Al=["ABORT","ACTION","ADD","AFTER","ALL","ALTER","AND","ARE","ALWAYS","ANALYZE","AS","ASC","ATTACH","AUTOINCREMENT","BEFORE","BEGIN","BETWEEN","BY","CASCADE","CASE","CAST","CHECK","COLLATE","COLUMN","COMMIT","CONFLICT","CONSTRAINT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATABASE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DESC","DETACH","DISTINCT","DO","DROP","EACH","ELSE","END","ESCAPE","EXCEPT","EXCLUDE","EXCLUSIVE","EXISTS","EXPLAIN","FAIL","FILTER","FIRST","FOLLOWING","FOR","FOREIGN","FROM","FULL","GENERATED","GLOB","GROUP","GROUPS","HAVING","IF","IGNORE","IMMEDIATE","IN","INDEX","INDEXED","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","KEY","LAST","LEFT","LIKE","LIMIT","MATCH","MATERIALIZED","NATURAL","NO","NOT","NOTHING","NOTNULL","NULL","NULLS","OF","OFFSET","ON","ONLY","OPEN","OR","ORDER","OTHERS","OUTER","OVER","PARTITION","PLAN","PRAGMA","PRECEDING","PRIMARY","QUERY","RAISE","RANGE","RECURSIVE","REFERENCES","REGEXP","REINDEX","RELEASE","RENAME","REPLACE","RESTRICT","RETURNING","RIGHT","ROLLBACK","ROW","ROWS","SAVEPOINT","SELECT","SET","TABLE","TEMP","TEMPORARY","THEN","TIES","TO","TRANSACTION","TRIGGER","UNBOUNDED","UNION","UNIQUE","UPDATE","USING","VACUUM","VALUES","VIEW","VIRTUAL","WHEN","WHERE","WINDOW","WITH","WITHOUT"],il=["ANY","ARRAY","BLOB","CHARACTER","DECIMAL","INT","INTEGER","NATIVE CHARACTER","NCHAR","NUMERIC","NVARCHAR","REAL","TEXT","VARCHAR","VARYING CHARACTER"],Sl=d(["SELECT [ALL | DISTINCT]"]),Ol=d(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT [OR ABORT | OR FAIL | OR IGNORE | OR REPLACE | OR ROLLBACK] INTO","REPLACE INTO","VALUES","SET"]),Ln=d(["CREATE [TEMPORARY | TEMP] TABLE [IF NOT EXISTS]","CREATE [TEMPORARY | TEMP] VIEW [IF NOT EXISTS]","UPDATE [OR ABORT | OR FAIL | OR IGNORE | OR REPLACE | OR ROLLBACK]","ON CONFLICT","DELETE FROM","DROP TABLE [IF EXISTS]","ALTER TABLE","ADD [COLUMN]","DROP [COLUMN]","RENAME [COLUMN]","RENAME TO","SET SCHEMA"]),al=d(["UNION [ALL]","EXCEPT","INTERSECT"]),Il=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),Nl=d(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE | GROUPS} BETWEEN"]),ll={name:"sqlite",tokenizerOptions:{reservedSelect:Sl,reservedClauses:[...Ol,...Ln],reservedSetOperations:al,reservedJoins:Il,reservedPhrases:Nl,reservedKeywords:Al,reservedDataTypes:il,reservedFunctionNames:ol,stringTypes:["''-qq",{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq',"``","[]"],paramTypes:{positional:!0,numbered:["?"],named:[":","@","$"]},operators:["%","~","&","|","<<",">>","==","->","->>","||"]},formatOptions:{onelineClauses:Ln}},_l=["GROUPING","RANK","DENSE_RANK","PERCENT_RANK","CUME_DIST","ROW_NUMBER","POSITION","OCCURRENCES_REGEX","POSITION_REGEX","EXTRACT","CHAR_LENGTH","CHARACTER_LENGTH","OCTET_LENGTH","CARDINALITY","ABS","MOD","LN","EXP","POWER","SQRT","FLOOR","CEIL","CEILING","WIDTH_BUCKET","SUBSTRING","SUBSTRING_REGEX","UPPER","LOWER","CONVERT","TRANSLATE","TRANSLATE_REGEX","TRIM","OVERLAY","NORMALIZE","SPECIFICTYPE","CURRENT_DATE","CURRENT_TIME","LOCALTIME","CURRENT_TIMESTAMP","LOCALTIMESTAMP","COUNT","AVG","MAX","MIN","SUM","STDDEV_POP","STDDEV_SAMP","VAR_SAMP","VAR_POP","COLLECT","FUSION","INTERSECTION","COVAR_POP","COVAR_SAMP","CORR","REGR_SLOPE","REGR_INTERCEPT","REGR_COUNT","REGR_R2","REGR_AVGX","REGR_AVGY","REGR_SXX","REGR_SYY","REGR_SXY","PERCENTILE_CONT","PERCENTILE_DISC","CAST","COALESCE","NULLIF","ROUND","SIN","COS","TAN","ASIN","ACOS","ATAN"],Cl=["ALL","ALLOCATE","ALTER","ANY","ARE","AS","ASENSITIVE","ASYMMETRIC","AT","ATOMIC","AUTHORIZATION","BEGIN","BETWEEN","BOTH","BY","CALL","CALLED","CASCADED","CAST","CHECK","CLOSE","COALESCE","COLLATE","COLUMN","COMMIT","CONDITION","CONNECT","CONSTRAINT","CORRESPONDING","CREATE","CROSS","CUBE","CURRENT","CURRENT_CATALOG","CURRENT_DEFAULT_TRANSFORM_GROUP","CURRENT_PATH","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TRANSFORM_GROUP_FOR_TYPE","CURRENT_USER","CURSOR","CYCLE","DEALLOCATE","DAY","DECLARE","DEFAULT","DELETE","DEREF","DESCRIBE","DETERMINISTIC","DISCONNECT","DISTINCT","DROP","DYNAMIC","EACH","ELEMENT","END-EXEC","ESCAPE","EVERY","EXCEPT","EXEC","EXECUTE","EXISTS","EXTERNAL","FALSE","FETCH","FILTER","FOR","FOREIGN","FREE","FROM","FULL","FUNCTION","GET","GLOBAL","GRANT","GROUP","HAVING","HOLD","HOUR","IDENTITY","IN","INDICATOR","INNER","INOUT","INSENSITIVE","INSERT","INTERSECT","INTO","IS","LANGUAGE","LARGE","LATERAL","LEADING","LEFT","LIKE","LIKE_REGEX","LOCAL","MATCH","MEMBER","MERGE","METHOD","MINUTE","MODIFIES","MODULE","MONTH","NATURAL","NEW","NO","NONE","NOT","NULL","NULLIF","OF","OLD","ON","ONLY","OPEN","ORDER","OUT","OUTER","OVER","OVERLAPS","PARAMETER","PARTITION","PRECISION","PREPARE","PRIMARY","PROCEDURE","RANGE","READS","REAL","RECURSIVE","REF","REFERENCES","REFERENCING","RELEASE","RESULT","RETURN","RETURNS","REVOKE","RIGHT","ROLLBACK","ROLLUP","ROW","ROWS","SAVEPOINT","SCOPE","SCROLL","SEARCH","SECOND","SELECT","SENSITIVE","SESSION_USER","SET","SIMILAR","SOME","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","START","STATIC","SUBMULTISET","SYMMETRIC","SYSTEM","SYSTEM_USER","TABLE","TABLESAMPLE","THEN","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRANSLATION","TREAT","TRIGGER","TRUE","UESCAPE","UNION","UNIQUE","UNKNOWN","UNNEST","UPDATE","USER","USING","VALUE","VALUES","WHENEVER","WINDOW","WITHIN","WITHOUT","YEAR"],cl=["ARRAY","BIGINT","BINARY LARGE OBJECT","BINARY VARYING","BINARY","BLOB","BOOLEAN","CHAR LARGE OBJECT","CHAR VARYING","CHAR","CHARACTER LARGE OBJECT","CHARACTER VARYING","CHARACTER","CLOB","DATE","DEC","DECIMAL","DOUBLE","FLOAT","INT","INTEGER","INTERVAL","MULTISET","NATIONAL CHAR VARYING","NATIONAL CHAR","NATIONAL CHARACTER LARGE OBJECT","NATIONAL CHARACTER VARYING","NATIONAL CHARACTER","NCHAR LARGE OBJECT","NCHAR VARYING","NCHAR","NCLOB","NUMERIC","SMALLINT","TIME","TIMESTAMP","VARBINARY","VARCHAR"],Ll=d(["SELECT [ALL | DISTINCT]"]),ul=d(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT INTO","VALUES","SET"]),un=d(["CREATE [GLOBAL TEMPORARY | LOCAL TEMPORARY] TABLE","CREATE [RECURSIVE] VIEW","UPDATE","WHERE CURRENT OF","DELETE FROM","DROP TABLE","ALTER TABLE","ADD COLUMN","DROP [COLUMN]","RENAME COLUMN","RENAME TO","ALTER [COLUMN]","{SET | DROP} DEFAULT","ADD SCOPE","DROP SCOPE {CASCADE | RESTRICT}","RESTART WITH","TRUNCATE TABLE","SET SCHEMA"]),pl=d(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),fl=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),Pl=d(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE} BETWEEN"]),Dl={name:"sql",tokenizerOptions:{reservedSelect:Ll,reservedClauses:[...ul,...un],reservedSetOperations:pl,reservedJoins:fl,reservedPhrases:Pl,reservedKeywords:Cl,reservedDataTypes:cl,reservedFunctionNames:_l,stringTypes:[{quote:"''-qq-bs",prefixes:["N","U&"]},{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq',"``"],paramTypes:{positional:!0},operators:["||"]},formatOptions:{onelineClauses:un}},dl=["ABS","ACOS","ALL_MATCH","ANY_MATCH","APPROX_DISTINCT","APPROX_MOST_FREQUENT","APPROX_PERCENTILE","APPROX_SET","ARBITRARY","ARRAYS_OVERLAP","ARRAY_AGG","ARRAY_DISTINCT","ARRAY_EXCEPT","ARRAY_INTERSECT","ARRAY_JOIN","ARRAY_MAX","ARRAY_MIN","ARRAY_POSITION","ARRAY_REMOVE","ARRAY_SORT","ARRAY_UNION","ASIN","ATAN","ATAN2","AT_TIMEZONE","AVG","BAR","BETA_CDF","BING_TILE","BING_TILES_AROUND","BING_TILE_AT","BING_TILE_COORDINATES","BING_TILE_POLYGON","BING_TILE_QUADKEY","BING_TILE_ZOOM_LEVEL","BITWISE_AND","BITWISE_AND_AGG","BITWISE_LEFT_SHIFT","BITWISE_NOT","BITWISE_OR","BITWISE_OR_AGG","BITWISE_RIGHT_SHIFT","BITWISE_RIGHT_SHIFT_ARITHMETIC","BITWISE_XOR","BIT_COUNT","BOOL_AND","BOOL_OR","CARDINALITY","CAST","CBRT","CEIL","CEILING","CHAR2HEXINT","CHECKSUM","CHR","CLASSIFY","COALESCE","CODEPOINT","COLOR","COMBINATIONS","CONCAT","CONCAT_WS","CONTAINS","CONTAINS_SEQUENCE","CONVEX_HULL_AGG","CORR","COS","COSH","COSINE_SIMILARITY","COUNT","COUNT_IF","COVAR_POP","COVAR_SAMP","CRC32","CUME_DIST","CURRENT_CATALOG","CURRENT_DATE","CURRENT_GROUPS","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_USER","DATE","DATE_ADD","DATE_DIFF","DATE_FORMAT","DATE_PARSE","DATE_TRUNC","DAY","DAY_OF_MONTH","DAY_OF_WEEK","DAY_OF_YEAR","DEGREES","DENSE_RANK","DOW","DOY","E","ELEMENT_AT","EMPTY_APPROX_SET","EVALUATE_CLASSIFIER_PREDICTIONS","EVERY","EXP","EXTRACT","FEATURES","FILTER","FIRST_VALUE","FLATTEN","FLOOR","FORMAT","FORMAT_DATETIME","FORMAT_NUMBER","FROM_BASE","FROM_BASE32","FROM_BASE64","FROM_BASE64URL","FROM_BIG_ENDIAN_32","FROM_BIG_ENDIAN_64","FROM_ENCODED_POLYLINE","FROM_GEOJSON_GEOMETRY","FROM_HEX","FROM_IEEE754_32","FROM_IEEE754_64","FROM_ISO8601_DATE","FROM_ISO8601_TIMESTAMP","FROM_ISO8601_TIMESTAMP_NANOS","FROM_UNIXTIME","FROM_UNIXTIME_NANOS","FROM_UTF8","GEOMETRIC_MEAN","GEOMETRY_FROM_HADOOP_SHAPE","GEOMETRY_INVALID_REASON","GEOMETRY_NEAREST_POINTS","GEOMETRY_TO_BING_TILES","GEOMETRY_UNION","GEOMETRY_UNION_AGG","GREATEST","GREAT_CIRCLE_DISTANCE","HAMMING_DISTANCE","HASH_COUNTS","HISTOGRAM","HMAC_MD5","HMAC_SHA1","HMAC_SHA256","HMAC_SHA512","HOUR","HUMAN_READABLE_SECONDS","IF","INDEX","INFINITY","INTERSECTION_CARDINALITY","INVERSE_BETA_CDF","INVERSE_NORMAL_CDF","IS_FINITE","IS_INFINITE","IS_JSON_SCALAR","IS_NAN","JACCARD_INDEX","JSON_ARRAY_CONTAINS","JSON_ARRAY_GET","JSON_ARRAY_LENGTH","JSON_EXISTS","JSON_EXTRACT","JSON_EXTRACT_SCALAR","JSON_FORMAT","JSON_PARSE","JSON_QUERY","JSON_SIZE","JSON_VALUE","KURTOSIS","LAG","LAST_DAY_OF_MONTH","LAST_VALUE","LEAD","LEARN_CLASSIFIER","LEARN_LIBSVM_CLASSIFIER","LEARN_LIBSVM_REGRESSOR","LEARN_REGRESSOR","LEAST","LENGTH","LEVENSHTEIN_DISTANCE","LINE_INTERPOLATE_POINT","LINE_INTERPOLATE_POINTS","LINE_LOCATE_POINT","LISTAGG","LN","LOCALTIME","LOCALTIMESTAMP","LOG","LOG10","LOG2","LOWER","LPAD","LTRIM","LUHN_CHECK","MAKE_SET_DIGEST","MAP","MAP_AGG","MAP_CONCAT","MAP_ENTRIES","MAP_FILTER","MAP_FROM_ENTRIES","MAP_KEYS","MAP_UNION","MAP_VALUES","MAP_ZIP_WITH","MAX","MAX_BY","MD5","MERGE","MERGE_SET_DIGEST","MILLISECOND","MIN","MINUTE","MIN_BY","MOD","MONTH","MULTIMAP_AGG","MULTIMAP_FROM_ENTRIES","MURMUR3","NAN","NGRAMS","NONE_MATCH","NORMALIZE","NORMAL_CDF","NOW","NTH_VALUE","NTILE","NULLIF","NUMERIC_HISTOGRAM","OBJECTID","OBJECTID_TIMESTAMP","PARSE_DATA_SIZE","PARSE_DATETIME","PARSE_DURATION","PERCENT_RANK","PI","POSITION","POW","POWER","QDIGEST_AGG","QUARTER","RADIANS","RAND","RANDOM","RANK","REDUCE","REDUCE_AGG","REGEXP_COUNT","REGEXP_EXTRACT","REGEXP_EXTRACT_ALL","REGEXP_LIKE","REGEXP_POSITION","REGEXP_REPLACE","REGEXP_SPLIT","REGRESS","REGR_INTERCEPT","REGR_SLOPE","RENDER","REPEAT","REPLACE","REVERSE","RGB","ROUND","ROW_NUMBER","RPAD","RTRIM","SECOND","SEQUENCE","SHA1","SHA256","SHA512","SHUFFLE","SIGN","SIMPLIFY_GEOMETRY","SIN","SKEWNESS","SLICE","SOUNDEX","SPATIAL_PARTITIONING","SPATIAL_PARTITIONS","SPLIT","SPLIT_PART","SPLIT_TO_MAP","SPLIT_TO_MULTIMAP","SPOOKY_HASH_V2_32","SPOOKY_HASH_V2_64","SQRT","STARTS_WITH","STDDEV","STDDEV_POP","STDDEV_SAMP","STRPOS","ST_AREA","ST_ASBINARY","ST_ASTEXT","ST_BOUNDARY","ST_BUFFER","ST_CENTROID","ST_CONTAINS","ST_CONVEXHULL","ST_COORDDIM","ST_CROSSES","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_ENDPOINT","ST_ENVELOPE","ST_ENVELOPEASPTS","ST_EQUALS","ST_EXTERIORRING","ST_GEOMETRIES","ST_GEOMETRYFROMTEXT","ST_GEOMETRYN","ST_GEOMETRYTYPE","ST_GEOMFROMBINARY","ST_INTERIORRINGN","ST_INTERIORRINGS","ST_INTERSECTION","ST_INTERSECTS","ST_ISCLOSED","ST_ISEMPTY","ST_ISRING","ST_ISSIMPLE","ST_ISVALID","ST_LENGTH","ST_LINEFROMTEXT","ST_LINESTRING","ST_MULTIPOINT","ST_NUMGEOMETRIES","ST_NUMINTERIORRING","ST_NUMPOINTS","ST_OVERLAPS","ST_POINT","ST_POINTN","ST_POINTS","ST_POLYGON","ST_RELATE","ST_STARTPOINT","ST_SYMDIFFERENCE","ST_TOUCHES","ST_UNION","ST_WITHIN","ST_X","ST_XMAX","ST_XMIN","ST_Y","ST_YMAX","ST_YMIN","SUBSTR","SUBSTRING","SUM","TAN","TANH","TDIGEST_AGG","TIMESTAMP_OBJECTID","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO_BASE","TO_BASE32","TO_BASE64","TO_BASE64URL","TO_BIG_ENDIAN_32","TO_BIG_ENDIAN_64","TO_CHAR","TO_DATE","TO_ENCODED_POLYLINE","TO_GEOJSON_GEOMETRY","TO_GEOMETRY","TO_HEX","TO_IEEE754_32","TO_IEEE754_64","TO_ISO8601","TO_MILLISECONDS","TO_SPHERICAL_GEOGRAPHY","TO_TIMESTAMP","TO_UNIXTIME","TO_UTF8","TRANSFORM","TRANSFORM_KEYS","TRANSFORM_VALUES","TRANSLATE","TRIM","TRIM_ARRAY","TRUNCATE","TRY","TRY_CAST","TYPEOF","UPPER","URL_DECODE","URL_ENCODE","URL_EXTRACT_FRAGMENT","URL_EXTRACT_HOST","URL_EXTRACT_PARAMETER","URL_EXTRACT_PATH","URL_EXTRACT_PORT","URL_EXTRACT_PROTOCOL","URL_EXTRACT_QUERY","UUID","VALUES_AT_QUANTILES","VALUE_AT_QUANTILE","VARIANCE","VAR_POP","VAR_SAMP","VERSION","WEEK","WEEK_OF_YEAR","WIDTH_BUCKET","WILSON_INTERVAL_LOWER","WILSON_INTERVAL_UPPER","WITH_TIMEZONE","WORD_STEM","XXHASH64","YEAR","YEAR_OF_WEEK","YOW","ZIP","ZIP_WITH","CLASSIFIER","FIRST","LAST","MATCH_NUMBER","NEXT","PERMUTE","PREV"],Ml=["ABSENT","ADD","ADMIN","AFTER","ALL","ALTER","ANALYZE","AND","ANY","AS","ASC","AT","AUTHORIZATION","BERNOULLI","BETWEEN","BOTH","BY","CALL","CASCADE","CASE","CATALOGS","COLUMN","COLUMNS","COMMENT","COMMIT","COMMITTED","CONDITIONAL","CONSTRAINT","COPARTITION","CREATE","CROSS","CUBE","CURRENT","CURRENT_PATH","CURRENT_ROLE","DATA","DEALLOCATE","DEFAULT","DEFINE","DEFINER","DELETE","DENY","DESC","DESCRIBE","DESCRIPTOR","DISTINCT","DISTRIBUTED","DOUBLE","DROP","ELSE","EMPTY","ENCODING","END","ERROR","ESCAPE","EXCEPT","EXCLUDING","EXECUTE","EXISTS","EXPLAIN","FALSE","FETCH","FINAL","FIRST","FOLLOWING","FOR","FROM","FULL","FUNCTIONS","GRANT","GRANTED","GRANTS","GRAPHVIZ","GROUP","GROUPING","GROUPS","HAVING","IGNORE","IN","INCLUDING","INITIAL","INNER","INPUT","INSERT","INTERSECT","INTERVAL","INTO","INVOKER","IO","IS","ISOLATION","JOIN","JSON","JSON_ARRAY","JSON_OBJECT","KEEP","KEY","KEYS","LAST","LATERAL","LEADING","LEFT","LEVEL","LIKE","LIMIT","LOCAL","LOGICAL","MATCH","MATCHED","MATCHES","MATCH_RECOGNIZE","MATERIALIZED","MEASURES","NATURAL","NEXT","NFC","NFD","NFKC","NFKD","NO","NONE","NOT","NULL","NULLS","OBJECT","OF","OFFSET","OMIT","ON","ONE","ONLY","OPTION","OR","ORDER","ORDINALITY","OUTER","OUTPUT","OVER","OVERFLOW","PARTITION","PARTITIONS","PASSING","PAST","PATH","PATTERN","PER","PERMUTE","PRECEDING","PRECISION","PREPARE","PRIVILEGES","PROPERTIES","PRUNE","QUOTES","RANGE","READ","RECURSIVE","REFRESH","RENAME","REPEATABLE","RESET","RESPECT","RESTRICT","RETURNING","REVOKE","RIGHT","ROLE","ROLES","ROLLBACK","ROLLUP","ROW","ROWS","RUNNING","SCALAR","SCHEMA","SCHEMAS","SECURITY","SEEK","SELECT","SERIALIZABLE","SESSION","SET","SETS","SHOW","SKIP","SOME","START","STATS","STRING","SUBSET","SYSTEM","TABLE","TABLES","TABLESAMPLE","TEXT","THEN","TIES","TIME","TIMESTAMP","TO","TRAILING","TRANSACTION","TRUE","TYPE","UESCAPE","UNBOUNDED","UNCOMMITTED","UNCONDITIONAL","UNION","UNIQUE","UNKNOWN","UNMATCHED","UNNEST","UPDATE","USE","USER","USING","UTF16","UTF32","UTF8","VALIDATE","VALUE","VALUES","VERBOSE","VIEW","WHEN","WHERE","WINDOW","WITH","WITHIN","WITHOUT","WORK","WRAPPER","WRITE","ZONE"],Ul=["BIGINT","INT","INTEGER","SMALLINT","TINYINT","BOOLEAN","DATE","DECIMAL","REAL","DOUBLE","HYPERLOGLOG","QDIGEST","TDIGEST","P4HYPERLOGLOG","INTERVAL","TIMESTAMP","TIME","VARBINARY","VARCHAR","CHAR","ROW","ARRAY","MAP","JSON","JSON2016","IPADDRESS","GEOMETRY","UUID","SETDIGEST","JONIREGEXP","RE2JREGEXP","LIKEPATTERN","COLOR","CODEPOINTS","FUNCTION","JSONPATH"],hl=d(["SELECT [ALL | DISTINCT]"]),Gl=d(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT INTO","VALUES","SET","MATCH_RECOGNIZE","MEASURES","ONE ROW PER MATCH","ALL ROWS PER MATCH","AFTER MATCH","PATTERN","SUBSET","DEFINE"]),pn=d(["CREATE TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] [MATERIALIZED] VIEW","UPDATE","DELETE FROM","DROP TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS]","ADD COLUMN [IF NOT EXISTS]","DROP COLUMN [IF EXISTS]","RENAME COLUMN [IF EXISTS]","RENAME TO","SET AUTHORIZATION [USER | ROLE]","SET PROPERTIES","EXECUTE","TRUNCATE TABLE","ALTER SCHEMA","ALTER MATERIALIZED VIEW","ALTER VIEW","CREATE SCHEMA","CREATE ROLE","DROP SCHEMA","DROP MATERIALIZED VIEW","DROP VIEW","DROP ROLE","EXPLAIN","ANALYZE","EXPLAIN ANALYZE","EXPLAIN ANALYZE VERBOSE","USE","DESCRIBE INPUT","DESCRIBE OUTPUT","REFRESH MATERIALIZED VIEW","RESET SESSION","SET SESSION","SET PATH","SET TIME ZONE","SHOW GRANTS","SHOW CREATE TABLE","SHOW CREATE SCHEMA","SHOW CREATE VIEW","SHOW CREATE MATERIALIZED VIEW","SHOW TABLES","SHOW SCHEMAS","SHOW CATALOGS","SHOW COLUMNS","SHOW STATS FOR","SHOW ROLES","SHOW CURRENT ROLES","SHOW ROLE GRANTS","SHOW FUNCTIONS","SHOW SESSION"]),gl=d(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),ml=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),Hl=d(["{ROWS | RANGE | GROUPS} BETWEEN","IS [NOT] DISTINCT FROM"]),yl={name:"trino",tokenizerOptions:{reservedSelect:hl,reservedClauses:[...Gl,...pn],reservedSetOperations:gl,reservedJoins:ml,reservedPhrases:Hl,reservedKeywords:Ml,reservedDataTypes:Ul,reservedFunctionNames:dl,extraParens:["[]","{}"],stringTypes:[{quote:"''-qq",prefixes:["U&"]},{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq'],paramTypes:{positional:!0},operators:["%","->","=>",":","||","|","^","$"]},formatOptions:{onelineClauses:pn}},bl=["APPROX_COUNT_DISTINCT","AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","STDEV","STDEVP","SUM","VAR","VARP","CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","Collation - COLLATIONPROPERTY","Collation - TERTIARY_WEIGHTS","@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION","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_ROWS","@@FETCH_STATUS","CURSOR_STATUS","DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY","@@DATEFIRST","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_TIMEZONE_ID","DATEADD","DATEDIFF","DATEDIFF_BIG","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","JSON","ISJSON","JSON_VALUE","JSON_QUERY","JSON_MODIFY","ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","CHOOSE","GREATEST","IIF","LEAST","@@PROCID","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FILEPROPERTYEX","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","NEXT VALUE FOR","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","CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","DATABASE_PRINCIPAL_ID","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","CONCAT_WS","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STRING_AGG","STRING_ESCAPE","STUFF","SUBSTRING","TRANSLATE","TRIM","UNICODE","UPPER","$PARTITION","@@ERROR","@@IDENTITY","@@PACK_RECEIVED","@@ROWCOUNT","@@TRANCOUNT","BINARY_CHECKSUM","CHECKSUM","COMPRESS","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","CURRENT_TRANSACTION_ID","DECOMPRESS","ERROR_LINE","ERROR_MESSAGE","ERROR_NUMBER","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GET_FILESTREAM_TRANSACTION_CONTEXT","GETANSINULL","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","SESSION_CONTEXT","XACT_STATE","@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACK_SENT","@@PACKET_ERRORS","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE","TEXTPTR","TEXTVALID","COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE","COALESCE","NULLIF"],Bl=["ADD","ALL","ALTER","AND","ANY","AS","ASC","AUTHORIZATION","BACKUP","BEGIN","BETWEEN","BREAK","BROWSE","BULK","BY","CASCADE","CHECK","CHECKPOINT","CLOSE","CLUSTERED","COALESCE","COLLATE","COLUMN","COMMIT","COMPUTE","CONSTRAINT","CONTAINS","CONTAINSTABLE","CONTINUE","CONVERT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DBCC","DEALLOCATE","DECLARE","DEFAULT","DELETE","DENY","DESC","DISK","DISTINCT","DISTRIBUTED","DROP","DUMP","ERRLVL","ESCAPE","EXEC","EXECUTE","EXISTS","EXIT","EXTERNAL","FETCH","FILE","FILLFACTOR","FOR","FOREIGN","FREETEXT","FREETEXTTABLE","FROM","FULL","FUNCTION","GOTO","GRANT","GROUP","HAVING","HOLDLOCK","IDENTITY","IDENTITYCOL","IDENTITY_INSERT","IF","IN","INDEX","INNER","INSERT","INTERSECT","INTO","IS","JOIN","KEY","KILL","LEFT","LIKE","LINENO","LOAD","MERGE","NOCHECK","NONCLUSTERED","NOT","NULL","NULLIF","OF","OFF","OFFSETS","ON","OPEN","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","OPTION","OR","ORDER","OUTER","OVER","PERCENT","PIVOT","PLAN","PRIMARY","PRINT","PROC","PROCEDURE","PUBLIC","RAISERROR","READ","READTEXT","RECONFIGURE","REFERENCES","REPLICATION","RESTORE","RESTRICT","RETURN","REVERT","REVOKE","RIGHT","ROLLBACK","ROWCOUNT","ROWGUIDCOL","RULE","SAVE","SCHEMA","SECURITYAUDIT","SELECT","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","SESSION_USER","SET","SETUSER","SHUTDOWN","SOME","STATISTICS","SYSTEM_USER","TABLE","TABLESAMPLE","TEXTSIZE","THEN","TO","TOP","TRAN","TRANSACTION","TRIGGER","TRUNCATE","TRY_CONVERT","TSEQUAL","UNION","UNIQUE","UNPIVOT","UPDATE","UPDATETEXT","USE","USER","VALUES","VIEW","WAITFOR","WHERE","WHILE","WITH","WITHIN GROUP","WRITETEXT","ABSOLUTE","ACTION","ADA","ALLOCATE","ARE","ASSERTION","AT","AVG","BIT_LENGTH","BOTH","CASCADED","CAST","CATALOG","CHARACTER_LENGTH","CHAR_LENGTH","COLLATION","CONNECT","CONNECTION","CONSTRAINTS","CORRESPONDING","COUNT","DAY","DEFERRABLE","DEFERRED","DESCRIBE","DESCRIPTOR","DIAGNOSTICS","DISCONNECT","DOMAIN","END-EXEC","EXCEPTION","EXTRACT","FALSE","FIRST","FORTRAN","FOUND","GET","GLOBAL","GO","HOUR","IMMEDIATE","INCLUDE","INDICATOR","INITIALLY","INPUT","INSENSITIVE","INTERVAL","ISOLATION","LANGUAGE","LAST","LEADING","LEVEL","LOCAL","LOWER","MATCH","MAX","MIN","MINUTE","MODULE","MONTH","NAMES","NATURAL","NEXT","NO","NONE","OCTET_LENGTH","ONLY","OUTPUT","OVERLAPS","PAD","PARTIAL","PASCAL","POSITION","PREPARE","PRESERVE","PRIOR","PRIVILEGES","RELATIVE","ROWS","SCROLL","SECOND","SECTION","SESSION","SIZE","SPACE","SQL","SQLCA","SQLCODE","SQLERROR","SQLSTATE","SQLWARNING","SUBSTRING","SUM","TEMPORARY","TIMEZONE_HOUR","TIMEZONE_MINUTE","TRAILING","TRANSLATE","TRANSLATION","TRIM","TRUE","UNKNOWN","UPPER","USAGE","VALUE","WHENEVER","WORK","WRITE","YEAR","ZONE"],Fl=["BINARY","BIT","CHAR","CHAR","CHARACTER","DATE","DATETIME2","DATETIMEOFFSET","DEC","DECIMAL","DOUBLE","FLOAT","INT","INTEGER","NATIONAL","NCHAR","NUMERIC","NVARCHAR","PRECISION","REAL","SMALLINT","TIME","TIMESTAMP","VARBINARY","VARCHAR"],vl=d(["SELECT [ALL | DISTINCT]"]),Yl=d(["WITH","INTO","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","OFFSET","FETCH {FIRST | NEXT}","INSERT [INTO]","VALUES","SET","MERGE [INTO]","WHEN [NOT] MATCHED [BY TARGET | BY SOURCE] [THEN]","UPDATE SET","CREATE [OR ALTER] {PROC | PROCEDURE}"]),fn=d(["CREATE TABLE","CREATE [OR ALTER] [MATERIALIZED] VIEW","UPDATE","WHERE CURRENT OF","DELETE [FROM]","DROP TABLE [IF EXISTS]","ALTER TABLE","ADD","DROP COLUMN [IF EXISTS]","ALTER COLUMN","TRUNCATE TABLE","ADD SENSITIVITY CLASSIFICATION","ADD SIGNATURE","AGGREGATE","ANSI_DEFAULTS","ANSI_NULLS","ANSI_NULL_DFLT_OFF","ANSI_NULL_DFLT_ON","ANSI_PADDING","ANSI_WARNINGS","APPLICATION ROLE","ARITHABORT","ARITHIGNORE","ASSEMBLY","ASYMMETRIC KEY","AUTHORIZATION","AVAILABILITY GROUP","BACKUP","BACKUP CERTIFICATE","BACKUP MASTER KEY","BACKUP SERVICE MASTER KEY","BEGIN CONVERSATION TIMER","BEGIN DIALOG CONVERSATION","BROKER PRIORITY","BULK INSERT","CERTIFICATE","CLOSE MASTER KEY","CLOSE SYMMETRIC KEY","COLLATE","COLUMN ENCRYPTION KEY","COLUMN MASTER KEY","COLUMNSTORE INDEX","CONCAT_NULL_YIELDS_NULL","CONTEXT_INFO","CONTRACT","CREDENTIAL","CRYPTOGRAPHIC PROVIDER","CURSOR_CLOSE_ON_COMMIT","DATABASE","DATABASE AUDIT SPECIFICATION","DATABASE ENCRYPTION KEY","DATABASE HADR","DATABASE SCOPED CONFIGURATION","DATABASE SCOPED CREDENTIAL","DATABASE SET","DATEFIRST","DATEFORMAT","DEADLOCK_PRIORITY","DENY","DENY XML","DISABLE TRIGGER","ENABLE TRIGGER","END CONVERSATION","ENDPOINT","EVENT NOTIFICATION","EVENT SESSION","EXECUTE AS","EXTERNAL DATA SOURCE","EXTERNAL FILE FORMAT","EXTERNAL LANGUAGE","EXTERNAL LIBRARY","EXTERNAL RESOURCE POOL","EXTERNAL TABLE","FIPS_FLAGGER","FMTONLY","FORCEPLAN","FULLTEXT CATALOG","FULLTEXT INDEX","FULLTEXT STOPLIST","FUNCTION","GET CONVERSATION GROUP","GET_TRANSMISSION_STATUS","GRANT","GRANT XML","IDENTITY_INSERT","IMPLICIT_TRANSACTIONS","INDEX","LANGUAGE","LOCK_TIMEOUT","LOGIN","MASTER KEY","MESSAGE TYPE","MOVE CONVERSATION","NOCOUNT","NOEXEC","NUMERIC_ROUNDABORT","OFFSETS","OPEN MASTER KEY","OPEN SYMMETRIC KEY","PARSEONLY","PARTITION FUNCTION","PARTITION SCHEME","PROCEDURE","QUERY_GOVERNOR_COST_LIMIT","QUEUE","QUOTED_IDENTIFIER","RECEIVE","REMOTE SERVICE BINDING","REMOTE_PROC_TRANSACTIONS","RESOURCE GOVERNOR","RESOURCE POOL","RESTORE","RESTORE FILELISTONLY","RESTORE HEADERONLY","RESTORE LABELONLY","RESTORE MASTER KEY","RESTORE REWINDONLY","RESTORE SERVICE MASTER KEY","RESTORE VERIFYONLY","REVERT","REVOKE","REVOKE XML","ROLE","ROUTE","ROWCOUNT","RULE","SCHEMA","SEARCH PROPERTY LIST","SECURITY POLICY","SELECTIVE XML INDEX","SEND","SENSITIVITY CLASSIFICATION","SEQUENCE","SERVER AUDIT","SERVER AUDIT SPECIFICATION","SERVER CONFIGURATION","SERVER ROLE","SERVICE","SERVICE MASTER KEY","SETUSER","SHOWPLAN_ALL","SHOWPLAN_TEXT","SHOWPLAN_XML","SIGNATURE","SPATIAL INDEX","STATISTICS","STATISTICS IO","STATISTICS PROFILE","STATISTICS TIME","STATISTICS XML","SYMMETRIC KEY","SYNONYM","TABLE","TABLE IDENTITY","TEXTSIZE","TRANSACTION ISOLATION LEVEL","TRIGGER","TYPE","UPDATE STATISTICS","USER","WORKLOAD GROUP","XACT_ABORT","XML INDEX","XML SCHEMA COLLECTION"]),xl=d(["UNION [ALL]","EXCEPT","INTERSECT"]),Vl=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","{CROSS | OUTER} APPLY"]),wl=d(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE} BETWEEN"]),Wl={name:"transactsql",tokenizerOptions:{reservedSelect:vl,reservedClauses:[...Yl,...fn],reservedSetOperations:xl,reservedJoins:Vl,reservedPhrases:wl,reservedKeywords:Bl,reservedDataTypes:Fl,reservedFunctionNames:bl,nestedBlockComments:!0,stringTypes:[{quote:"''-qq",prefixes:["N"]}],identTypes:['""-qq',"[]"],identChars:{first:"#@",rest:"#@$"},paramTypes:{named:["@"],quoted:["@"]},operators:["%","&","|","^","~","!<","!>","+=","-=","*=","/=","%=","|=","&=","^=","::",":"]},formatOptions:{alwaysDenseOperators:["::"],onelineClauses:fn}},Xl=["ADD","ALL","ALTER","ANALYZE","AND","AS","ASC","ASENSITIVE","BEFORE","BETWEEN","_BINARY","BOTH","BY","CALL","CASCADE","CASE","CHANGE","CHECK","COLLATE","COLUMN","CONDITION","CONSTRAINT","CONTINUE","CONVERT","CREATE","CROSS","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATABASES","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DECLARE","DEFAULT","DELAYED","DELETE","DESC","DESCRIBE","DETERMINISTIC","DISTINCT","DISTINCTROW","DIV","DROP","DUAL","EACH","ELSE","ELSEIF","ENCLOSED","ESCAPED","EXCEPT","EXISTS","EXIT","EXPLAIN","EXTRA_JOIN","FALSE","FETCH","FOR","FORCE","FORCE_COMPILED_MODE","FORCE_INTERPRETER_MODE","FOREIGN","FROM","FULL","FULLTEXT","GRANT","GROUP","HAVING","HEARTBEAT_NO_LOGGING","HIGH_PRIORITY","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IF","IGNORE","IN","INDEX","INFILE","INNER","INOUT","INSENSITIVE","INSERT","IN","_INTERNAL_DYNAMIC_TYPECAST","INTERSECT","INTERVAL","INTO","ITERATE","JOIN","KEY","KEYS","KILL","LEADING","LEAVE","LEFT","LIKE","LIMIT","LINES","LOAD","LOCALTIME","LOCALTIMESTAMP","LOCK","LOOP","LOW_PRIORITY","MATCH","MAXVALUE","MINUS","MINUTE_MICROSECOND","MINUTE_SECOND","MOD","MODIFIES","NATURAL","NO_QUERY_REWRITE","NOT","NO_WRITE_TO_BINLOG","NO_QUERY_REWRITE","NULL","ON","OPTIMIZE","OPTION","OPTIONALLY","OR","ORDER","OUT","OUTER","OUTFILE","OVER","PRIMARY","PROCEDURE","PURGE","RANGE","READ","READS","REFERENCES","REGEXP","RELEASE","RENAME","REPEAT","REPLACE","REQUIRE","RESTRICT","RETURN","REVOKE","RIGHT","RIGHT_ANTI_JOIN","RIGHT_SEMI_JOIN","RIGHT_STRAIGHT_JOIN","RLIKE","SCHEMA","SCHEMAS","SECOND_MICROSECOND","SELECT","SEMI_JOIN","SENSITIVE","SEPARATOR","SET","SHOW","SIGNAL","SPATIAL","SPECIFIC","SQL","SQL_BIG_RESULT","SQL_BUFFER_RESULT","SQL_CACHE","SQL_CALC_FOUND_ROWS","SQLEXCEPTION","SQL_NO_CACHE","SQL_NO_LOGGING","SQL_SMALL_RESULT","SQLSTATE","SQLWARNING","STRAIGHT_JOIN","TABLE","TERMINATED","THEN","TO","TRAILING","TRIGGER","TRUE","UNBOUNDED","UNDO","UNION","UNIQUE","UNLOCK","UPDATE","USAGE","USE","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","_UTF8","VALUES","WHEN","WHERE","WHILE","WINDOW","WITH","WITHIN","WRITE","XOR","YEAR_MONTH","ZEROFILL"],$l=["BIGINT","BINARY","BIT","BLOB","CHAR","CHARACTER","DATETIME","DEC","DECIMAL","DOUBLE PRECISION","DOUBLE","ENUM","FIXED","FLOAT","FLOAT4","FLOAT8","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","LONG","LONGBLOB","LONGTEXT","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MIDDLEINT","NATIONAL CHAR","NATIONAL VARCHAR","NUMERIC","PRECISION","REAL","SMALLINT","TEXT","TIME","TIMESTAMP","TINYBLOB","TINYINT","TINYTEXT","UNSIGNED","VARBINARY","VARCHAR","VARCHARACTER","YEAR"],Kl=["ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ANY_VALUE","APPROX_COUNT_DISTINCT","APPROX_COUNT_DISTINCT_ACCUMULATE","APPROX_COUNT_DISTINCT_COMBINE","APPROX_COUNT_DISTINCT_ESTIMATE","APPROX_GEOGRAPHY_INTERSECTS","APPROX_PERCENTILE","ASCII","ASIN","ATAN","ATAN2","AVG","BIN","BINARY","BIT_AND","BIT_COUNT","BIT_OR","BIT_XOR","CAST","CEIL","CEILING","CHAR","CHARACTER_LENGTH","CHAR_LENGTH","CHARSET","COALESCE","COERCIBILITY","COLLATION","COLLECT","CONCAT","CONCAT_WS","CONNECTION_ID","CONV","CONVERT","CONVERT_TZ","COS","COT","COUNT","CUME_DIST","CURDATE","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURTIME","DATABASE","DATE","DATE_ADD","DATEDIFF","DATE_FORMAT","DATE_SUB","DATE_TRUNC","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DECODE","DEFAULT","DEGREES","DENSE_RANK","DIV","DOT_PRODUCT","ELT","EUCLIDEAN_DISTANCE","EXP","EXTRACT","FIELD","FIRST","FIRST_VALUE","FLOOR","FORMAT","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GEOGRAPHY_AREA","GEOGRAPHY_CONTAINS","GEOGRAPHY_DISTANCE","GEOGRAPHY_INTERSECTS","GEOGRAPHY_LATITUDE","GEOGRAPHY_LENGTH","GEOGRAPHY_LONGITUDE","GEOGRAPHY_POINT","GEOGRAPHY_WITHIN_DISTANCE","GEOMETRY_AREA","GEOMETRY_CONTAINS","GEOMETRY_DISTANCE","GEOMETRY_FILTER","GEOMETRY_INTERSECTS","GEOMETRY_LENGTH","GEOMETRY_POINT","GEOMETRY_WITHIN_DISTANCE","GEOMETRY_X","GEOMETRY_Y","GREATEST","GROUPING","GROUP_CONCAT","HEX","HIGHLIGHT","HOUR","ICU_VERSION","IF","IFNULL","INET_ATON","INET_NTOA","INET6_ATON","INET6_NTOA","INITCAP","INSERT","INSTR","INTERVAL","IS","IS NULL","JSON_AGG","JSON_ARRAY_CONTAINS_DOUBLE","JSON_ARRAY_CONTAINS_JSON","JSON_ARRAY_CONTAINS_STRING","JSON_ARRAY_PUSH_DOUBLE","JSON_ARRAY_PUSH_JSON","JSON_ARRAY_PUSH_STRING","JSON_DELETE_KEY","JSON_EXTRACT_DOUBLE","JSON_EXTRACT_JSON","JSON_EXTRACT_STRING","JSON_EXTRACT_BIGINT","JSON_GET_TYPE","JSON_LENGTH","JSON_SET_DOUBLE","JSON_SET_JSON","JSON_SET_STRING","JSON_SPLICE_DOUBLE","JSON_SPLICE_JSON","JSON_SPLICE_STRING","LAG","LAST_DAY","LAST_VALUE","LCASE","LEAD","LEAST","LEFT","LENGTH","LIKE","LN","LOCALTIME","LOCALTIMESTAMP","LOCATE","LOG","LOG10","LOG2","LPAD","LTRIM","MATCH","MAX","MD5","MEDIAN","MICROSECOND","MIN","MINUTE","MOD","MONTH","MONTHNAME","MONTHS_BETWEEN","NOT","NOW","NTH_VALUE","NTILE","NULLIF","OCTET_LENGTH","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","PI","PIVOT","POSITION","POW","POWER","QUARTER","QUOTE","RADIANS","RAND","RANK","REGEXP","REPEAT","REPLACE","REVERSE","RIGHT","RLIKE","ROUND","ROW_COUNT","ROW_NUMBER","RPAD","RTRIM","SCALAR","SCHEMA","SEC_TO_TIME","SHA1","SHA2","SIGMOID","SIGN","SIN","SLEEP","SPLIT","SOUNDEX","SOUNDS LIKE","SOURCE_POS_WAIT","SPACE","SQRT","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DATE","SUBDATE","SUBSTR","SUBSTRING","SUBSTRING_INDEX","SUM","SYS_GUID","TAN","TIME","TIMEDIFF","TIME_BUCKET","TIME_FORMAT","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TIME_TO_SEC","TO_BASE64","TO_CHAR","TO_DAYS","TO_JSON","TO_NUMBER","TO_SECONDS","TO_TIMESTAMP","TRIM","TRUNC","TRUNCATE","UCASE","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","UUID","VALUES","VARIANCE","VAR_POP","VAR_SAMP","VECTOR_SUB","VERSION","WEEK","WEEKDAY","WEEKOFYEAR","YEAR"],Jl=d(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),kl=d(["WITH","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT [IGNORE] [INTO]","VALUES","REPLACE [INTO]","ON DUPLICATE KEY UPDATE","SET","CREATE [OR REPLACE] [TEMPORARY] PROCEDURE [IF NOT EXISTS]","CREATE [OR REPLACE] [EXTERNAL] FUNCTION"]),Pn=d(["CREATE [ROWSTORE] [REFERENCE | TEMPORARY | GLOBAL TEMPORARY] TABLE [IF NOT EXISTS]","CREATE VIEW","UPDATE","DELETE [FROM]","DROP [TEMPORARY] TABLE [IF EXISTS]","ALTER [ONLINE] TABLE","ADD [COLUMN]","ADD [UNIQUE] {INDEX | KEY}","DROP [COLUMN]","MODIFY [COLUMN]","CHANGE","RENAME [TO | AS]","TRUNCATE [TABLE]","ADD AGGREGATOR","ADD LEAF","AGGREGATOR SET AS MASTER","ALTER DATABASE","ALTER PIPELINE","ALTER RESOURCE POOL","ALTER USER","ALTER VIEW","ANALYZE TABLE","ATTACH DATABASE","ATTACH LEAF","ATTACH LEAF ALL","BACKUP DATABASE","BINLOG","BOOTSTRAP AGGREGATOR","CACHE INDEX","CALL","CHANGE","CHANGE MASTER TO","CHANGE REPLICATION FILTER","CHANGE REPLICATION SOURCE TO","CHECK BLOB CHECKSUM","CHECK TABLE","CHECKSUM TABLE","CLEAR ORPHAN DATABASES","CLONE","COMMIT","CREATE DATABASE","CREATE GROUP","CREATE INDEX","CREATE LINK","CREATE MILESTONE","CREATE PIPELINE","CREATE RESOURCE POOL","CREATE ROLE","CREATE USER","DEALLOCATE PREPARE","DESCRIBE","DETACH DATABASE","DETACH PIPELINE","DROP DATABASE","DROP FUNCTION","DROP INDEX","DROP LINK","DROP PIPELINE","DROP PROCEDURE","DROP RESOURCE POOL","DROP ROLE","DROP USER","DROP VIEW","EXECUTE","EXPLAIN","FLUSH","FORCE","GRANT","HANDLER","HELP","KILL CONNECTION","KILLALL QUERIES","LOAD DATA","LOAD INDEX INTO CACHE","LOAD XML","LOCK INSTANCE FOR BACKUP","LOCK TABLES","MASTER_POS_WAIT","OPTIMIZE TABLE","PREPARE","PURGE BINARY LOGS","REBALANCE PARTITIONS","RELEASE SAVEPOINT","REMOVE AGGREGATOR","REMOVE LEAF","REPAIR TABLE","REPLACE","REPLICATE DATABASE","RESET","RESET MASTER","RESET PERSIST","RESET REPLICA","RESET SLAVE","RESTART","RESTORE DATABASE","RESTORE REDUNDANCY","REVOKE","ROLLBACK","ROLLBACK TO SAVEPOINT","SAVEPOINT","SET CHARACTER SET","SET DEFAULT ROLE","SET NAMES","SET PASSWORD","SET RESOURCE GROUP","SET ROLE","SET TRANSACTION","SHOW","SHOW CHARACTER SET","SHOW COLLATION","SHOW COLUMNS","SHOW CREATE DATABASE","SHOW CREATE FUNCTION","SHOW CREATE PIPELINE","SHOW CREATE PROCEDURE","SHOW CREATE TABLE","SHOW CREATE USER","SHOW CREATE VIEW","SHOW DATABASES","SHOW ENGINE","SHOW ENGINES","SHOW ERRORS","SHOW FUNCTION CODE","SHOW FUNCTION STATUS","SHOW GRANTS","SHOW INDEX","SHOW MASTER STATUS","SHOW OPEN TABLES","SHOW PLUGINS","SHOW PRIVILEGES","SHOW PROCEDURE CODE","SHOW PROCEDURE STATUS","SHOW PROCESSLIST","SHOW PROFILE","SHOW PROFILES","SHOW RELAYLOG EVENTS","SHOW REPLICA STATUS","SHOW REPLICAS","SHOW SLAVE","SHOW SLAVE HOSTS","SHOW STATUS","SHOW TABLE STATUS","SHOW TABLES","SHOW VARIABLES","SHOW WARNINGS","SHUTDOWN","SNAPSHOT DATABASE","SOURCE_POS_WAIT","START GROUP_REPLICATION","START PIPELINE","START REPLICA","START SLAVE","START TRANSACTION","STOP GROUP_REPLICATION","STOP PIPELINE","STOP REPLICA","STOP REPLICATING","STOP SLAVE","TEST PIPELINE","UNLOCK INSTANCE","UNLOCK TABLES","USE","XA","ITERATE","LEAVE","LOOP","REPEAT","RETURN","WHILE"]),jl=d(["UNION [ALL | DISTINCT]","EXCEPT","INTERSECT","MINUS"]),ql=d(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),Ql=d(["ON DELETE","ON UPDATE","CHARACTER SET","{ROWS | RANGE} BETWEEN","IDENTIFIED BY"]),Zl={name:"singlestoredb",tokenizerOptions:{reservedSelect:Jl,reservedClauses:[...kl,...Pn],reservedSetOperations:jl,reservedJoins:ql,reservedPhrases:Ql,reservedKeywords:Xl,reservedDataTypes:$l,reservedFunctionNames:Kl,stringTypes:['""-qq-bs',"''-qq-bs",{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:["``"],identChars:{first:"$",rest:"$",allowFirstCharNumber:!0},variableTypes:[{regex:"@@?[A-Za-z0-9_$]+"},{quote:"``",prefixes:["@"],requirePrefix:!0}],lineCommentTypes:["--","#"],operators:[":=","&","|","^","~","<<",">>","<=>","&&","||","::","::$","::%",":>","!:>","*.*"],postProcess:Zr},formatOptions:{alwaysDenseOperators:["::","::$","::%"],onelineClauses:Pn}},zl=["ABS","ACOS","ACOSH","ADD_MONTHS","ALL_USER_NAMES","ANY_VALUE","APPROX_COUNT_DISTINCT","APPROX_PERCENTILE","APPROX_PERCENTILE_ACCUMULATE","APPROX_PERCENTILE_COMBINE","APPROX_PERCENTILE_ESTIMATE","APPROX_TOP_K","APPROX_TOP_K_ACCUMULATE","APPROX_TOP_K_COMBINE","APPROX_TOP_K_ESTIMATE","APPROXIMATE_JACCARD_INDEX","APPROXIMATE_SIMILARITY","ARRAY_AGG","ARRAY_APPEND","ARRAY_CAT","ARRAY_COMPACT","ARRAY_CONSTRUCT","ARRAY_CONSTRUCT_COMPACT","ARRAY_CONTAINS","ARRAY_INSERT","ARRAY_INTERSECTION","ARRAY_POSITION","ARRAY_PREPEND","ARRAY_SIZE","ARRAY_SLICE","ARRAY_TO_STRING","ARRAY_UNION_AGG","ARRAY_UNIQUE_AGG","ARRAYS_OVERLAP","AS_ARRAY","AS_BINARY","AS_BOOLEAN","AS_CHAR","AS_VARCHAR","AS_DATE","AS_DECIMAL","AS_NUMBER","AS_DOUBLE","AS_REAL","AS_INTEGER","AS_OBJECT","AS_TIME","AS_TIMESTAMP_LTZ","AS_TIMESTAMP_NTZ","AS_TIMESTAMP_TZ","ASCII","ASIN","ASINH","ATAN","ATAN2","ATANH","AUTO_REFRESH_REGISTRATION_HISTORY","AUTOMATIC_CLUSTERING_HISTORY","AVG","BASE64_DECODE_BINARY","BASE64_DECODE_STRING","BASE64_ENCODE","BIT_LENGTH","BITAND","BITAND_AGG","BITMAP_BIT_POSITION","BITMAP_BUCKET_NUMBER","BITMAP_CONSTRUCT_AGG","BITMAP_COUNT","BITMAP_OR_AGG","BITNOT","BITOR","BITOR_AGG","BITSHIFTLEFT","BITSHIFTRIGHT","BITXOR","BITXOR_AGG","BOOLAND","BOOLAND_AGG","BOOLNOT","BOOLOR","BOOLOR_AGG","BOOLXOR","BOOLXOR_AGG","BUILD_SCOPED_FILE_URL","BUILD_STAGE_FILE_URL","CASE","CAST","CBRT","CEIL","CHARINDEX","CHECK_JSON","CHECK_XML","CHR","CHAR","COALESCE","COLLATE","COLLATION","COMPLETE_TASK_GRAPHS","COMPRESS","CONCAT","CONCAT_WS","CONDITIONAL_CHANGE_EVENT","CONDITIONAL_TRUE_EVENT","CONTAINS","CONVERT_TIMEZONE","COPY_HISTORY","CORR","COS","COSH","COT","COUNT","COUNT_IF","COVAR_POP","COVAR_SAMP","CUME_DIST","CURRENT_ACCOUNT","CURRENT_AVAILABLE_ROLES","CURRENT_CLIENT","CURRENT_DATABASE","CURRENT_DATE","CURRENT_IP_ADDRESS","CURRENT_REGION","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_SCHEMAS","CURRENT_SECONDARY_ROLES","CURRENT_SESSION","CURRENT_STATEMENT","CURRENT_TASK_GRAPHS","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TRANSACTION","CURRENT_USER","CURRENT_VERSION","CURRENT_WAREHOUSE","DATA_TRANSFER_HISTORY","DATABASE_REFRESH_HISTORY","DATABASE_REFRESH_PROGRESS","DATABASE_REFRESH_PROGRESS_BY_JOB","DATABASE_STORAGE_USAGE_HISTORY","DATE_FROM_PARTS","DATE_PART","DATE_TRUNC","DATEADD","DATEDIFF","DAYNAME","DECODE","DECOMPRESS_BINARY","DECOMPRESS_STRING","DECRYPT","DECRYPT_RAW","DEGREES","DENSE_RANK","DIV0","EDITDISTANCE","ENCRYPT","ENCRYPT_RAW","ENDSWITH","EQUAL_NULL","EXP","EXPLAIN_JSON","EXTERNAL_FUNCTIONS_HISTORY","EXTERNAL_TABLE_FILES","EXTERNAL_TABLE_FILE_REGISTRATION_HISTORY","EXTRACT","EXTRACT_SEMANTIC_CATEGORIES","FACTORIAL","FIRST_VALUE","FLATTEN","FLOOR","GENERATE_COLUMN_DESCRIPTION","GENERATOR","GET","GET_ABSOLUTE_PATH","GET_DDL","GET_IGNORE_CASE","GET_OBJECT_REFERENCES","GET_PATH","GET_PRESIGNED_URL","GET_RELATIVE_PATH","GET_STAGE_LOCATION","GETBIT","GREATEST","GROUPING","GROUPING_ID","HASH","HASH_AGG","HAVERSINE","HEX_DECODE_BINARY","HEX_DECODE_STRING","HEX_ENCODE","HLL","HLL_ACCUMULATE","HLL_COMBINE","HLL_ESTIMATE","HLL_EXPORT","HLL_IMPORT","HOUR","MINUTE","SECOND","IFF","IFNULL","ILIKE","ILIKE ANY","INFER_SCHEMA","INITCAP","INSERT","INVOKER_ROLE","INVOKER_SHARE","IS_ARRAY","IS_BINARY","IS_BOOLEAN","IS_CHAR","IS_VARCHAR","IS_DATE","IS_DATE_VALUE","IS_DECIMAL","IS_DOUBLE","IS_REAL","IS_GRANTED_TO_INVOKER_ROLE","IS_INTEGER","IS_NULL_VALUE","IS_OBJECT","IS_ROLE_IN_SESSION","IS_TIME","IS_TIMESTAMP_LTZ","IS_TIMESTAMP_NTZ","IS_TIMESTAMP_TZ","JAROWINKLER_SIMILARITY","JSON_EXTRACT_PATH_TEXT","KURTOSIS","LAG","LAST_DAY","LAST_QUERY_ID","LAST_TRANSACTION","LAST_VALUE","LEAD","LEAST","LEFT","LENGTH","LEN","LIKE","LIKE ALL","LIKE ANY","LISTAGG","LN","LOCALTIME","LOCALTIMESTAMP","LOG","LOGIN_HISTORY","LOGIN_HISTORY_BY_USER","LOWER","LPAD","LTRIM","MATERIALIZED_VIEW_REFRESH_HISTORY","MD5","MD5_HEX","MD5_BINARY","MD5_NUMBER — Obsoleted","MD5_NUMBER_LOWER64","MD5_NUMBER_UPPER64","MEDIAN","MIN","MAX","MINHASH","MINHASH_COMBINE","MOD","MODE","MONTHNAME","MONTHS_BETWEEN","NEXT_DAY","NORMAL","NTH_VALUE","NTILE","NULLIF","NULLIFZERO","NVL","NVL2","OBJECT_AGG","OBJECT_CONSTRUCT","OBJECT_CONSTRUCT_KEEP_NULL","OBJECT_DELETE","OBJECT_INSERT","OBJECT_KEYS","OBJECT_PICK","OCTET_LENGTH","PARSE_IP","PARSE_JSON","PARSE_URL","PARSE_XML","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","PI","PIPE_USAGE_HISTORY","POLICY_CONTEXT","POLICY_REFERENCES","POSITION","POW","POWER","PREVIOUS_DAY","QUERY_ACCELERATION_HISTORY","QUERY_HISTORY","QUERY_HISTORY_BY_SESSION","QUERY_HISTORY_BY_USER","QUERY_HISTORY_BY_WAREHOUSE","RADIANS","RANDOM","RANDSTR","RANK","RATIO_TO_REPORT","REGEXP","REGEXP_COUNT","REGEXP_INSTR","REGEXP_LIKE","REGEXP_REPLACE","REGEXP_SUBSTR","REGEXP_SUBSTR_ALL","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","REGR_VALX","REGR_VALY","REPEAT","REPLACE","REPLICATION_GROUP_REFRESH_HISTORY","REPLICATION_GROUP_REFRESH_PROGRESS","REPLICATION_GROUP_REFRESH_PROGRESS_BY_JOB","REPLICATION_GROUP_USAGE_HISTORY","REPLICATION_USAGE_HISTORY","REST_EVENT_HISTORY","RESULT_SCAN","REVERSE","RIGHT","RLIKE","ROUND","ROW_NUMBER","RPAD","RTRIM","RTRIMMED_LENGTH","SEARCH_OPTIMIZATION_HISTORY","SEQ1","SEQ2","SEQ4","SEQ8","SERVERLESS_TASK_HISTORY","SHA1","SHA1_HEX","SHA1_BINARY","SHA2","SHA2_HEX","SHA2_BINARY","SIGN","SIN","SINH","SKEW","SOUNDEX","SPACE","SPLIT","SPLIT_PART","SPLIT_TO_TABLE","SQRT","SQUARE","ST_AREA","ST_ASEWKB","ST_ASEWKT","ST_ASGEOJSON","ST_ASWKB","ST_ASBINARY","ST_ASWKT","ST_ASTEXT","ST_AZIMUTH","ST_CENTROID","ST_COLLECT","ST_CONTAINS","ST_COVEREDBY","ST_COVERS","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_DWITHIN","ST_ENDPOINT","ST_ENVELOPE","ST_GEOGFROMGEOHASH","ST_GEOGPOINTFROMGEOHASH","ST_GEOGRAPHYFROMWKB","ST_GEOGRAPHYFROMWKT","ST_GEOHASH","ST_GEOMETRYFROMWKB","ST_GEOMETRYFROMWKT","ST_HAUSDORFFDISTANCE","ST_INTERSECTION","ST_INTERSECTS","ST_LENGTH","ST_MAKEGEOMPOINT","ST_GEOM_POINT","ST_MAKELINE","ST_MAKEPOINT","ST_POINT","ST_MAKEPOLYGON","ST_POLYGON","ST_NPOINTS","ST_NUMPOINTS","ST_PERIMETER","ST_POINTN","ST_SETSRID","ST_SIMPLIFY","ST_SRID","ST_STARTPOINT","ST_SYMDIFFERENCE","ST_UNION","ST_WITHIN","ST_X","ST_XMAX","ST_XMIN","ST_Y","ST_YMAX","ST_YMIN","STAGE_DIRECTORY_FILE_REGISTRATION_HISTORY","STAGE_STORAGE_USAGE_HISTORY","STARTSWITH","STDDEV","STDDEV_POP","STDDEV_SAMP","STRIP_NULL_VALUE","STRTOK","STRTOK_SPLIT_TO_TABLE","STRTOK_TO_ARRAY","SUBSTR","SUBSTRING","SUM","SYSDATE","SYSTEM$ABORT_SESSION","SYSTEM$ABORT_TRANSACTION","SYSTEM$AUTHORIZE_PRIVATELINK","SYSTEM$AUTHORIZE_STAGE_PRIVATELINK_ACCESS","SYSTEM$BEHAVIOR_CHANGE_BUNDLE_STATUS","SYSTEM$CANCEL_ALL_QUERIES","SYSTEM$CANCEL_QUERY","SYSTEM$CLUSTERING_DEPTH","SYSTEM$CLUSTERING_INFORMATION","SYSTEM$CLUSTERING_RATIO ","SYSTEM$CURRENT_USER_TASK_NAME","SYSTEM$DATABASE_REFRESH_HISTORY ","SYSTEM$DATABASE_REFRESH_PROGRESS","SYSTEM$DATABASE_REFRESH_PROGRESS_BY_JOB ","SYSTEM$DISABLE_BEHAVIOR_CHANGE_BUNDLE","SYSTEM$DISABLE_DATABASE_REPLICATION","SYSTEM$ENABLE_BEHAVIOR_CHANGE_BUNDLE","SYSTEM$ESTIMATE_QUERY_ACCELERATION","SYSTEM$ESTIMATE_SEARCH_OPTIMIZATION_COSTS","SYSTEM$EXPLAIN_JSON_TO_TEXT","SYSTEM$EXPLAIN_PLAN_JSON","SYSTEM$EXTERNAL_TABLE_PIPE_STATUS","SYSTEM$GENERATE_SAML_CSR","SYSTEM$GENERATE_SCIM_ACCESS_TOKEN","SYSTEM$GET_AWS_SNS_IAM_POLICY","SYSTEM$GET_PREDECESSOR_RETURN_VALUE","SYSTEM$GET_PRIVATELINK","SYSTEM$GET_PRIVATELINK_AUTHORIZED_ENDPOINTS","SYSTEM$GET_PRIVATELINK_CONFIG","SYSTEM$GET_SNOWFLAKE_PLATFORM_INFO","SYSTEM$GET_TAG","SYSTEM$GET_TAG_ALLOWED_VALUES","SYSTEM$GET_TAG_ON_CURRENT_COLUMN","SYSTEM$GET_TAG_ON_CURRENT_TABLE","SYSTEM$GLOBAL_ACCOUNT_SET_PARAMETER","SYSTEM$LAST_CHANGE_COMMIT_TIME","SYSTEM$LINK_ACCOUNT_OBJECTS_BY_NAME","SYSTEM$MIGRATE_SAML_IDP_REGISTRATION","SYSTEM$PIPE_FORCE_RESUME","SYSTEM$PIPE_STATUS","SYSTEM$REVOKE_PRIVATELINK","SYSTEM$REVOKE_STAGE_PRIVATELINK_ACCESS","SYSTEM$SET_RETURN_VALUE","SYSTEM$SHOW_OAUTH_CLIENT_SECRETS","SYSTEM$STREAM_GET_TABLE_TIMESTAMP","SYSTEM$STREAM_HAS_DATA","SYSTEM$TASK_DEPENDENTS_ENABLE","SYSTEM$TYPEOF","SYSTEM$USER_TASK_CANCEL_ONGOING_EXECUTIONS","SYSTEM$VERIFY_EXTERNAL_OAUTH_TOKEN","SYSTEM$WAIT","SYSTEM$WHITELIST","SYSTEM$WHITELIST_PRIVATELINK","TAG_REFERENCES","TAG_REFERENCES_ALL_COLUMNS","TAG_REFERENCES_WITH_LINEAGE","TAN","TANH","TASK_DEPENDENTS","TASK_HISTORY","TIME_FROM_PARTS","TIME_SLICE","TIMEADD","TIMEDIFF","TIMESTAMP_FROM_PARTS","TIMESTAMPADD","TIMESTAMPDIFF","TO_ARRAY","TO_BINARY","TO_BOOLEAN","TO_CHAR","TO_VARCHAR","TO_DATE","DATE","TO_DECIMAL","TO_NUMBER","TO_NUMERIC","TO_DOUBLE","TO_GEOGRAPHY","TO_GEOMETRY","TO_JSON","TO_OBJECT","TO_TIME","TIME","TO_TIMESTAMP","TO_TIMESTAMP_LTZ","TO_TIMESTAMP_NTZ","TO_TIMESTAMP_TZ","TO_VARIANT","TO_XML","TRANSLATE","TRIM","TRUNCATE","TRUNC","TRUNC","TRY_BASE64_DECODE_BINARY","TRY_BASE64_DECODE_STRING","TRY_CAST","TRY_HEX_DECODE_BINARY","TRY_HEX_DECODE_STRING","TRY_PARSE_JSON","TRY_TO_BINARY","TRY_TO_BOOLEAN","TRY_TO_DATE","TRY_TO_DECIMAL","TRY_TO_NUMBER","TRY_TO_NUMERIC","TRY_TO_DOUBLE","TRY_TO_GEOGRAPHY","TRY_TO_GEOMETRY","TRY_TO_TIME","TRY_TO_TIMESTAMP","TRY_TO_TIMESTAMP_LTZ","TRY_TO_TIMESTAMP_NTZ","TRY_TO_TIMESTAMP_TZ","TYPEOF","UNICODE","UNIFORM","UPPER","UUID_STRING","VALIDATE","VALIDATE_PIPE_LOAD","VAR_POP","VAR_SAMP","VARIANCE","VARIANCE_SAMP","VARIANCE_POP","WAREHOUSE_LOAD_HISTORY","WAREHOUSE_METERING_HISTORY","WIDTH_BUCKET","XMLGET","YEAR","YEAROFWEEK","YEAROFWEEKISO","DAY","DAYOFMONTH","DAYOFWEEK","DAYOFWEEKISO","DAYOFYEAR","WEEK","WEEK","WEEKOFYEAR","WEEKISO","MONTH","QUARTER","ZEROIFNULL","ZIPF"],e_=["ACCOUNT","ALL","ALTER","AND","ANY","AS","BETWEEN","BY","CASE","CAST","CHECK","COLUMN","CONNECT","CONNECTION","CONSTRAINT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","DATABASE","DELETE","DISTINCT","DROP","ELSE","EXISTS","FALSE","FOLLOWING","FOR","FROM","FULL","GRANT","GROUP","GSCLUSTER","HAVING","ILIKE","IN","INCREMENT","INNER","INSERT","INTERSECT","INTO","IS","ISSUE","JOIN","LATERAL","LEFT","LIKE","LOCALTIME","LOCALTIMESTAMP","MINUS","NATURAL","NOT","NULL","OF","ON","OR","ORDER","ORGANIZATION","QUALIFY","REGEXP","REVOKE","RIGHT","RLIKE","ROW","ROWS","SAMPLE","SCHEMA","SELECT","SET","SOME","START","TABLE","TABLESAMPLE","THEN","TO","TRIGGER","TRUE","TRY_CAST","UNION","UNIQUE","UPDATE","USING","VALUES","VIEW","WHEN","WHENEVER","WHERE","WITH","COMMENT"],E_=["NUMBER","DECIMAL","NUMERIC","INT","INTEGER","BIGINT","SMALLINT","TINYINT","BYTEINT","FLOAT","FLOAT4","FLOAT8","DOUBLE","DOUBLE PRECISION","REAL","VARCHAR","CHAR","CHARACTER","STRING","TEXT","BINARY","VARBINARY","BOOLEAN","DATE","DATETIME","TIME","TIMESTAMP","TIMESTAMP_LTZ","TIMESTAMP_NTZ","TIMESTAMP","TIMESTAMP_TZ","VARIANT","OBJECT","ARRAY","GEOGRAPHY","GEOMETRY"],t_=d(["SELECT [ALL | DISTINCT]"]),T_=d(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY","QUALIFY","LIMIT","OFFSET","FETCH [FIRST | NEXT]","INSERT [OVERWRITE] [ALL INTO | INTO | ALL | FIRST]","{THEN | ELSE} INTO","VALUES","SET","CLUSTER BY","[WITH] {MASKING POLICY | TAG | ROW ACCESS POLICY}","COPY GRANTS","USING TEMPLATE","MERGE INTO","WHEN MATCHED [AND]","THEN {UPDATE SET | DELETE}","WHEN NOT MATCHED THEN INSERT"]),Dn=d(["CREATE [OR REPLACE] [VOLATILE] TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] [LOCAL | GLOBAL] {TEMP|TEMPORARY} TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] [SECURE] [RECURSIVE] VIEW [IF NOT EXISTS]","UPDATE","DELETE FROM","DROP TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS]","RENAME TO","SWAP WITH","[SUSPEND | RESUME] RECLUSTER","DROP CLUSTERING KEY","ADD [COLUMN]","RENAME COLUMN","{ALTER | MODIFY} [COLUMN]","DROP [COLUMN]","{ADD | ALTER | MODIFY | DROP} [CONSTRAINT]","RENAME CONSTRAINT","{ADD | DROP} SEARCH OPTIMIZATION","{SET | UNSET} TAG","{ADD | DROP} ROW ACCESS POLICY","DROP ALL ROW ACCESS POLICIES","{SET | DROP} DEFAULT","{SET | DROP} NOT NULL","[SET DATA] TYPE","UNSET COMMENT","{SET | UNSET} MASKING POLICY","TRUNCATE [TABLE] [IF EXISTS]","ALTER ACCOUNT","ALTER API INTEGRATION","ALTER CONNECTION","ALTER DATABASE","ALTER EXTERNAL TABLE","ALTER FAILOVER GROUP","ALTER FILE FORMAT","ALTER FUNCTION","ALTER INTEGRATION","ALTER MASKING POLICY","ALTER MATERIALIZED VIEW","ALTER NETWORK POLICY","ALTER NOTIFICATION INTEGRATION","ALTER PIPE","ALTER PROCEDURE","ALTER REPLICATION GROUP","ALTER RESOURCE MONITOR","ALTER ROLE","ALTER ROW ACCESS POLICY","ALTER SCHEMA","ALTER SECURITY INTEGRATION","ALTER SEQUENCE","ALTER SESSION","ALTER SESSION POLICY","ALTER SHARE","ALTER STAGE","ALTER STORAGE INTEGRATION","ALTER STREAM","ALTER TAG","ALTER TASK","ALTER USER","ALTER VIEW","ALTER WAREHOUSE","BEGIN","CALL","COMMIT","COPY INTO","CREATE ACCOUNT","CREATE API INTEGRATION","CREATE CONNECTION","CREATE DATABASE","CREATE EXTERNAL FUNCTION","CREATE EXTERNAL TABLE","CREATE FAILOVER GROUP","CREATE FILE FORMAT","CREATE FUNCTION","CREATE INTEGRATION","CREATE MANAGED ACCOUNT","CREATE MASKING POLICY","CREATE MATERIALIZED VIEW","CREATE NETWORK POLICY","CREATE NOTIFICATION INTEGRATION","CREATE PIPE","CREATE PROCEDURE","CREATE REPLICATION GROUP","CREATE RESOURCE MONITOR","CREATE ROLE","CREATE ROW ACCESS POLICY","CREATE SCHEMA","CREATE SECURITY INTEGRATION","CREATE SEQUENCE","CREATE SESSION POLICY","CREATE SHARE","CREATE STAGE","CREATE STORAGE INTEGRATION","CREATE STREAM","CREATE TAG","CREATE TASK","CREATE USER","CREATE WAREHOUSE","DELETE","DESCRIBE DATABASE","DESCRIBE EXTERNAL TABLE","DESCRIBE FILE FORMAT","DESCRIBE FUNCTION","DESCRIBE INTEGRATION","DESCRIBE MASKING POLICY","DESCRIBE MATERIALIZED VIEW","DESCRIBE NETWORK POLICY","DESCRIBE PIPE","DESCRIBE PROCEDURE","DESCRIBE RESULT","DESCRIBE ROW ACCESS POLICY","DESCRIBE SCHEMA","DESCRIBE SEQUENCE","DESCRIBE SESSION POLICY","DESCRIBE SHARE","DESCRIBE STAGE","DESCRIBE STREAM","DESCRIBE TABLE","DESCRIBE TASK","DESCRIBE TRANSACTION","DESCRIBE USER","DESCRIBE VIEW","DESCRIBE WAREHOUSE","DROP CONNECTION","DROP DATABASE","DROP EXTERNAL TABLE","DROP FAILOVER GROUP","DROP FILE FORMAT","DROP FUNCTION","DROP INTEGRATION","DROP MANAGED ACCOUNT","DROP MASKING POLICY","DROP MATERIALIZED VIEW","DROP NETWORK POLICY","DROP PIPE","DROP PROCEDURE","DROP REPLICATION GROUP","DROP RESOURCE MONITOR","DROP ROLE","DROP ROW ACCESS POLICY","DROP SCHEMA","DROP SEQUENCE","DROP SESSION POLICY","DROP SHARE","DROP STAGE","DROP STREAM","DROP TAG","DROP TASK","DROP USER","DROP VIEW","DROP WAREHOUSE","EXECUTE IMMEDIATE","EXECUTE TASK","EXPLAIN","GET","GRANT OWNERSHIP","GRANT ROLE","INSERT","LIST","MERGE","PUT","REMOVE","REVOKE ROLE","ROLLBACK","SHOW COLUMNS","SHOW CONNECTIONS","SHOW DATABASES","SHOW DATABASES IN FAILOVER GROUP","SHOW DATABASES IN REPLICATION GROUP","SHOW DELEGATED AUTHORIZATIONS","SHOW EXTERNAL FUNCTIONS","SHOW EXTERNAL TABLES","SHOW FAILOVER GROUPS","SHOW FILE FORMATS","SHOW FUNCTIONS","SHOW GLOBAL ACCOUNTS","SHOW GRANTS","SHOW INTEGRATIONS","SHOW LOCKS","SHOW MANAGED ACCOUNTS","SHOW MASKING POLICIES","SHOW MATERIALIZED VIEWS","SHOW NETWORK POLICIES","SHOW OBJECTS","SHOW ORGANIZATION ACCOUNTS","SHOW PARAMETERS","SHOW PIPES","SHOW PRIMARY KEYS","SHOW PROCEDURES","SHOW REGIONS","SHOW REPLICATION ACCOUNTS","SHOW REPLICATION DATABASES","SHOW REPLICATION GROUPS","SHOW RESOURCE MONITORS","SHOW ROLES","SHOW ROW ACCESS POLICIES","SHOW SCHEMAS","SHOW SEQUENCES","SHOW SESSION POLICIES","SHOW SHARES","SHOW SHARES IN FAILOVER GROUP","SHOW SHARES IN REPLICATION GROUP","SHOW STAGES","SHOW STREAMS","SHOW TABLES","SHOW TAGS","SHOW TASKS","SHOW TRANSACTIONS","SHOW USER FUNCTIONS","SHOW USERS","SHOW VARIABLES","SHOW VIEWS","SHOW WAREHOUSES","TRUNCATE MATERIALIZED VIEW","UNDROP DATABASE","UNDROP SCHEMA","UNDROP TABLE","UNDROP TAG","UNSET","USE DATABASE","USE ROLE","USE SCHEMA","USE SECONDARY ROLES","USE WAREHOUSE"]),r_=d(["UNION [ALL]","MINUS","EXCEPT","INTERSECT"]),s_=d(["[INNER] JOIN","[NATURAL] {LEFT | RIGHT | FULL} [OUTER] JOIN","{CROSS | NATURAL} JOIN"]),n_=d(["{ROWS | RANGE} BETWEEN","ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]"]),R_={name:"snowflake",tokenizerOptions:{reservedSelect:t_,reservedClauses:[...T_,...Dn],reservedSetOperations:r_,reservedJoins:s_,reservedPhrases:n_,reservedKeywords:e_,reservedDataTypes:E_,reservedFunctionNames:zl,stringTypes:["$$","''-qq-bs"],identTypes:['""-qq'],variableTypes:[{regex:"[$][1-9]\\d*"},{regex:"[$][_a-zA-Z][_a-zA-Z0-9$]*"}],extraParens:["[]"],identChars:{rest:"$"},lineCommentTypes:["--","//"],operators:["%","::","||",":","=>"]},formatOptions:{alwaysDenseOperators:[":","::"],onelineClauses:Dn}},bt=e=>e[e.length-1],Jo=e=>e.sort((E,t)=>t.length-E.length||E.localeCompare(t)),oT=e=>e.replace(/\s+/gu," "),ZT=e=>/\n/.test(e),EE=e=>e.replace(/[.*+?^${}()|[\]\\]/gu,"\\$&"),dn=/\s+/uy,WE=e=>new RegExp(`(?:${e})`,"uy"),o_=e=>e.split("").map(E=>/ /gu.test(E)?"\\s+":`[${E.toUpperCase()}${E.toLowerCase()}]`).join(""),A_=e=>e+"(?:-"+e+")*",i_=({prefixes:e,requirePrefix:E})=>`(?:${e.map(o_).join("|")}${E?"":"|"})`,S_=e=>new RegExp(`(?:${e.map(EE).join("|")}).*?(?=\r
|
18
18
|
|\r|
|
19
|
-
|$)`,"uy"),
|
19
|
+
|$)`,"uy"),Mn=(e,E=[])=>{const t=e==="open"?0:1,T=["()",...E].map(r=>r[t]);return WE(T.map(EE).join("|"))},O_=e=>WE(`${Jo(e).map(EE).join("|")}`),a_=({rest:e,dashes:E})=>e||E?`(?![${e||""}${E?"-":""}])`:"",lE=(e,E={})=>{if(e.length===0)return/^\b$/u;const t=a_(E),T=Jo(e).map(EE).join("|").replace(/ /gu,"\\s+");return new RegExp(`(?:${T})${t}\\b`,"iuy")},zT=(e,E)=>{if(!e.length)return;const t=e.map(EE).join("|");return WE(`(?:${t})(?:${E})`)},I_=()=>{const e={"<":">","[":"]","(":")","{":"}"},E="{left}(?:(?!{right}').)*?{right}",t=Object.entries(e).map(([n,R])=>E.replace(/{left}/g,EE(n)).replace(/{right}/g,EE(R))),T=EE(Object.keys(e).join(""));return`[Qq]'(?:${String.raw`(?<tag>[^\s${T}])(?:(?!\k<tag>').)*?\k<tag>`}|${t.join("|")})'`},Un={"``":"(?:`[^`]*`)+","[]":String.raw`(?:\[[^\]]*\])(?:\][^\]]*\])*`,'""-qq':String.raw`(?:"[^"]*")+`,'""-bs':String.raw`(?:"[^"\\]*(?:\\.[^"\\]*)*")`,'""-qq-bs':String.raw`(?:"[^"\\]*(?:\\.[^"\\]*)*")+`,'""-raw':String.raw`(?:"[^"]*")`,"''-qq":String.raw`(?:'[^']*')+`,"''-bs":String.raw`(?:'[^'\\]*(?:\\.[^'\\]*)*')`,"''-qq-bs":String.raw`(?:'[^'\\]*(?:\\.[^'\\]*)*')+`,"''-raw":String.raw`(?:'[^']*')`,$$:String.raw`(?<tag>\$\w*\$)[\s\S]*?\k<tag>`,"'''..'''":String.raw`'''[^\\]*?(?:\\.[^\\]*?)*?'''`,'""".."""':String.raw`"""[^\\]*?(?:\\.[^\\]*?)*?"""`,"{}":String.raw`(?:\{[^\}]*\})`,"q''":I_()},ko=e=>typeof e=="string"?Un[e]:"regex"in e?e.regex:i_(e)+Un[e.quote],N_=e=>WE(e.map(E=>"regex"in E?E.regex:ko(E)).join("|")),jo=e=>e.map(ko).join("|"),hn=e=>WE(jo(e)),l_=(e={})=>WE(qo(e)),qo=({first:e,rest:E,dashes:t,allowFirstCharNumber:T}={})=>{const r="\\p{Alphabetic}\\p{Mark}_",s="\\p{Decimal_Number}",n=EE(e??""),R=EE(E??""),A=T?`[${r}${s}${n}][${r}${s}${R}]*`:`[${r}${n}][${r}${s}${R}]*`;return t?A_(A):A};function Qo(e,E){const t=e.slice(0,E).split(/\n/);return{line:t.length,col:t[t.length-1].length+1}}var __=class{constructor(e,E){this.rules=e,this.dialectName=E,this.input="",this.index=0}tokenize(e){this.input=e,this.index=0;const E=[];let t;for(;this.index<this.input.length;){const T=this.getWhitespace();if(this.index<this.input.length){if(t=this.getNextToken(),!t)throw this.createParseError();E.push(xe(ye({},t),{precedingWhitespace:T}))}}return E}createParseError(){const e=this.input.slice(this.index,this.index+10),{line:E,col:t}=Qo(this.input,this.index);return new Error(`Parse error: Unexpected "${e}" at line ${E} column ${t}.
|
20
20
|
${this.dialectInfo()}`)}dialectInfo(){return this.dialectName==="sql"?`This likely happens because you're using the default "sql" dialect.
|
21
|
-
If possible, please select a more specific dialect (like sqlite, postgresql, etc).`:`SQL dialect used: "${this.dialectName}".`}getWhitespace(){Dn.lastIndex=this.index;const e=Dn.exec(this.input);if(e)return this.index+=e[0].length,e[0]}getNextToken(){for(const e of this.rules){const E=this.match(e);if(E)return E}}match(e){e.regex.lastIndex=this.index;const E=e.regex.exec(this.input);if(E){const t=E[0],T={type:e.type,raw:t,text:e.text?e.text(t):t,start:this.index};return e.key&&(T.key=e.key(t)),this.index+=t.length,T}}},hn=/\/\*/uy,__=/([^/*]|\*[^/]|\/[^*])+/uy,C_=/\*\//uy,c_=class{constructor(){this.lastIndex=0}exec(e){let E="",t,T=0;if(t=this.matchSection(hn,e))E+=t,T++;else return null;for(;T>0;)if(t=this.matchSection(hn,e))E+=t,T++;else if(t=this.matchSection(C_,e))E+=t,T--;else if(t=this.matchSection(__,e))E+=t;else return null;return[E]}matchSection(e,E){e.lastIndex=this.lastIndex;const t=e.exec(E);return t&&(this.lastIndex+=t[0].length),t?t[0]:null}},L_=class{constructor(e,E){this.cfg=e,this.dialectName=E,this.rulesBeforeParams=this.buildRulesBeforeParams(e),this.rulesAfterParams=this.buildRulesAfterParams(e)}tokenize(e,E){const t=[...this.rulesBeforeParams,...this.buildParamRules(this.cfg,E),...this.rulesAfterParams],T=new l_(t,this.dialectName).tokenize(e);return this.cfg.postProcess?this.cfg.postProcess(T):T}buildRulesBeforeParams(e){var E,t;return this.validRules([{type:"BLOCK_COMMENT",regex:e.nestedBlockComments?new c_:/(\/\*[^]*?\*\/)/uy},{type:"LINE_COMMENT",regex:i_((E=e.lineCommentTypes)!=null?E:["--"])},{type:"QUOTED_IDENTIFIER",regex:Un(e.identTypes)},{type:"NUMBER",regex:/(?:0x[0-9a-fA-F]+|0b[01]+|(?:-\s*)?[0-9]+(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+(?:\.[0-9]+)?)?)(?![\w\p{Alphabetic}])/uy},{type:"RESERVED_PHRASE",regex:lE((t=e.reservedPhrases)!=null?t:[],e.identChars),text:he},{type:"CASE",regex:/CASE\b/iuy,text:he},{type:"END",regex:/END\b/iuy,text:he},{type:"BETWEEN",regex:/BETWEEN\b/iuy,text:he},{type:"LIMIT",regex:e.reservedClauses.includes("LIMIT")?/LIMIT\b/iuy:void 0,text:he},{type:"RESERVED_CLAUSE",regex:lE(e.reservedClauses,e.identChars),text:he},{type:"RESERVED_SELECT",regex:lE(e.reservedSelect,e.identChars),text:he},{type:"RESERVED_SET_OPERATION",regex:lE(e.reservedSetOperations,e.identChars),text:he},{type:"WHEN",regex:/WHEN\b/iuy,text:he},{type:"ELSE",regex:/ELSE\b/iuy,text:he},{type:"THEN",regex:/THEN\b/iuy,text:he},{type:"RESERVED_JOIN",regex:lE(e.reservedJoins,e.identChars),text:he},{type:"AND",regex:/AND\b/iuy,text:he},{type:"OR",regex:/OR\b/iuy,text:he},{type:"XOR",regex:e.supportsXor?/XOR\b/iuy:void 0,text:he},{type:"RESERVED_FUNCTION_NAME",regex:lE(e.reservedFunctionNames,e.identChars),text:he},{type:"RESERVED_DATA_TYPE",regex:lE(e.reservedDataTypes,e.identChars),text:he},{type:"RESERVED_KEYWORD",regex:lE(e.reservedKeywords,e.identChars),text:he}])}buildRulesAfterParams(e){var E;return this.validRules([{type:"VARIABLE",regex:e.variableTypes?I_(e.variableTypes):void 0},{type:"STRING",regex:Un(e.stringTypes)},{type:"IDENTIFIER",regex:N_(e.identChars)},{type:"DELIMITER",regex:/[;]/uy},{type:"COMMA",regex:/[,]/y},{type:"OPEN_PAREN",regex:dn("open",e.extraParens)},{type:"CLOSE_PAREN",regex:dn("close",e.extraParens)},{type:"OPERATOR",regex:S_(["+","-","/",">","<","=","<>","<=",">=","!=",...(E=e.operators)!=null?E:[]])},{type:"ASTERISK",regex:/[*]/uy},{type:"DOT",regex:/[.]/uy}])}buildParamRules(e,E){var t,T,r,s,n;const R={named:(E==null?void 0:E.named)||((t=e.paramTypes)==null?void 0:t.named)||[],quoted:(E==null?void 0:E.quoted)||((T=e.paramTypes)==null?void 0:T.quoted)||[],numbered:(E==null?void 0:E.numbered)||((r=e.paramTypes)==null?void 0:r.numbered)||[],positional:typeof(E==null?void 0:E.positional)=="boolean"?E.positional:(s=e.paramTypes)==null?void 0:s.positional,custom:(E==null?void 0:E.custom)||((n=e.paramTypes)==null?void 0:n.custom)||[]};return this.validRules([{type:"NAMED_PARAMETER",regex:zT(R.named,jo(e.paramChars||e.identChars)),key:A=>A.slice(1)},{type:"QUOTED_PARAMETER",regex:zT(R.quoted,ko(e.identTypes)),key:A=>(({tokenKey:o,quoteChar:i})=>o.replace(new RegExp(EE("\\"+i),"gu"),i))({tokenKey:A.slice(2,-1),quoteChar:A.slice(-1)})},{type:"NUMBERED_PARAMETER",regex:zT(R.numbered,"[0-9]+"),key:A=>A.slice(1)},{type:"POSITIONAL_PARAMETER",regex:R.positional?/[?]/y:void 0},...R.custom.map(A=>{var o;return{type:"CUSTOM_PARAMETER",regex:WE(A.regex),key:(o=A.key)!=null?o:i=>i}})])}validRules(e){return e.filter(E=>!!E.regex)}},he=e=>oT(e.toUpperCase()),Gn=new Map,u_=e=>{let E=Gn.get(e);return E||(E=p_(e),Gn.set(e,E)),E},p_=e=>({tokenizer:new L_(e.tokenizerOptions,e.name),formatOptions:f_(e.formatOptions)}),f_=e=>({alwaysDenseOperators:e.alwaysDenseOperators||[],onelineClauses:Object.fromEntries(e.onelineClauses.map(E=>[E,!0]))});function P_(e){return e.indentStyle==="tabularLeft"||e.indentStyle==="tabularRight"?" ".repeat(10):e.useTabs?" ":" ".repeat(e.tabWidth)}function ft(e){return e.indentStyle==="tabularLeft"||e.indentStyle==="tabularRight"}var D_=class{constructor(e){this.params=e,this.index=0}get({key:e,text:E}){return this.params?e?this.params[e]:this.params[this.index++]:E}getPositionalParameterIndex(){return this.index}setPositionalParameterIndex(e){this.index=e}};function d_(e){return e.map(M_).map(U_).map(h_).map(G_).map(g_)}var M_=(e,E,t)=>{if($o(e.type)){const T=m_(t,E);if(T&&T.text===".")return Ve(ye({},e),{type:"IDENTIFIER",text:e.raw})}return e},U_=(e,E,t)=>{if(e.type==="RESERVED_FUNCTION_NAME"){const T=Kt(t,E);if(!T||!Qo(T))return Ve(ye({},e),{type:"RESERVED_KEYWORD"})}return e},h_=(e,E,t)=>{if(e.type==="RESERVED_DATA_TYPE"){const T=Kt(t,E);if(T&&Qo(T))return Ve(ye({},e),{type:"RESERVED_PARAMETERIZED_DATA_TYPE"})}return e},G_=(e,E,t)=>{if(e.type==="IDENTIFIER"){const T=Kt(t,E);if(T&&Zo(T))return Ve(ye({},e),{type:"ARRAY_IDENTIFIER"})}return e},g_=(e,E,t)=>{if(e.type==="RESERVED_DATA_TYPE"){const T=Kt(t,E);if(T&&Zo(T))return Ve(ye({},e),{type:"ARRAY_KEYWORD"})}return e},m_=(e,E)=>Kt(e,E,-1),Kt=(e,E,t=1)=>{let T=1;for(;e[E+T*t]&&H_(e[E+T*t]);)T++;return e[E+T*t]},Qo=e=>e.type==="OPEN_PAREN"&&e.text==="(",Zo=e=>e.type==="OPEN_PAREN"&&e.text==="[",H_=e=>e.type==="BLOCK_COMMENT"||e.type==="LINE_COMMENT",zo=class{constructor(e){this.tokenize=e,this.index=0,this.tokens=[],this.input=""}reset(e,E){this.input=e,this.index=0,this.tokens=this.tokenize(e)}next(){return this.tokens[this.index++]}save(){}formatError(e){const{line:E,col:t}=qo(this.input,e.start);return`Parse error at token: ${e.text} at line ${E} column ${t}`}has(e){return e in Wo}};function er(e){return e[0]}var j=new zo(e=>[]),HE=([[e]])=>e,Ge=e=>({type:"keyword",tokenType:e.type,text:e.text,raw:e.raw}),gn=e=>({type:"data_type",text:e.text,raw:e.raw}),ge=(e,{leading:E,trailing:t})=>(E!=null&&E.length&&(e=Ve(ye({},e),{leadingComments:E})),t!=null&&t.length&&(e=Ve(ye({},e),{trailingComments:t})),e),y_=(e,{leading:E,trailing:t})=>{if(E!=null&&E.length){const[T,...r]=e;e=[ge(T,{leading:E}),...r]}if(t!=null&&t.length){const T=e.slice(0,-1),r=e[e.length-1];e=[...T,ge(r,{trailing:t})]}return e},b_={Lexer:j,ParserRules:[{name:"main$ebnf$1",symbols:[]},{name:"main$ebnf$1",symbols:["main$ebnf$1","statement"],postprocess:e=>e[0].concat([e[1]])},{name:"main",symbols:["main$ebnf$1"],postprocess:([e])=>{const E=e[e.length-1];return E&&!E.hasSemicolon?E.children.length>0?e:e.slice(0,-1):e}},{name:"statement$subexpression$1",symbols:[j.has("DELIMITER")?{type:"DELIMITER"}:DELIMITER]},{name:"statement$subexpression$1",symbols:[j.has("EOF")?{type:"EOF"}:EOF]},{name:"statement",symbols:["expressions_or_clauses","statement$subexpression$1"],postprocess:([e,[E]])=>({type:"statement",children:e,hasSemicolon:E.type==="DELIMITER"})},{name:"expressions_or_clauses$ebnf$1",symbols:[]},{name:"expressions_or_clauses$ebnf$1",symbols:["expressions_or_clauses$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"expressions_or_clauses$ebnf$2",symbols:[]},{name:"expressions_or_clauses$ebnf$2",symbols:["expressions_or_clauses$ebnf$2","clause"],postprocess:e=>e[0].concat([e[1]])},{name:"expressions_or_clauses",symbols:["expressions_or_clauses$ebnf$1","expressions_or_clauses$ebnf$2"],postprocess:([e,E])=>[...e,...E]},{name:"clause$subexpression$1",symbols:["limit_clause"]},{name:"clause$subexpression$1",symbols:["select_clause"]},{name:"clause$subexpression$1",symbols:["other_clause"]},{name:"clause$subexpression$1",symbols:["set_operation"]},{name:"clause",symbols:["clause$subexpression$1"],postprocess:HE},{name:"limit_clause$ebnf$1$subexpression$1$ebnf$1",symbols:["free_form_sql"]},{name:"limit_clause$ebnf$1$subexpression$1$ebnf$1",symbols:["limit_clause$ebnf$1$subexpression$1$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"limit_clause$ebnf$1$subexpression$1",symbols:[j.has("COMMA")?{type:"COMMA"}:COMMA,"limit_clause$ebnf$1$subexpression$1$ebnf$1"]},{name:"limit_clause$ebnf$1",symbols:["limit_clause$ebnf$1$subexpression$1"],postprocess:er},{name:"limit_clause$ebnf$1",symbols:[],postprocess:()=>null},{name:"limit_clause",symbols:[j.has("LIMIT")?{type:"LIMIT"}:LIMIT,"_","expression_chain_","limit_clause$ebnf$1"],postprocess:([e,E,t,T])=>{if(T){const[r,s]=T;return{type:"limit_clause",limitKw:ge(Ge(e),{trailing:E}),offset:t,count:s}}else return{type:"limit_clause",limitKw:ge(Ge(e),{trailing:E}),count:t}}},{name:"select_clause$subexpression$1$ebnf$1",symbols:[]},{name:"select_clause$subexpression$1$ebnf$1",symbols:["select_clause$subexpression$1$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"select_clause$subexpression$1",symbols:["all_columns_asterisk","select_clause$subexpression$1$ebnf$1"]},{name:"select_clause$subexpression$1$ebnf$2",symbols:[]},{name:"select_clause$subexpression$1$ebnf$2",symbols:["select_clause$subexpression$1$ebnf$2","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"select_clause$subexpression$1",symbols:["asteriskless_free_form_sql","select_clause$subexpression$1$ebnf$2"]},{name:"select_clause",symbols:[j.has("RESERVED_SELECT")?{type:"RESERVED_SELECT"}:RESERVED_SELECT,"select_clause$subexpression$1"],postprocess:([e,[E,t]])=>({type:"clause",nameKw:Ge(e),children:[E,...t]})},{name:"select_clause",symbols:[j.has("RESERVED_SELECT")?{type:"RESERVED_SELECT"}:RESERVED_SELECT],postprocess:([e])=>({type:"clause",nameKw:Ge(e),children:[]})},{name:"all_columns_asterisk",symbols:[j.has("ASTERISK")?{type:"ASTERISK"}:ASTERISK],postprocess:()=>({type:"all_columns_asterisk"})},{name:"other_clause$ebnf$1",symbols:[]},{name:"other_clause$ebnf$1",symbols:["other_clause$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"other_clause",symbols:[j.has("RESERVED_CLAUSE")?{type:"RESERVED_CLAUSE"}:RESERVED_CLAUSE,"other_clause$ebnf$1"],postprocess:([e,E])=>({type:"clause",nameKw:Ge(e),children:E})},{name:"set_operation$ebnf$1",symbols:[]},{name:"set_operation$ebnf$1",symbols:["set_operation$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"set_operation",symbols:[j.has("RESERVED_SET_OPERATION")?{type:"RESERVED_SET_OPERATION"}:RESERVED_SET_OPERATION,"set_operation$ebnf$1"],postprocess:([e,E])=>({type:"set_operation",nameKw:Ge(e),children:E})},{name:"expression_chain_$ebnf$1",symbols:["expression_with_comments_"]},{name:"expression_chain_$ebnf$1",symbols:["expression_chain_$ebnf$1","expression_with_comments_"],postprocess:e=>e[0].concat([e[1]])},{name:"expression_chain_",symbols:["expression_chain_$ebnf$1"],postprocess:er},{name:"expression_chain$ebnf$1",symbols:[]},{name:"expression_chain$ebnf$1",symbols:["expression_chain$ebnf$1","_expression_with_comments"],postprocess:e=>e[0].concat([e[1]])},{name:"expression_chain",symbols:["expression","expression_chain$ebnf$1"],postprocess:([e,E])=>[e,...E]},{name:"andless_expression_chain$ebnf$1",symbols:[]},{name:"andless_expression_chain$ebnf$1",symbols:["andless_expression_chain$ebnf$1","_andless_expression_with_comments"],postprocess:e=>e[0].concat([e[1]])},{name:"andless_expression_chain",symbols:["andless_expression","andless_expression_chain$ebnf$1"],postprocess:([e,E])=>[e,...E]},{name:"expression_with_comments_",symbols:["expression","_"],postprocess:([e,E])=>ge(e,{trailing:E})},{name:"_expression_with_comments",symbols:["_","expression"],postprocess:([e,E])=>ge(E,{leading:e})},{name:"_andless_expression_with_comments",symbols:["_","andless_expression"],postprocess:([e,E])=>ge(E,{leading:e})},{name:"free_form_sql$subexpression$1",symbols:["asteriskless_free_form_sql"]},{name:"free_form_sql$subexpression$1",symbols:["asterisk"]},{name:"free_form_sql",symbols:["free_form_sql$subexpression$1"],postprocess:HE},{name:"asteriskless_free_form_sql$subexpression$1",symbols:["asteriskless_andless_expression"]},{name:"asteriskless_free_form_sql$subexpression$1",symbols:["logic_operator"]},{name:"asteriskless_free_form_sql$subexpression$1",symbols:["comma"]},{name:"asteriskless_free_form_sql$subexpression$1",symbols:["comment"]},{name:"asteriskless_free_form_sql$subexpression$1",symbols:["other_keyword"]},{name:"asteriskless_free_form_sql",symbols:["asteriskless_free_form_sql$subexpression$1"],postprocess:HE},{name:"expression$subexpression$1",symbols:["andless_expression"]},{name:"expression$subexpression$1",symbols:["logic_operator"]},{name:"expression",symbols:["expression$subexpression$1"],postprocess:HE},{name:"andless_expression$subexpression$1",symbols:["asteriskless_andless_expression"]},{name:"andless_expression$subexpression$1",symbols:["asterisk"]},{name:"andless_expression",symbols:["andless_expression$subexpression$1"],postprocess:HE},{name:"asteriskless_andless_expression$subexpression$1",symbols:["atomic_expression"]},{name:"asteriskless_andless_expression$subexpression$1",symbols:["between_predicate"]},{name:"asteriskless_andless_expression$subexpression$1",symbols:["case_expression"]},{name:"asteriskless_andless_expression",symbols:["asteriskless_andless_expression$subexpression$1"],postprocess:HE},{name:"atomic_expression$subexpression$1",symbols:["array_subscript"]},{name:"atomic_expression$subexpression$1",symbols:["function_call"]},{name:"atomic_expression$subexpression$1",symbols:["property_access"]},{name:"atomic_expression$subexpression$1",symbols:["parenthesis"]},{name:"atomic_expression$subexpression$1",symbols:["curly_braces"]},{name:"atomic_expression$subexpression$1",symbols:["square_brackets"]},{name:"atomic_expression$subexpression$1",symbols:["operator"]},{name:"atomic_expression$subexpression$1",symbols:["identifier"]},{name:"atomic_expression$subexpression$1",symbols:["parameter"]},{name:"atomic_expression$subexpression$1",symbols:["literal"]},{name:"atomic_expression$subexpression$1",symbols:["data_type"]},{name:"atomic_expression$subexpression$1",symbols:["keyword"]},{name:"atomic_expression",symbols:["atomic_expression$subexpression$1"],postprocess:HE},{name:"array_subscript",symbols:[j.has("ARRAY_IDENTIFIER")?{type:"ARRAY_IDENTIFIER"}:ARRAY_IDENTIFIER,"_","square_brackets"],postprocess:([e,E,t])=>({type:"array_subscript",array:ge({type:"identifier",quoted:!1,text:e.text},{trailing:E}),parenthesis:t})},{name:"array_subscript",symbols:[j.has("ARRAY_KEYWORD")?{type:"ARRAY_KEYWORD"}:ARRAY_KEYWORD,"_","square_brackets"],postprocess:([e,E,t])=>({type:"array_subscript",array:ge(Ge(e),{trailing:E}),parenthesis:t})},{name:"function_call",symbols:[j.has("RESERVED_FUNCTION_NAME")?{type:"RESERVED_FUNCTION_NAME"}:RESERVED_FUNCTION_NAME,"_","parenthesis"],postprocess:([e,E,t])=>({type:"function_call",nameKw:ge(Ge(e),{trailing:E}),parenthesis:t})},{name:"parenthesis",symbols:[{literal:"("},"expressions_or_clauses",{literal:")"}],postprocess:([e,E,t])=>({type:"parenthesis",children:E,openParen:"(",closeParen:")"})},{name:"curly_braces$ebnf$1",symbols:[]},{name:"curly_braces$ebnf$1",symbols:["curly_braces$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"curly_braces",symbols:[{literal:"{"},"curly_braces$ebnf$1",{literal:"}"}],postprocess:([e,E,t])=>({type:"parenthesis",children:E,openParen:"{",closeParen:"}"})},{name:"square_brackets$ebnf$1",symbols:[]},{name:"square_brackets$ebnf$1",symbols:["square_brackets$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"square_brackets",symbols:[{literal:"["},"square_brackets$ebnf$1",{literal:"]"}],postprocess:([e,E,t])=>({type:"parenthesis",children:E,openParen:"[",closeParen:"]"})},{name:"property_access$subexpression$1",symbols:["identifier"]},{name:"property_access$subexpression$1",symbols:["array_subscript"]},{name:"property_access$subexpression$1",symbols:["all_columns_asterisk"]},{name:"property_access$subexpression$1",symbols:["parameter"]},{name:"property_access",symbols:["atomic_expression","_",j.has("DOT")?{type:"DOT"}:DOT,"_","property_access$subexpression$1"],postprocess:([e,E,t,T,[r]])=>({type:"property_access",object:ge(e,{trailing:E}),property:ge(r,{leading:T})})},{name:"between_predicate",symbols:[j.has("BETWEEN")?{type:"BETWEEN"}:BETWEEN,"_","andless_expression_chain","_",j.has("AND")?{type:"AND"}:AND,"_","andless_expression"],postprocess:([e,E,t,T,r,s,n])=>({type:"between_predicate",betweenKw:Ge(e),expr1:y_(t,{leading:E,trailing:T}),andKw:Ge(r),expr2:[ge(n,{leading:s})]})},{name:"case_expression$ebnf$1",symbols:["expression_chain_"],postprocess:er},{name:"case_expression$ebnf$1",symbols:[],postprocess:()=>null},{name:"case_expression$ebnf$2",symbols:[]},{name:"case_expression$ebnf$2",symbols:["case_expression$ebnf$2","case_clause"],postprocess:e=>e[0].concat([e[1]])},{name:"case_expression",symbols:[j.has("CASE")?{type:"CASE"}:CASE,"_","case_expression$ebnf$1","case_expression$ebnf$2",j.has("END")?{type:"END"}:END],postprocess:([e,E,t,T,r])=>({type:"case_expression",caseKw:ge(Ge(e),{trailing:E}),endKw:Ge(r),expr:t||[],clauses:T})},{name:"case_clause",symbols:[j.has("WHEN")?{type:"WHEN"}:WHEN,"_","expression_chain_",j.has("THEN")?{type:"THEN"}:THEN,"_","expression_chain_"],postprocess:([e,E,t,T,r,s])=>({type:"case_when",whenKw:ge(Ge(e),{trailing:E}),thenKw:ge(Ge(T),{trailing:r}),condition:t,result:s})},{name:"case_clause",symbols:[j.has("ELSE")?{type:"ELSE"}:ELSE,"_","expression_chain_"],postprocess:([e,E,t])=>({type:"case_else",elseKw:ge(Ge(e),{trailing:E}),result:t})},{name:"comma$subexpression$1",symbols:[j.has("COMMA")?{type:"COMMA"}:COMMA]},{name:"comma",symbols:["comma$subexpression$1"],postprocess:([[e]])=>({type:"comma"})},{name:"asterisk$subexpression$1",symbols:[j.has("ASTERISK")?{type:"ASTERISK"}:ASTERISK]},{name:"asterisk",symbols:["asterisk$subexpression$1"],postprocess:([[e]])=>({type:"operator",text:e.text})},{name:"operator$subexpression$1",symbols:[j.has("OPERATOR")?{type:"OPERATOR"}:OPERATOR]},{name:"operator",symbols:["operator$subexpression$1"],postprocess:([[e]])=>({type:"operator",text:e.text})},{name:"identifier$subexpression$1",symbols:[j.has("IDENTIFIER")?{type:"IDENTIFIER"}:IDENTIFIER]},{name:"identifier$subexpression$1",symbols:[j.has("QUOTED_IDENTIFIER")?{type:"QUOTED_IDENTIFIER"}:QUOTED_IDENTIFIER]},{name:"identifier$subexpression$1",symbols:[j.has("VARIABLE")?{type:"VARIABLE"}:VARIABLE]},{name:"identifier",symbols:["identifier$subexpression$1"],postprocess:([[e]])=>({type:"identifier",quoted:e.type!=="IDENTIFIER",text:e.text})},{name:"parameter$subexpression$1",symbols:[j.has("NAMED_PARAMETER")?{type:"NAMED_PARAMETER"}:NAMED_PARAMETER]},{name:"parameter$subexpression$1",symbols:[j.has("QUOTED_PARAMETER")?{type:"QUOTED_PARAMETER"}:QUOTED_PARAMETER]},{name:"parameter$subexpression$1",symbols:[j.has("NUMBERED_PARAMETER")?{type:"NUMBERED_PARAMETER"}:NUMBERED_PARAMETER]},{name:"parameter$subexpression$1",symbols:[j.has("POSITIONAL_PARAMETER")?{type:"POSITIONAL_PARAMETER"}:POSITIONAL_PARAMETER]},{name:"parameter$subexpression$1",symbols:[j.has("CUSTOM_PARAMETER")?{type:"CUSTOM_PARAMETER"}:CUSTOM_PARAMETER]},{name:"parameter",symbols:["parameter$subexpression$1"],postprocess:([[e]])=>({type:"parameter",key:e.key,text:e.text})},{name:"literal$subexpression$1",symbols:[j.has("NUMBER")?{type:"NUMBER"}:NUMBER]},{name:"literal$subexpression$1",symbols:[j.has("STRING")?{type:"STRING"}:STRING]},{name:"literal",symbols:["literal$subexpression$1"],postprocess:([[e]])=>({type:"literal",text:e.text})},{name:"keyword$subexpression$1",symbols:[j.has("RESERVED_KEYWORD")?{type:"RESERVED_KEYWORD"}:RESERVED_KEYWORD]},{name:"keyword$subexpression$1",symbols:[j.has("RESERVED_PHRASE")?{type:"RESERVED_PHRASE"}:RESERVED_PHRASE]},{name:"keyword$subexpression$1",symbols:[j.has("RESERVED_JOIN")?{type:"RESERVED_JOIN"}:RESERVED_JOIN]},{name:"keyword",symbols:["keyword$subexpression$1"],postprocess:([[e]])=>Ge(e)},{name:"data_type$subexpression$1",symbols:[j.has("RESERVED_DATA_TYPE")?{type:"RESERVED_DATA_TYPE"}:RESERVED_DATA_TYPE]},{name:"data_type",symbols:["data_type$subexpression$1"],postprocess:([[e]])=>gn(e)},{name:"data_type",symbols:[j.has("RESERVED_PARAMETERIZED_DATA_TYPE")?{type:"RESERVED_PARAMETERIZED_DATA_TYPE"}:RESERVED_PARAMETERIZED_DATA_TYPE,"_","parenthesis"],postprocess:([e,E,t])=>({type:"parameterized_data_type",dataType:ge(gn(e),{trailing:E}),parenthesis:t})},{name:"logic_operator$subexpression$1",symbols:[j.has("AND")?{type:"AND"}:AND]},{name:"logic_operator$subexpression$1",symbols:[j.has("OR")?{type:"OR"}:OR]},{name:"logic_operator$subexpression$1",symbols:[j.has("XOR")?{type:"XOR"}:XOR]},{name:"logic_operator",symbols:["logic_operator$subexpression$1"],postprocess:([[e]])=>Ge(e)},{name:"other_keyword$subexpression$1",symbols:[j.has("WHEN")?{type:"WHEN"}:WHEN]},{name:"other_keyword$subexpression$1",symbols:[j.has("THEN")?{type:"THEN"}:THEN]},{name:"other_keyword$subexpression$1",symbols:[j.has("ELSE")?{type:"ELSE"}:ELSE]},{name:"other_keyword$subexpression$1",symbols:[j.has("END")?{type:"END"}:END]},{name:"other_keyword",symbols:["other_keyword$subexpression$1"],postprocess:([[e]])=>Ge(e)},{name:"_$ebnf$1",symbols:[]},{name:"_$ebnf$1",symbols:["_$ebnf$1","comment"],postprocess:e=>e[0].concat([e[1]])},{name:"_",symbols:["_$ebnf$1"],postprocess:([e])=>e},{name:"comment",symbols:[j.has("LINE_COMMENT")?{type:"LINE_COMMENT"}:LINE_COMMENT],postprocess:([e])=>({type:"line_comment",text:e.text,precedingWhitespace:e.precedingWhitespace})},{name:"comment",symbols:[j.has("BLOCK_COMMENT")?{type:"BLOCK_COMMENT"}:BLOCK_COMMENT],postprocess:([e])=>({type:"block_comment",text:e.text,precedingWhitespace:e.precedingWhitespace})}],ParserStart:"main"},B_=b_,{Parser:F_,Grammar:v_}=qa;function Y_(e){let E={};const t=new zo(r=>[...d_(e.tokenize(r,E)),Xo(r.length)]),T=new F_(v_.fromCompiled(B_),{lexer:t});return{parse:(r,s)=>{E=s;const{results:n}=T.feed(r);if(n.length===1)return n[0];throw n.length===0?new Error("Parse error: Invalid SQL"):new Error(`Parse error: Ambiguous grammar
|
22
|
-
${JSON.stringify(n,void 0,2)}`)}}}var
|
23
|
-
`;case 6:return this.indentation.getSingleIndent();default:return e}}},V_=e=>e===0||e===6,x_=e=>e===0||e===6||e===3;function mn(e,E){if(E==="standard")return e;let t=[];return e.length>=10&&e.includes(" ")&&([e,...t]=e.split(" ")),E==="tabularLeft"?e=e.padEnd(9," "):e=e.padStart(9," "),e+["",...t].join(" ")}function Hn(e){return AI(e)||e==="RESERVED_CLAUSE"||e==="RESERVED_SELECT"||e==="RESERVED_SET_OPERATION"||e==="RESERVED_JOIN"||e==="LIMIT"}var Er="top-level",w_="block-level",EA=class{constructor(e){this.indent=e,this.indentTypes=[]}getSingleIndent(){return this.indent}getLevel(){return this.indentTypes.length}increaseTopLevel(){this.indentTypes.push(Er)}increaseBlockLevel(){this.indentTypes.push(w_)}decreaseTopLevel(){this.indentTypes.length>0&&bt(this.indentTypes)===Er&&this.indentTypes.pop()}decreaseBlockLevel(){for(;this.indentTypes.length>0&&this.indentTypes.pop()===Er;);}},W_=class extends eA{constructor(e){super(new EA("")),this.expressionWidth=e,this.length=0,this.trailingSpace=!1}add(...e){if(e.forEach(E=>this.addToLength(E)),this.length>this.expressionWidth)throw new Lr;super.add(...e)}addToLength(e){if(typeof e=="string")this.length+=e.length,this.trailingSpace=!1;else{if(e===4||e===3)throw new Lr;e===5||e===6||e===0?this.trailingSpace||(this.length++,this.trailingSpace=!0):(e===2||e===1)&&this.trailingSpace&&(this.trailingSpace=!1,this.length--)}}},Lr=class extends Error{},X_=class ur{constructor({cfg:E,dialectCfg:t,params:T,layout:r,inline:s=!1}){this.inline=!1,this.nodes=[],this.index=-1,this.cfg=E,this.dialectCfg=t,this.inline=s,this.params=T,this.layout=r}format(E){for(this.nodes=E,this.index=0;this.index<this.nodes.length;this.index++)this.formatNode(this.nodes[this.index]);return this.layout}formatNode(E){this.formatComments(E.leadingComments),this.formatNodeWithoutComments(E),this.formatComments(E.trailingComments)}formatNodeWithoutComments(E){switch(E.type){case"function_call":return this.formatFunctionCall(E);case"parameterized_data_type":return this.formatParameterizedDataType(E);case"array_subscript":return this.formatArraySubscript(E);case"property_access":return this.formatPropertyAccess(E);case"parenthesis":return this.formatParenthesis(E);case"between_predicate":return this.formatBetweenPredicate(E);case"case_expression":return this.formatCaseExpression(E);case"case_when":return this.formatCaseWhen(E);case"case_else":return this.formatCaseElse(E);case"clause":return this.formatClause(E);case"set_operation":return this.formatSetOperation(E);case"limit_clause":return this.formatLimitClause(E);case"all_columns_asterisk":return this.formatAllColumnsAsterisk(E);case"literal":return this.formatLiteral(E);case"identifier":return this.formatIdentifier(E);case"parameter":return this.formatParameter(E);case"operator":return this.formatOperator(E);case"comma":return this.formatComma(E);case"line_comment":return this.formatLineComment(E);case"block_comment":return this.formatBlockComment(E);case"data_type":return this.formatDataType(E);case"keyword":return this.formatKeywordNode(E)}}formatFunctionCall(E){this.withComments(E.nameKw,()=>{this.layout.add(this.showFunctionKw(E.nameKw))}),this.formatNode(E.parenthesis)}formatParameterizedDataType(E){this.withComments(E.dataType,()=>{this.layout.add(this.showDataType(E.dataType))}),this.formatNode(E.parenthesis)}formatArraySubscript(E){let t;switch(E.array.type){case"data_type":t=this.showDataType(E.array);break;case"keyword":t=this.showKw(E.array);break;default:t=this.showIdentifier(E.array);break}this.withComments(E.array,()=>{this.layout.add(t)}),this.formatNode(E.parenthesis)}formatPropertyAccess(E){this.formatNode(E.object),this.layout.add(1,"."),this.formatNode(E.property)}formatParenthesis(E){const t=this.formatInlineExpression(E.children);t?(this.layout.add(E.openParen),this.layout.add(...t.getLayoutItems()),this.layout.add(1,E.closeParen,0)):(this.layout.add(E.openParen,3),ft(this.cfg)?(this.layout.add(5),this.layout=this.formatSubExpression(E.children)):(this.layout.indentation.increaseBlockLevel(),this.layout.add(5),this.layout=this.formatSubExpression(E.children),this.layout.indentation.decreaseBlockLevel()),this.layout.add(3,5,E.closeParen,0))}formatBetweenPredicate(E){this.layout.add(this.showKw(E.betweenKw),0),this.layout=this.formatSubExpression(E.expr1),this.layout.add(1,0,this.showNonTabularKw(E.andKw),0),this.layout=this.formatSubExpression(E.expr2),this.layout.add(0)}formatCaseExpression(E){this.formatNode(E.caseKw),this.layout.indentation.increaseBlockLevel(),this.layout=this.formatSubExpression(E.expr),this.layout=this.formatSubExpression(E.clauses),this.layout.indentation.decreaseBlockLevel(),this.layout.add(3,5),this.formatNode(E.endKw)}formatCaseWhen(E){this.layout.add(3,5),this.formatNode(E.whenKw),this.layout=this.formatSubExpression(E.condition),this.formatNode(E.thenKw),this.layout=this.formatSubExpression(E.result)}formatCaseElse(E){this.layout.add(3,5),this.formatNode(E.elseKw),this.layout=this.formatSubExpression(E.result)}formatClause(E){this.isOnelineClause(E)?this.formatClauseInOnelineStyle(E):ft(this.cfg)?this.formatClauseInTabularStyle(E):this.formatClauseInIndentedStyle(E)}isOnelineClause(E){return this.dialectCfg.onelineClauses[E.nameKw.text]}formatClauseInIndentedStyle(E){this.layout.add(3,5,this.showKw(E.nameKw),3),this.layout.indentation.increaseTopLevel(),this.layout.add(5),this.layout=this.formatSubExpression(E.children),this.layout.indentation.decreaseTopLevel()}formatClauseInOnelineStyle(E){this.layout.add(3,5,this.showKw(E.nameKw),0),this.layout=this.formatSubExpression(E.children)}formatClauseInTabularStyle(E){this.layout.add(3,5,this.showKw(E.nameKw),0),this.layout.indentation.increaseTopLevel(),this.layout=this.formatSubExpression(E.children),this.layout.indentation.decreaseTopLevel()}formatSetOperation(E){this.layout.add(3,5,this.showKw(E.nameKw),3),this.layout.add(5),this.layout=this.formatSubExpression(E.children)}formatLimitClause(E){this.withComments(E.limitKw,()=>{this.layout.add(3,5,this.showKw(E.limitKw))}),this.layout.indentation.increaseTopLevel(),ft(this.cfg)?this.layout.add(0):this.layout.add(3,5),E.offset?(this.layout=this.formatSubExpression(E.offset),this.layout.add(1,",",0),this.layout=this.formatSubExpression(E.count)):this.layout=this.formatSubExpression(E.count),this.layout.indentation.decreaseTopLevel()}formatAllColumnsAsterisk(E){this.layout.add("*",0)}formatLiteral(E){this.layout.add(E.text,0)}formatIdentifier(E){this.layout.add(this.showIdentifier(E),0)}formatParameter(E){this.layout.add(this.params.get(E),0)}formatOperator({text:E}){this.cfg.denseOperators||this.dialectCfg.alwaysDenseOperators.includes(E)?this.layout.add(1,E):E===":"?this.layout.add(1,E,0):this.layout.add(E,0)}formatComma(E){this.inline?this.layout.add(1,",",0):this.layout.add(1,",",3,5)}withComments(E,t){this.formatComments(E.leadingComments),t(),this.formatComments(E.trailingComments)}formatComments(E){E&&E.forEach(t=>{t.type==="line_comment"?this.formatLineComment(t):this.formatBlockComment(t)})}formatLineComment(E){ZT(E.precedingWhitespace||"")?this.layout.add(3,5,E.text,4,5):this.layout.getLayoutItems().length>0?this.layout.add(2,0,E.text,4,5):this.layout.add(E.text,4,5)}formatBlockComment(E){this.isMultilineBlockComment(E)?(this.splitBlockComment(E.text).forEach(t=>{this.layout.add(3,5,t)}),this.layout.add(3,5)):this.layout.add(E.text,0)}isMultilineBlockComment(E){return ZT(E.text)||ZT(E.precedingWhitespace||"")}isDocComment(E){const t=E.split(/\n/);return/^\/\*\*?$/.test(t[0])&&t.slice(1,t.length-1).every(T=>/^\s*\*/.test(T))&&/^\s*\*\/$/.test(bt(t))}splitBlockComment(E){return this.isDocComment(E)?E.split(/\n/).map(t=>/^\s*\*/.test(t)?" "+t.replace(/^\s*/,""):t):E.split(/\n/).map(t=>t.replace(/^\s*/,""))}formatSubExpression(E){return new ur({cfg:this.cfg,dialectCfg:this.dialectCfg,params:this.params,layout:this.layout,inline:this.inline}).format(E)}formatInlineExpression(E){const t=this.params.getPositionalParameterIndex();try{return new ur({cfg:this.cfg,dialectCfg:this.dialectCfg,params:this.params,layout:new W_(this.cfg.expressionWidth),inline:!0}).format(E)}catch(T){if(T instanceof Lr){this.params.setPositionalParameterIndex(t);return}else throw T}}formatKeywordNode(E){switch(E.tokenType){case"RESERVED_JOIN":return this.formatJoin(E);case"AND":case"OR":case"XOR":return this.formatLogicalOperator(E);default:return this.formatKeyword(E)}}formatJoin(E){ft(this.cfg)?(this.layout.indentation.decreaseTopLevel(),this.layout.add(3,5,this.showKw(E),0),this.layout.indentation.increaseTopLevel()):this.layout.add(3,5,this.showKw(E),0)}formatKeyword(E){this.layout.add(this.showKw(E),0)}formatLogicalOperator(E){this.cfg.logicalOperatorNewline==="before"?ft(this.cfg)?(this.layout.indentation.decreaseTopLevel(),this.layout.add(3,5,this.showKw(E),0),this.layout.indentation.increaseTopLevel()):this.layout.add(3,5,this.showKw(E),0):this.layout.add(this.showKw(E),3,5)}formatDataType(E){this.layout.add(this.showDataType(E),0)}showKw(E){return Hn(E.tokenType)?mn(this.showNonTabularKw(E),this.cfg.indentStyle):this.showNonTabularKw(E)}showNonTabularKw(E){switch(this.cfg.keywordCase){case"preserve":return oT(E.raw);case"upper":return E.text;case"lower":return E.text.toLowerCase()}}showFunctionKw(E){return Hn(E.tokenType)?mn(this.showNonTabularFunctionKw(E),this.cfg.indentStyle):this.showNonTabularFunctionKw(E)}showNonTabularFunctionKw(E){switch(this.cfg.functionCase){case"preserve":return oT(E.raw);case"upper":return E.text;case"lower":return E.text.toLowerCase()}}showIdentifier(E){if(E.quoted)return E.text;switch(this.cfg.identifierCase){case"preserve":return E.text;case"upper":return E.text.toUpperCase();case"lower":return E.text.toLowerCase()}}showDataType(E){switch(this.cfg.dataTypeCase){case"preserve":return oT(E.raw);case"upper":return E.text;case"lower":return E.text.toLowerCase()}}},$_=class{constructor(e,E){this.dialect=e,this.cfg=E,this.params=new D_(this.cfg.params)}format(e){const E=this.parse(e);return this.formatAst(E).trimEnd()}parse(e){return Y_(this.dialect.tokenizer).parse(e,this.cfg.paramTypes||{})}formatAst(e){return e.map(E=>this.formatStatement(E)).join(`
|
24
|
-
`.repeat(this.cfg.linesBetweenQueries+1))}formatStatement(e){const E=new X_({cfg:this.cfg,dialectCfg:this.dialect.formatOptions,params:this.params,layout:new eA(new EA(P_(this.cfg)))}).format(e.children);return e.hasSemicolon&&(this.cfg.newlineBeforeSemicolon?E.add(3,";"):E.add(2,";")),E.toString()}},pr=class extends Error{};function K_(e){const E=["multilineLists","newlineBeforeOpenParen","newlineBeforeCloseParen","aliasAs","commaPosition","tabulateAlias"];for(const t of E)if(t in e)throw new pr(`${t} config is no more supported.`);if(e.expressionWidth<=0)throw new pr(`expressionWidth config must be positive number. Received ${e.expressionWidth} instead.`);return e.params&&!J_(e.params)&&console.warn('WARNING: All "params" option values should be strings.'),e}function J_(e){return(e instanceof Array?e:Object.values(e)).every(t=>typeof t=="string")}var tA={bigquery:"bigquery",db2:"db2",db2i:"db2i",hive:"hive",mariadb:"mariadb",mysql:"mysql",n1ql:"n1ql",plsql:"plsql",postgresql:"postgresql",redshift:"redshift",spark:"spark",sqlite:"sqlite",sql:"sql",trino:"trino",transactsql:"transactsql",tsql:"transactsql",singlestoredb:"singlestoredb",snowflake:"snowflake"},k_=Object.keys(tA),j_={tabWidth:2,useTabs:!1,keywordCase:"preserve",identifierCase:"preserve",dataTypeCase:"preserve",functionCase:"preserve",indentStyle:"standard",logicalOperatorNewline:"before",expressionWidth:50,linesBetweenQueries:1,denseOperators:!1,newlineBeforeSemicolon:!1},q_=(e,E={})=>{if(typeof E.language=="string"&&!k_.includes(E.language))throw new pr(`Unsupported SQL dialect: ${E.language}`);const t=tA[E.language||"sql"];return Q_(e,Ve(ye({},E),{dialect:wo[t]}))},Q_=(e,E)=>{var t=E,{dialect:T}=t,r=za(t,["dialect"]);if(typeof e!="string")throw new Error("Invalid query argument. Expected string, instead got "+typeof e);const s=K_(ye(ye({},j_),r));return new $_(u_(T),s).format(e)};const Z_={class:"flex items-center space-x-3"},z_={class:"font-bold text-lg"},eC={key:0,class:"px-1 py-0.5 rounded text-xs bg-sky-600 text-white"},EC={key:1,class:"px-1 py-0.5 rounded text-xs bg-emerald-600 text-white"},tC={key:2},TC=["textContent"],rC={key:0,class:"mt-4 ml-4"},sC={class:""},nC={class:"mt-3 text-stone-400 text-sm"},RC=["textContent"],oC=["textContent"],AC=Me({__name:"QueryItem",props:{query:{}},setup(e){const E=e,t=dE({isOpen:!0,isFormatted:!1});function T(r){const s="text/plain",n=new Blob([r],{type:s}),R=[new ClipboardItem({[s]:n})];navigator.clipboard.write(R)}return(r,s)=>{const n=$t("highlightjs");return h(),Y("div",null,[O("div",Z_,[O("button",{class:"flex items-center space-x-1",onClick:s[0]||(s[0]=R=>t.isOpen=!t.isOpen)},[X(ne(Bo),{class:$e(["size-4",{"-rotate-90":!t.isOpen}])},null,8,["class"]),O("span",z_,Re(r.query.name),1)]),E.query.cached?(h(),Y("span",eC,"cached")):oe("",!0),E.query.async?(h(),Y("span",EC,"async")):oe("",!0),t.isOpen?(h(),Y("div",tC,[O("span",{onClick:s[1]||(s[1]=R=>t.isFormatted=!t.isFormatted),class:"px-3 text-xs uppercase text-stone-400 cursor-pointer",title:"Format SQL query",textContent:Re(t.isFormatted?"unformat":"format")},null,8,TC),O("span",{onClick:s[2]||(s[2]=R=>T(r.query.sql)),class:"px-3 text-xs uppercase text-stone-400 cursor-pointer",title:"Copy SQL query to clipboard"},"copy")])):oe("",!0)]),t.isOpen?(h(),Y("div",rC,[O("div",sC,[X(n,{language:"sql",code:t.isFormatted?ne(q_)(r.query.sql):r.query.sql},null,8,["code"])]),O("div",nC,[O("div",{textContent:Re(r.query.source[0])},null,8,RC),r.query.source.length>1?(h(!0),Y(Le,{key:0},Je(r.query.source.slice(1),R=>(h(),Y("div",{class:"pl-4",textContent:Re("↳ "+R)},null,8,oC))),256)):oe("",!0)])])):oe("",!0)])}}}),iC={class:"flex flex-col space-y-8"},SC=Me({__name:"QueriesPanel",props:{currentRequest:{}},setup(e){const E=e;return(t,T)=>(h(),fe(OE,null,{default:ie(()=>[O("div",iC,[(h(!0),Y(Le,null,Je(E.currentRequest.queries,r=>(h(),fe(AC,{key:r.id,query:r},null,8,["query"]))),128))])]),_:1}))}}),OC={key:0},aC=O("div",{class:"text-gray-500"},"No jobs enqueued.",-1),IC=[aC],NC={key:1,class:"my-4 mx-6 divide-y divide-stone-300"},lC=O("thead",null,[O("tr",null,[O("th",{scope:"col",class:"w-36 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-stone-900 sm:pl-0"},"Job"),O("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-stone-900"},"Args"),O("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-stone-900"},"Logs")])],-1),_C={class:"divide-y divide-stone-200"},CC={class:"whitespace-nowrap p-4 pr-8 text-stone-900"},cC=["textContent"],LC={class:"text-stone-600 text-sm"},uC=["textContent"],pC=["textContent"],fC={class:"whitespace-nowrap px-3 p-4 pr-8 text-sm"},PC={class:"whitespace-nowrap px-3 p-4 pr-8 text-sm text-stone-500"},DC=["innerHTML"],dC=Me({__name:"JobsPanel",props:{jobs:{}},setup(e){const E=e;function t(T){return T==null?"-":new Date(T*1e3).toLocaleString()}return(T,r)=>{const s=$t("highlightjs");return h(),fe(OE,null,{default:ie(()=>[E.jobs.length==0?(h(),Y("div",OC,IC)):oe("",!0),E.jobs.length>0?(h(),Y("table",NC,[lC,O("tbody",_C,[(h(!0),Y(Le,null,Je(E.jobs,(n,R)=>(h(),Y("tr",{key:n.id},[O("td",CC,[O("div",{class:"text-lg font-bold",textContent:Re(n.class)},null,8,cC),O("div",LC,[O("div",{textContent:Re("Queue: "+n.queue)},null,8,uC),O("div",{textContent:Re("At: "+t(n.scheduled_at))},null,8,pC)])]),O("td",fC,[X(s,{language:"json",code:JSON.stringify(n.args,null,2)},null,8,["code"])]),O("td",PC,[(h(!0),Y(Le,null,Je(n.logs,(A,o)=>(h(),Y("div",{innerHTML:(o>0?" ".repeat(o)+"↳ ":"")+A,class:""},null,8,DC))),256))])]))),128))])])):oe("",!0)]),_:1})}}}),MC={key:0},UC=O("div",{class:"text-gray-500"},"No logs to show. Are you using the correct minimum level in your config?",-1),hC=[UC],GC={class:"flex items-center space-y-1 space-x-3"},gC={class:"w-32 text-right text-gray-400"},mC={class:"w-20 text-center"},HC=["title"],yC=["innerHTML"],bC=Me({__name:"LogsPanel",props:{logs:{}},setup(e){const E=e;function t(T){return(T.progname||T.message||"").replace(" "," ")}return(T,r)=>(h(),fe(OE,null,{default:ie(()=>[E.logs.length==0?(h(),Y("div",MC,hC)):oe("",!0),(h(!0),Y(Le,null,Je(E.logs,s=>(h(),Y("div",GC,[O("div",gC,Re(s.time),1),O("div",mC,[O("span",{class:$e(["px-1 py-0.5 rounded text-white text-xs font-mono font-medium",{"bg-stone-400":s.severity==0,"bg-blue-500":s.severity==1,"bg-amber-400":s.severity==2,"bg-red-400":s.severity==2,"bg-fuchsia-500":s.severity>=3}]),title:s.severity_label},Re(s.severity_label),11,HC)]),O("div",{class:"text-gray-800",innerHTML:t(s)},null,8,yC)]))),256))]),_:1}))}}),BC={class:"flex flex-col space-y-8"},FC={class:"space-y-3"},vC=["textContent"],YC={class:"ml-4"},VC={key:0},xC=Me({__name:"MessagesPanel",props:{messages:{}},setup(e){const E=e;return(t,T)=>{const r=$t("highlightjs");return h(),fe(OE,null,{default:ie(()=>[O("div",BC,[(h(!0),Y(Le,null,Je(E.messages,(s,n)=>(h(),Y("div",FC,[O("div",{class:"font-bold text-lg",textContent:Re(s.msg)},null,8,vC),O("div",YC,[s.extra?oe("",!0):(h(),Y("div",VC,"–")),s.extra?(h(),fe(r,{key:1,language:"json",code:JSON.stringify(s.extra)},null,8,["code"])):oe("",!0)])]))),256))])]),_:1})}}});class wC{constructor(E){je(this,"id");je(this,"meta");je(this,"request");je(this,"response");je(this,"models");je(this,"queries");je(this,"jobs");je(this,"messages");je(this,"cache");je(this,"logs");this.id=(E==null?void 0:E.id)||"null",this.meta=(E==null?void 0:E.meta)||{},this.request=(E==null?void 0:E.request)||{},this.response=(E==null?void 0:E.response)||{},this.models=(E==null?void 0:E.models)||{},this.queries=(E==null?void 0:E.queries)||[],this.jobs=(E==null?void 0:E.jobs)||[],this.messages=(E==null?void 0:E.messages)||[],this.cache=(E==null?void 0:E.cache)||[],this.logs=(E==null?void 0:E.logs)||[]}get modelsCount(){return Object.values(this.models).reduce((E,t)=>E+t,0)}get queryCount(){return this.queries.length}get jobsCount(){return this.jobs.length}get messagesCount(){return this.messages.length}get cacheCount(){return this.cache.reduce((E,t)=>(E.indexOf(t.transaction_id)===-1&&E.push(t.transaction_id),E),[]).length}get pathWithVerb(){return`${this.meta.method.toUpperCase()} ${this.meta.path}`}get dataForTabs(){const E={messages:{label:"Debug",count:this.messagesCount},models:{label:"Models",count:this.modelsCount},queries:{label:"Queries",count:this.queryCount},jobs:{label:"Jobs",count:this.jobsCount},cache:{label:"Cache",count:this.cacheCount}};return this.logs.length>0&&(E.logs={label:"Logs"}),E}}let WC=yo("requests",{state:()=>({requests:[],currentRequest:null}),actions:{addRequests(e){const E=[];return e.forEach(t=>{this.requests.find(T=>T.id===t.id)||this.requests.push(new wC(t)),E.push(t.id)}),E},setCurrentRequestById(e){this.currentRequest=this.requests.find(E=>E.id===e)},clearRequests(){this.requests=[],this.currentRequest=null}}});function XC(e,E,t){switch(t.length){case 0:return e.call(E);case 1:return e.call(E,t[0]);case 2:return e.call(E,t[0],t[1]);case 3:return e.call(E,t[0],t[1],t[2])}return e.apply(E,t)}var TA=XC;function $C(e){return e}var rA=$C,KC=TA,yn=Math.max;function JC(e,E,t){return E=yn(E===void 0?e.length-1:E,0),function(){for(var T=arguments,r=-1,s=yn(T.length-E,0),n=Array(s);++r<s;)n[r]=T[E+r];r=-1;for(var R=Array(E+1);++r<E;)R[r]=T[r];return R[E]=t(n),KC(e,this,R)}}var sA=JC;function kC(e){return function(){return e}}var jC=kC,qC=typeof qE=="object"&&qE&&qE.Object===Object&&qE,nA=qC,QC=nA,ZC=typeof self=="object"&&self&&self.Object===Object&&self,zC=QC||ZC||Function("return this")(),oE=zC,ec=oE,Ec=ec.Symbol,Jt=Ec,bn=Jt,RA=Object.prototype,tc=RA.hasOwnProperty,Tc=RA.toString,Pt=bn?bn.toStringTag:void 0;function rc(e){var E=tc.call(e,Pt),t=e[Pt];try{e[Pt]=void 0;var T=!0}catch{}var r=Tc.call(e);return T&&(E?e[Pt]=t:delete e[Pt]),r}var sc=rc,nc=Object.prototype,Rc=nc.toString;function oc(e){return Rc.call(e)}var Ac=oc,Bn=Jt,ic=sc,Sc=Ac,Oc="[object Null]",ac="[object Undefined]",Fn=Bn?Bn.toStringTag:void 0;function Ic(e){return e==null?e===void 0?ac:Oc:Fn&&Fn in Object(e)?ic(e):Sc(e)}var Ot=Ic;function Nc(e){var E=typeof e;return e!=null&&(E=="object"||E=="function")}var IE=Nc,lc=Ot,_c=IE,Cc="[object AsyncFunction]",cc="[object Function]",Lc="[object GeneratorFunction]",uc="[object Proxy]";function pc(e){if(!_c(e))return!1;var E=lc(e);return E==cc||E==Lc||E==Cc||E==uc}var zr=pc,fc=oE,Pc=fc["__core-js_shared__"],Dc=Pc,tr=Dc,vn=function(){var e=/[^.]+$/.exec(tr&&tr.keys&&tr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function dc(e){return!!vn&&vn in e}var Mc=dc,Uc=Function.prototype,hc=Uc.toString;function Gc(e){if(e!=null){try{return hc.call(e)}catch{}try{return e+""}catch{}}return""}var oA=Gc,gc=zr,mc=Mc,Hc=IE,yc=oA,bc=/[\\^$.*+?()[\]{}|]/g,Bc=/^\[object .+?Constructor\]$/,Fc=Function.prototype,vc=Object.prototype,Yc=Fc.toString,Vc=vc.hasOwnProperty,xc=RegExp("^"+Yc.call(Vc).replace(bc,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function wc(e){if(!Hc(e)||mc(e))return!1;var E=gc(e)?xc:Bc;return E.test(yc(e))}var Wc=wc;function Xc(e,E){return e==null?void 0:e[E]}var $c=Xc,Kc=Wc,Jc=$c;function kc(e,E){var t=Jc(e,E);return Kc(t)?t:void 0}var XE=kc,jc=XE,qc=function(){try{var e=jc(Object,"defineProperty");return e({},"",{}),e}catch{}}(),AA=qc,Qc=jC,Yn=AA,Zc=rA,zc=Yn?function(e,E){return Yn(e,"toString",{configurable:!0,enumerable:!1,value:Qc(E),writable:!0})}:Zc,eL=zc,EL=800,tL=16,TL=Date.now;function rL(e){var E=0,t=0;return function(){var T=TL(),r=tL-(T-t);if(t=T,r>0){if(++E>=EL)return arguments[0]}else E=0;return e.apply(void 0,arguments)}}var sL=rL,nL=eL,RL=sL,oL=RL(nL),iA=oL,AL=rA,iL=sA,SL=iA;function OL(e,E){return SL(iL(e,E,AL),e+"")}var SA=OL;function aL(){this.__data__=[],this.size=0}var IL=aL;function NL(e,E){return e===E||e!==e&&E!==E}var vT=NL,lL=vT;function _L(e,E){for(var t=e.length;t--;)if(lL(e[t][0],E))return t;return-1}var YT=_L,CL=YT,cL=Array.prototype,LL=cL.splice;function uL(e){var E=this.__data__,t=CL(E,e);if(t<0)return!1;var T=E.length-1;return t==T?E.pop():LL.call(E,t,1),--this.size,!0}var pL=uL,fL=YT;function PL(e){var E=this.__data__,t=fL(E,e);return t<0?void 0:E[t][1]}var DL=PL,dL=YT;function ML(e){return dL(this.__data__,e)>-1}var UL=ML,hL=YT;function GL(e,E){var t=this.__data__,T=hL(t,e);return T<0?(++this.size,t.push([e,E])):t[T][1]=E,this}var gL=GL,mL=IL,HL=pL,yL=DL,bL=UL,BL=gL;function at(e){var E=-1,t=e==null?0:e.length;for(this.clear();++E<t;){var T=e[E];this.set(T[0],T[1])}}at.prototype.clear=mL;at.prototype.delete=HL;at.prototype.get=yL;at.prototype.has=bL;at.prototype.set=BL;var VT=at,FL=VT;function vL(){this.__data__=new FL,this.size=0}var YL=vL;function VL(e){var E=this.__data__,t=E.delete(e);return this.size=E.size,t}var xL=VL;function wL(e){return this.__data__.get(e)}var WL=wL;function XL(e){return this.__data__.has(e)}var $L=XL,KL=XE,JL=oE,kL=KL(JL,"Map"),es=kL,jL=XE,qL=jL(Object,"create"),xT=qL,Vn=xT;function QL(){this.__data__=Vn?Vn(null):{},this.size=0}var ZL=QL;function zL(e){var E=this.has(e)&&delete this.__data__[e];return this.size-=E?1:0,E}var eu=zL,Eu=xT,tu="__lodash_hash_undefined__",Tu=Object.prototype,ru=Tu.hasOwnProperty;function su(e){var E=this.__data__;if(Eu){var t=E[e];return t===tu?void 0:t}return ru.call(E,e)?E[e]:void 0}var nu=su,Ru=xT,ou=Object.prototype,Au=ou.hasOwnProperty;function iu(e){var E=this.__data__;return Ru?E[e]!==void 0:Au.call(E,e)}var Su=iu,Ou=xT,au="__lodash_hash_undefined__";function Iu(e,E){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=Ou&&E===void 0?au:E,this}var Nu=Iu,lu=ZL,_u=eu,Cu=nu,cu=Su,Lu=Nu;function It(e){var E=-1,t=e==null?0:e.length;for(this.clear();++E<t;){var T=e[E];this.set(T[0],T[1])}}It.prototype.clear=lu;It.prototype.delete=_u;It.prototype.get=Cu;It.prototype.has=cu;It.prototype.set=Lu;var uu=It,xn=uu,pu=VT,fu=es;function Pu(){this.size=0,this.__data__={hash:new xn,map:new(fu||pu),string:new xn}}var Du=Pu;function du(e){var E=typeof e;return E=="string"||E=="number"||E=="symbol"||E=="boolean"?e!=="__proto__":e===null}var Mu=du,Uu=Mu;function hu(e,E){var t=e.__data__;return Uu(E)?t[typeof E=="string"?"string":"hash"]:t.map}var wT=hu,Gu=wT;function gu(e){var E=Gu(this,e).delete(e);return this.size-=E?1:0,E}var mu=gu,Hu=wT;function yu(e){return Hu(this,e).get(e)}var bu=yu,Bu=wT;function Fu(e){return Bu(this,e).has(e)}var vu=Fu,Yu=wT;function Vu(e,E){var t=Yu(this,e),T=t.size;return t.set(e,E),this.size+=t.size==T?0:1,this}var xu=Vu,wu=Du,Wu=mu,Xu=bu,$u=vu,Ku=xu;function Nt(e){var E=-1,t=e==null?0:e.length;for(this.clear();++E<t;){var T=e[E];this.set(T[0],T[1])}}Nt.prototype.clear=wu;Nt.prototype.delete=Wu;Nt.prototype.get=Xu;Nt.prototype.has=$u;Nt.prototype.set=Ku;var OA=Nt,Ju=VT,ku=es,ju=OA,qu=200;function Qu(e,E){var t=this.__data__;if(t instanceof Ju){var T=t.__data__;if(!ku||T.length<qu-1)return T.push([e,E]),this.size=++t.size,this;t=this.__data__=new ju(T)}return t.set(e,E),this.size=t.size,this}var Zu=Qu,zu=VT,ep=YL,Ep=xL,tp=WL,Tp=$L,rp=Zu;function lt(e){var E=this.__data__=new zu(e);this.size=E.size}lt.prototype.clear=ep;lt.prototype.delete=Ep;lt.prototype.get=tp;lt.prototype.has=Tp;lt.prototype.set=rp;var aA=lt,wn=AA;function sp(e,E,t){E=="__proto__"&&wn?wn(e,E,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[E]=t}var Es=sp,np=Es,Rp=vT;function op(e,E,t){(t!==void 0&&!Rp(e[E],t)||t===void 0&&!(E in e))&&np(e,E,t)}var IA=op;function Ap(e){return function(E,t,T){for(var r=-1,s=Object(E),n=T(E),R=n.length;R--;){var A=n[e?R:++r];if(t(s[A],A,s)===!1)break}return E}}var ip=Ap,Sp=ip,Op=Sp(),ap=Op,LT={exports:{}};LT.exports;(function(e,E){var t=oE,T=E&&!E.nodeType&&E,r=T&&!0&&e&&!e.nodeType&&e,s=r&&r.exports===T,n=s?t.Buffer:void 0,R=n?n.allocUnsafe:void 0;function A(o,i){if(i)return o.slice();var a=o.length,I=R?R(a):new o.constructor(a);return o.copy(I),I}e.exports=A})(LT,LT.exports);var NA=LT.exports,Ip=oE,Np=Ip.Uint8Array,lp=Np,Wn=lp;function _p(e){var E=new e.constructor(e.byteLength);return new Wn(E).set(new Wn(e)),E}var ts=_p,Cp=ts;function cp(e,E){var t=E?Cp(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}var lA=cp;function Lp(e,E){var t=-1,T=e.length;for(E||(E=Array(T));++t<T;)E[t]=e[t];return E}var _A=Lp,up=IE,Xn=Object.create,pp=function(){function e(){}return function(E){if(!up(E))return{};if(Xn)return Xn(E);e.prototype=E;var t=new e;return e.prototype=void 0,t}}(),fp=pp;function Pp(e,E){return function(t){return e(E(t))}}var CA=Pp,Dp=CA,dp=Dp(Object.getPrototypeOf,Object),Ts=dp,Mp=Object.prototype;function Up(e){var E=e&&e.constructor,t=typeof E=="function"&&E.prototype||Mp;return e===t}var rs=Up,hp=fp,Gp=Ts,gp=rs;function mp(e){return typeof e.constructor=="function"&&!gp(e)?hp(Gp(e)):{}}var cA=mp;function Hp(e){return e!=null&&typeof e=="object"}var ME=Hp,yp=Ot,bp=ME,Bp="[object Arguments]";function Fp(e){return bp(e)&&yp(e)==Bp}var vp=Fp,$n=vp,Yp=ME,LA=Object.prototype,Vp=LA.hasOwnProperty,xp=LA.propertyIsEnumerable,wp=$n(function(){return arguments}())?$n:function(e){return Yp(e)&&Vp.call(e,"callee")&&!xp.call(e,"callee")},ss=wp,Wp=Array.isArray,UE=Wp,Xp=9007199254740991;function $p(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Xp}var uA=$p,Kp=zr,Jp=uA;function kp(e){return e!=null&&Jp(e.length)&&!Kp(e)}var WT=kp,jp=WT,qp=ME;function Qp(e){return qp(e)&&jp(e)}var Zp=Qp,uT={exports:{}};function zp(){return!1}var ef=zp;uT.exports;(function(e,E){var t=oE,T=ef,r=E&&!E.nodeType&&E,s=r&&!0&&e&&!e.nodeType&&e,n=s&&s.exports===r,R=n?t.Buffer:void 0,A=R?R.isBuffer:void 0,o=A||T;e.exports=o})(uT,uT.exports);var ns=uT.exports,Ef=Ot,tf=Ts,Tf=ME,rf="[object Object]",sf=Function.prototype,nf=Object.prototype,pA=sf.toString,Rf=nf.hasOwnProperty,of=pA.call(Object);function Af(e){if(!Tf(e)||Ef(e)!=rf)return!1;var E=tf(e);if(E===null)return!0;var t=Rf.call(E,"constructor")&&E.constructor;return typeof t=="function"&&t instanceof t&&pA.call(t)==of}var fA=Af,Sf=Ot,Of=uA,af=ME,If="[object Arguments]",Nf="[object Array]",lf="[object Boolean]",_f="[object Date]",Cf="[object Error]",cf="[object Function]",Lf="[object Map]",uf="[object Number]",pf="[object Object]",ff="[object RegExp]",Pf="[object Set]",Df="[object String]",df="[object WeakMap]",Mf="[object ArrayBuffer]",Uf="[object DataView]",hf="[object Float32Array]",Gf="[object Float64Array]",gf="[object Int8Array]",mf="[object Int16Array]",Hf="[object Int32Array]",yf="[object Uint8Array]",bf="[object Uint8ClampedArray]",Bf="[object Uint16Array]",Ff="[object Uint32Array]",_e={};_e[hf]=_e[Gf]=_e[gf]=_e[mf]=_e[Hf]=_e[yf]=_e[bf]=_e[Bf]=_e[Ff]=!0;_e[If]=_e[Nf]=_e[Mf]=_e[lf]=_e[Uf]=_e[_f]=_e[Cf]=_e[cf]=_e[Lf]=_e[uf]=_e[pf]=_e[ff]=_e[Pf]=_e[Df]=_e[df]=!1;function vf(e){return af(e)&&Of(e.length)&&!!_e[Sf(e)]}var Yf=vf;function Vf(e){return function(E){return e(E)}}var Rs=Vf,pT={exports:{}};pT.exports;(function(e,E){var t=nA,T=E&&!E.nodeType&&E,r=T&&!0&&e&&!e.nodeType&&e,s=r&&r.exports===T,n=s&&t.process,R=function(){try{var A=r&&r.require&&r.require("util").types;return A||n&&n.binding&&n.binding("util")}catch{}}();e.exports=R})(pT,pT.exports);var os=pT.exports,xf=Yf,wf=Rs,Kn=os,Jn=Kn&&Kn.isTypedArray,Wf=Jn?wf(Jn):xf,PA=Wf;function Xf(e,E){if(!(E==="constructor"&&typeof e[E]=="function")&&E!="__proto__")return e[E]}var DA=Xf,$f=Es,Kf=vT,Jf=Object.prototype,kf=Jf.hasOwnProperty;function jf(e,E,t){var T=e[E];(!(kf.call(e,E)&&Kf(T,t))||t===void 0&&!(E in e))&&$f(e,E,t)}var dA=jf,qf=dA,Qf=Es;function Zf(e,E,t,T){var r=!t;t||(t={});for(var s=-1,n=E.length;++s<n;){var R=E[s],A=T?T(t[R],e[R],R,t,e):void 0;A===void 0&&(A=e[R]),r?Qf(t,R,A):qf(t,R,A)}return t}var _t=Zf;function zf(e,E){for(var t=-1,T=Array(e);++t<e;)T[t]=E(t);return T}var eP=zf,EP=9007199254740991,tP=/^(?:0|[1-9]\d*)$/;function TP(e,E){var t=typeof e;return E=E??EP,!!E&&(t=="number"||t!="symbol"&&tP.test(e))&&e>-1&&e%1==0&&e<E}var MA=TP,rP=eP,sP=ss,nP=UE,RP=ns,oP=MA,AP=PA,iP=Object.prototype,SP=iP.hasOwnProperty;function OP(e,E){var t=nP(e),T=!t&&sP(e),r=!t&&!T&&RP(e),s=!t&&!T&&!r&&AP(e),n=t||T||r||s,R=n?rP(e.length,String):[],A=R.length;for(var o in e)(E||SP.call(e,o))&&!(n&&(o=="length"||r&&(o=="offset"||o=="parent")||s&&(o=="buffer"||o=="byteLength"||o=="byteOffset")||oP(o,A)))&&R.push(o);return R}var UA=OP;function aP(e){var E=[];if(e!=null)for(var t in Object(e))E.push(t);return E}var IP=aP,NP=IE,lP=rs,_P=IP,CP=Object.prototype,cP=CP.hasOwnProperty;function LP(e){if(!NP(e))return _P(e);var E=lP(e),t=[];for(var T in e)T=="constructor"&&(E||!cP.call(e,T))||t.push(T);return t}var uP=LP,pP=UA,fP=uP,PP=WT;function DP(e){return PP(e)?pP(e,!0):fP(e)}var kt=DP,dP=_t,MP=kt;function UP(e){return dP(e,MP(e))}var hP=UP,kn=IA,GP=NA,gP=lA,mP=_A,HP=cA,jn=ss,qn=UE,yP=Zp,bP=ns,BP=zr,FP=IE,vP=fA,YP=PA,Qn=DA,VP=hP;function xP(e,E,t,T,r,s,n){var R=Qn(e,t),A=Qn(E,t),o=n.get(A);if(o){kn(e,t,o);return}var i=s?s(R,A,t+"",e,E,n):void 0,a=i===void 0;if(a){var I=qn(A),l=!I&&bP(A),U=!I&&!l&&YP(A);i=A,I||l||U?qn(R)?i=R:yP(R)?i=mP(R):l?(a=!1,i=GP(A,!0)):U?(a=!1,i=gP(A,!0)):i=[]:vP(A)||jn(A)?(i=R,jn(R)?i=VP(R):(!FP(R)||BP(R))&&(i=HP(A))):a=!1}a&&(n.set(A,i),r(i,A,T,s,n),n.delete(A)),kn(e,t,i)}var wP=xP,WP=aA,XP=IA,$P=ap,KP=wP,JP=IE,kP=kt,jP=DA;function hA(e,E,t,T,r){e!==E&&$P(E,function(s,n){if(r||(r=new WP),JP(s))KP(e,E,n,t,hA,T,r);else{var R=T?T(jP(e,n),s,n+"",e,E,r):void 0;R===void 0&&(R=s),XP(e,n,R)}},kP)}var GA=hA,qP=GA,Zn=IE;function gA(e,E,t,T,r,s){return Zn(e)&&Zn(E)&&(s.set(E,e),qP(e,E,void 0,gA,s),s.delete(E)),e}var QP=gA,ZP=vT,zP=WT,eD=MA,ED=IE;function tD(e,E,t){if(!ED(t))return!1;var T=typeof E;return(T=="number"?zP(t)&&eD(E,t.length):T=="string"&&E in t)?ZP(t[E],e):!1}var TD=tD,rD=SA,sD=TD;function nD(e){return rD(function(E,t){var T=-1,r=t.length,s=r>1?t[r-1]:void 0,n=r>2?t[2]:void 0;for(s=e.length>3&&typeof s=="function"?(r--,s):void 0,n&&sD(t[0],t[1],n)&&(s=r<3?void 0:s,r=1),E=Object(E);++T<r;){var R=t[T];R&&e(E,R,T,s)}return E})}var RD=nD,oD=GA,AD=RD,iD=AD(function(e,E,t,T){oD(e,E,t,T)}),SD=iD,OD=TA,aD=SA,ID=QP,ND=SD,lD=aD(function(e){return e.push(void 0,ID),OD(ND,void 0,e)}),_D=lD;const CD=fT(_D);function cD(e){const E=CD(e,{mode:"ws",prefix:"/_debugbar",cable:{url:"ws://127.0.0.1:3000",channelName:"Debugbar::DebugbarChannel"},poll:{url:"http://127.0.0.1:3000",interval:500},height:360});return E.actionCableUrl=`${E.cable.url}${E.prefix}/cable`,E.pollUrl=`${E.poll.url}${E.prefix}/poll`,E}let LD=yo("config",{state:()=>({config:cD(window._debugbarConfigOptions)})});const uD={key:0},pD=O("div",{class:"text-gray-500"},"No cache used.",-1),fD=[pD],PD={class:"space-y-3"},DD={class:"flex items-center space-x-8"},dD={class:"w-24 text-sm text-right text-gray-400"},MD={class:"w-16 text-right"},UD={class:"text-gray-800"},hD={class:"font-medium",title:"cache key"},GD={class:"text-xs text-gray-400",title:"transaction_id"},gD=Me({__name:"CachePanel",props:{cache:{}},setup(e){const E=e;return(t,T)=>(h(),fe(OE,null,{default:ie(()=>[E.cache.length==0?(h(),Y("div",uD,fD)):oe("",!0),O("div",PD,[(h(!0),Y(Le,null,Je(E.cache,r=>(h(),Y("div",DD,[O("div",dD,Re(r.time),1),O("div",MD,[O("span",{class:$e(["px-1 py-0.5 rounded text-white text-xs font-mono font-medium bg-stone-400",{"!bg-emerald-500":r.label=="hit","!bg-indigo-500":r.label=="write","!bg-amber-400":r.label=="read","!bg-red-400":r.label=="delete"}])},Re(r.label),3)]),O("div",UD,[O("div",hD,Re(r.key),1),O("div",GD,Re(r.transaction_id),1)])]))),256))])]),_:1}))}});function mD(e,E){for(var t=-1,T=e==null?0:e.length,r=Array(T);++t<T;)r[t]=E(e[t],t,e);return r}var mA=mD;function HD(e,E){for(var t=-1,T=e==null?0:e.length;++t<T&&E(e[t],t,e)!==!1;);return e}var yD=HD,bD=CA,BD=bD(Object.keys,Object),FD=BD,vD=rs,YD=FD,VD=Object.prototype,xD=VD.hasOwnProperty;function wD(e){if(!vD(e))return YD(e);var E=[];for(var t in Object(e))xD.call(e,t)&&t!="constructor"&&E.push(t);return E}var WD=wD,XD=UA,$D=WD,KD=WT;function JD(e){return KD(e)?XD(e):$D(e)}var As=JD,kD=_t,jD=As;function qD(e,E){return e&&kD(E,jD(E),e)}var QD=qD,ZD=_t,zD=kt;function ed(e,E){return e&&ZD(E,zD(E),e)}var Ed=ed;function td(e,E){for(var t=-1,T=e==null?0:e.length,r=0,s=[];++t<T;){var n=e[t];E(n,t,e)&&(s[r++]=n)}return s}var Td=td;function rd(){return[]}var HA=rd,sd=Td,nd=HA,Rd=Object.prototype,od=Rd.propertyIsEnumerable,zn=Object.getOwnPropertySymbols,Ad=zn?function(e){return e==null?[]:(e=Object(e),sd(zn(e),function(E){return od.call(e,E)}))}:nd,is=Ad,id=_t,Sd=is;function Od(e,E){return id(e,Sd(e),E)}var ad=Od;function Id(e,E){for(var t=-1,T=E.length,r=e.length;++t<T;)e[r+t]=E[t];return e}var Ss=Id,Nd=Ss,ld=Ts,_d=is,Cd=HA,cd=Object.getOwnPropertySymbols,Ld=cd?function(e){for(var E=[];e;)Nd(E,_d(e)),e=ld(e);return E}:Cd,yA=Ld,ud=_t,pd=yA;function fd(e,E){return ud(e,pd(e),E)}var Pd=fd,Dd=Ss,dd=UE;function Md(e,E,t){var T=E(e);return dd(e)?T:Dd(T,t(e))}var bA=Md,Ud=bA,hd=is,Gd=As;function gd(e){return Ud(e,Gd,hd)}var md=gd,Hd=bA,yd=yA,bd=kt;function Bd(e){return Hd(e,bd,yd)}var BA=Bd,Fd=XE,vd=oE,Yd=Fd(vd,"DataView"),Vd=Yd,xd=XE,wd=oE,Wd=xd(wd,"Promise"),Xd=Wd,$d=XE,Kd=oE,Jd=$d(Kd,"Set"),kd=Jd,jd=XE,qd=oE,Qd=jd(qd,"WeakMap"),Zd=Qd,fr=Vd,Pr=es,Dr=Xd,dr=kd,Mr=Zd,FA=Ot,Ct=oA,eR="[object Map]",zd="[object Object]",ER="[object Promise]",tR="[object Set]",TR="[object WeakMap]",rR="[object DataView]",eM=Ct(fr),EM=Ct(Pr),tM=Ct(Dr),TM=Ct(dr),rM=Ct(Mr),yE=FA;(fr&&yE(new fr(new ArrayBuffer(1)))!=rR||Pr&&yE(new Pr)!=eR||Dr&&yE(Dr.resolve())!=ER||dr&&yE(new dr)!=tR||Mr&&yE(new Mr)!=TR)&&(yE=function(e){var E=FA(e),t=E==zd?e.constructor:void 0,T=t?Ct(t):"";if(T)switch(T){case eM:return rR;case EM:return eR;case tM:return ER;case TM:return tR;case rM:return TR}return E});var Os=yE,sM=Object.prototype,nM=sM.hasOwnProperty;function RM(e){var E=e.length,t=new e.constructor(E);return E&&typeof e[0]=="string"&&nM.call(e,"index")&&(t.index=e.index,t.input=e.input),t}var oM=RM,AM=ts;function iM(e,E){var t=E?AM(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}var SM=iM,OM=/\w*$/;function aM(e){var E=new e.constructor(e.source,OM.exec(e));return E.lastIndex=e.lastIndex,E}var IM=aM,sR=Jt,nR=sR?sR.prototype:void 0,RR=nR?nR.valueOf:void 0;function NM(e){return RR?Object(RR.call(e)):{}}var lM=NM,_M=ts,CM=SM,cM=IM,LM=lM,uM=lA,pM="[object Boolean]",fM="[object Date]",PM="[object Map]",DM="[object Number]",dM="[object RegExp]",MM="[object Set]",UM="[object String]",hM="[object Symbol]",GM="[object ArrayBuffer]",gM="[object DataView]",mM="[object Float32Array]",HM="[object Float64Array]",yM="[object Int8Array]",bM="[object Int16Array]",BM="[object Int32Array]",FM="[object Uint8Array]",vM="[object Uint8ClampedArray]",YM="[object Uint16Array]",VM="[object Uint32Array]";function xM(e,E,t){var T=e.constructor;switch(E){case GM:return _M(e);case pM:case fM:return new T(+e);case gM:return CM(e,t);case mM:case HM:case yM:case bM:case BM:case FM:case vM:case YM:case VM:return uM(e,t);case PM:return new T;case DM:case UM:return new T(e);case dM:return cM(e);case MM:return new T;case hM:return LM(e)}}var wM=xM,WM=Os,XM=ME,$M="[object Map]";function KM(e){return XM(e)&&WM(e)==$M}var JM=KM,kM=JM,jM=Rs,oR=os,AR=oR&&oR.isMap,qM=AR?jM(AR):kM,QM=qM,ZM=Os,zM=ME,eU="[object Set]";function EU(e){return zM(e)&&ZM(e)==eU}var tU=EU,TU=tU,rU=Rs,iR=os,SR=iR&&iR.isSet,sU=SR?rU(SR):TU,nU=sU,RU=aA,oU=yD,AU=dA,iU=QD,SU=Ed,OU=NA,aU=_A,IU=ad,NU=Pd,lU=md,_U=BA,CU=Os,cU=oM,LU=wM,uU=cA,pU=UE,fU=ns,PU=QM,DU=IE,dU=nU,MU=As,UU=kt,hU=1,GU=2,gU=4,vA="[object Arguments]",mU="[object Array]",HU="[object Boolean]",yU="[object Date]",bU="[object Error]",YA="[object Function]",BU="[object GeneratorFunction]",FU="[object Map]",vU="[object Number]",VA="[object Object]",YU="[object RegExp]",VU="[object Set]",xU="[object String]",wU="[object Symbol]",WU="[object WeakMap]",XU="[object ArrayBuffer]",$U="[object DataView]",KU="[object Float32Array]",JU="[object Float64Array]",kU="[object Int8Array]",jU="[object Int16Array]",qU="[object Int32Array]",QU="[object Uint8Array]",ZU="[object Uint8ClampedArray]",zU="[object Uint16Array]",eh="[object Uint32Array]",Ne={};Ne[vA]=Ne[mU]=Ne[XU]=Ne[$U]=Ne[HU]=Ne[yU]=Ne[KU]=Ne[JU]=Ne[kU]=Ne[jU]=Ne[qU]=Ne[FU]=Ne[vU]=Ne[VA]=Ne[YU]=Ne[VU]=Ne[xU]=Ne[wU]=Ne[QU]=Ne[ZU]=Ne[zU]=Ne[eh]=!0;Ne[bU]=Ne[YA]=Ne[WU]=!1;function AT(e,E,t,T,r,s){var n,R=E&hU,A=E&GU,o=E&gU;if(t&&(n=r?t(e,T,r,s):t(e)),n!==void 0)return n;if(!DU(e))return e;var i=pU(e);if(i){if(n=cU(e),!R)return aU(e,n)}else{var a=CU(e),I=a==YA||a==BU;if(fU(e))return OU(e,R);if(a==VA||a==vA||I&&!r){if(n=A||I?{}:uU(e),!R)return A?NU(e,SU(n,e)):IU(e,iU(n,e))}else{if(!Ne[a])return r?e:{};n=LU(e,a,R)}}s||(s=new RU);var l=s.get(e);if(l)return l;s.set(e,n),dU(e)?e.forEach(function(x){n.add(AT(x,E,t,x,e,s))}):PU(e)&&e.forEach(function(x,$){n.set($,AT(x,E,t,$,e,s))});var U=o?A?_U:lU:A?UU:MU,B=i?void 0:U(e);return oU(B||e,function(x,$){B&&($=x,x=e[$]),AU(n,$,AT(x,E,t,$,e,s))}),n}var Eh=AT,th=Ot,Th=ME,rh="[object Symbol]";function sh(e){return typeof e=="symbol"||Th(e)&&th(e)==rh}var as=sh,nh=UE,Rh=as,oh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ah=/^\w*$/;function ih(e,E){if(nh(e))return!1;var t=typeof e;return t=="number"||t=="symbol"||t=="boolean"||e==null||Rh(e)?!0:Ah.test(e)||!oh.test(e)||E!=null&&e in Object(E)}var Sh=ih,xA=OA,Oh="Expected a function";function Is(e,E){if(typeof e!="function"||E!=null&&typeof E!="function")throw new TypeError(Oh);var t=function(){var T=arguments,r=E?E.apply(this,T):T[0],s=t.cache;if(s.has(r))return s.get(r);var n=e.apply(this,T);return t.cache=s.set(r,n)||s,n};return t.cache=new(Is.Cache||xA),t}Is.Cache=xA;var ah=Is,Ih=ah,Nh=500;function lh(e){var E=Ih(e,function(T){return t.size===Nh&&t.clear(),T}),t=E.cache;return E}var _h=lh,Ch=_h,ch=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Lh=/\\(\\)?/g,uh=Ch(function(e){var E=[];return e.charCodeAt(0)===46&&E.push(""),e.replace(ch,function(t,T,r,s){E.push(r?s.replace(Lh,"$1"):T||t)}),E}),ph=uh,aR=Jt,fh=mA,Ph=UE,Dh=as,dh=1/0,IR=aR?aR.prototype:void 0,NR=IR?IR.toString:void 0;function wA(e){if(typeof e=="string")return e;if(Ph(e))return fh(e,wA)+"";if(Dh(e))return NR?NR.call(e):"";var E=e+"";return E=="0"&&1/e==-dh?"-0":E}var Mh=wA,Uh=Mh;function hh(e){return e==null?"":Uh(e)}var Gh=hh,gh=UE,mh=Sh,Hh=ph,yh=Gh;function bh(e,E){return gh(e)?e:mh(e,E)?[e]:Hh(yh(e))}var Ns=bh;function Bh(e){var E=e==null?0:e.length;return E?e[E-1]:void 0}var Fh=Bh,vh=as,Yh=1/0;function Vh(e){if(typeof e=="string"||vh(e))return e;var E=e+"";return E=="0"&&1/e==-Yh?"-0":E}var WA=Vh,xh=Ns,wh=WA;function Wh(e,E){E=xh(E,e);for(var t=0,T=E.length;e!=null&&t<T;)e=e[wh(E[t++])];return t&&t==T?e:void 0}var Xh=Wh;function $h(e,E,t){var T=-1,r=e.length;E<0&&(E=-E>r?0:r+E),t=t>r?r:t,t<0&&(t+=r),r=E>t?0:t-E>>>0,E>>>=0;for(var s=Array(r);++T<r;)s[T]=e[T+E];return s}var Kh=$h,Jh=Xh,kh=Kh;function jh(e,E){return E.length<2?e:Jh(e,kh(E,0,-1))}var qh=jh,Qh=Ns,Zh=Fh,zh=qh,eG=WA;function EG(e,E){return E=Qh(E,e),e=zh(e,E),e==null||delete e[eG(Zh(E))]}var tG=EG,TG=fA;function rG(e){return TG(e)?void 0:e}var sG=rG,lR=Jt,nG=ss,RG=UE,_R=lR?lR.isConcatSpreadable:void 0;function oG(e){return RG(e)||nG(e)||!!(_R&&e&&e[_R])}var AG=oG,iG=Ss,SG=AG;function XA(e,E,t,T,r){var s=-1,n=e.length;for(t||(t=SG),r||(r=[]);++s<n;){var R=e[s];E>0&&t(R)?E>1?XA(R,E-1,t,T,r):iG(r,R):T||(r[r.length]=R)}return r}var OG=XA,aG=OG;function IG(e){var E=e==null?0:e.length;return E?aG(e,1):[]}var NG=IG,lG=NG,_G=sA,CG=iA;function cG(e){return CG(_G(e,void 0,lG),e+"")}var LG=cG,uG=mA,pG=Eh,fG=tG,PG=Ns,DG=_t,dG=sG,MG=LG,UG=BA,hG=1,GG=2,gG=4,mG=MG(function(e,E){var t={};if(e==null)return t;var T=!1;E=uG(E,function(s){return s=PG(s,e),T||(T=s.length>1),s}),DG(e,UG(e),t),T&&(t=pG(t,hG|GG|gG,dG));for(var r=E.length;r--;)fG(t,E[r]);return t}),HG=mG;const yG=fT(HG),bG={class:"break-all w-full border-separate border-spacing-1"},BG={key:0},FG=["textContent"],vG=["textContent"],Dt=Me({__name:"KeyValueTable",props:{keyLabel:{},valueLabel:{}},setup(e){const E=e;return(t,T)=>(h(),Y("table",bG,[E.keyLabel||E.valueLabel?(h(),Y("tr",BG,[O("th",{textContent:Re(E.keyLabel),class:"bg-amber-50 w-40 px-3 py-1"},null,8,FG),O("th",{textContent:Re(E.valueLabel),class:"bg-amber-50 px-3 py-1"},null,8,vG)])):oe("",!0),St(t.$slots,"default")]))}}),YG=["textContent"],VG={class:"px-3 py-1"},qe=Me({__name:"Row",props:{label:{}},setup(e){const E=e;return(t,T)=>(h(),Y("tr",null,[O("td",{textContent:Re(E.label),class:"w-40 font-medium bg-stone-50 px-3 py-1"},null,8,YG),O("td",VG,[St(t.$slots,"default")])]))}}),xG={class:"font-medium"},wG={key:0},CR=Me({__name:"Foldable",props:{label:{},isOpen:{type:Boolean,default:!1}},setup(e){const E=e,t=dE({isOpen:E.isOpen});return(T,r)=>(h(),Y("div",null,[O("div",null,[O("button",{class:"flex items-center space-x-1",onClick:r[0]||(r[0]=s=>t.isOpen=!t.isOpen)},[X(ne(Bo),{class:$e(["size-4",{"-rotate-90":!t.isOpen}])},null,8,["class"]),O("span",xG,Re(E.label),1)])]),t.isOpen?(h(),Y("div",wG,[St(T.$slots,"default")])):oe("",!0)]))}}),WG={class:"flex"},XG={class:"w-1/2"},$G=O("h2",{class:"mt-0.5 mb-2 px-2 py-1 bg-stone-300 text-black tracking-wide text-xs uppercase font-bold rounded"}," HTTP Request ",-1),KG=O("div",{class:"py-3 text-right italic text-sm text-stone-500"},[Ye(" What else would like to see here? "),O("a",{target:"_blank",class:"underline font-bold",href:"https://github.com/julienbourdeau/debugbar/discussions"},"Tell me!")],-1),JG={class:"w-1/2"},kG=O("h2",{class:"mt-0.5 mb-2 px-2 py-1 bg-stone-300 text-black tracking-wide text-xs uppercase font-bold rounded"}," Routing ",-1),jG=O("h2",{class:"mt-0.5 mb-2 px-2 py-1 bg-stone-300 text-black tracking-wide text-xs uppercase font-bold rounded"}," HTTP Response ",-1),qG={key:0},QG=O("div",{class:"py-3 text-sm text-stone-500"},[Ye(" The response was not captured. "),O("a",{target:"_blank",class:"underline font-bold",href:"https://debugbar.dev/docs/known-limitations/"},"Learn more")],-1),ZG=[QG],zG={key:1},eg=Me({__name:"RequestPanel",props:{request:{}},setup(e){return(E,t)=>{const T=$t("highlightjs");return h(),Y("div",WG,[O("div",XG,[X(OE,null,{default:ie(()=>[$G,X(Dt,null,{default:ie(()=>[X(qe,{label:"Method"},{default:ie(()=>[Ye(Re(E.request.meta.method),1)]),_:1}),X(qe,{label:"URL"},{default:ie(()=>[Ye(Re(E.request.meta.path),1)]),_:1}),X(qe,{label:"Params"},{default:ie(()=>[X(T,{class:"text-sm",language:"json",code:JSON.stringify(ne(yG)(E.request.meta.params,["controller","action"]),null,2)},null,8,["code"])]),_:1}),X(qe,{label:"Header: Version"},{default:ie(()=>[Ye(Re(E.request.request.headers.Version),1)]),_:1}),X(qe,{label:"Header: Cache-Control"},{default:ie(()=>[Ye(Re(E.request.request.headers["Cache-Control"]),1)]),_:1})]),_:1}),X(CR,{class:"py-4",label:"All Headers"},{default:ie(()=>[X(Dt,null,{default:ie(()=>[(h(!0),Y(Le,null,Je(E.request.request.headers,(r,s)=>(h(),fe(qe,{key:s,label:s},{default:ie(()=>[Ye(Re(r),1)]),_:2},1032,["label"]))),128))]),_:1})]),_:1}),KG]),_:1})]),O("div",JG,[X(OE,null,{default:ie(()=>[kG,X(Dt,null,{default:ie(()=>[X(qe,{title:"Controller"},{default:ie(()=>[Ye(Re(E.request.meta.controller)+" > "+Re(E.request.meta.action),1)]),_:1})]),_:1})]),_:1}),X(OE,null,{default:ie(()=>{var r,s;return[jG,(r=E.request.response)!=null&&r.status?oe("",!0):(h(),Y("div",qG,ZG)),(s=E.request.response)!=null&&s.status?(h(),Y("div",zG,[X(Dt,null,{default:ie(()=>[X(qe,{label:"Status"},{default:ie(()=>[Ye(Re(E.request.response.status),1)]),_:1}),X(qe,{label:"Body"},{default:ie(()=>[Ye(Re(E.request.response.body.substring(0,140)),1)]),_:1}),X(qe,{label:"Header: Content-Type"},{default:ie(()=>[Ye(Re(E.request.response.headers["Content-Type"]),1)]),_:1})]),_:1}),X(CR,{class:"py-4",label:"All Headers"},{default:ie(()=>[X(Dt,null,{default:ie(()=>[(h(!0),Y(Le,null,Je(E.request.response.headers,(n,R)=>(h(),fe(qe,{key:R,label:R},{default:ie(()=>[Ye(Re(n),1)]),_:2},1032,["label"]))),128))]),_:1})]),_:1})])):oe("",!0)]}),_:1})])])}}}),Eg={class:"p-4 leading-8"},tg=Me({__name:"JsonPanel",props:{currentRequest:{}},setup(e){const E=e;return(t,T)=>{const r=$t("highlightjs");return h(),Y("div",Eg,[X(r,{language:"json",code:JSON.stringify(E.currentRequest,null,2)},null,8,["code"])])}}}),Tg={},rg={class:"size-5","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:cc":"http://creativecommons.org/ns#","xmlns:rdf":"http://www.w3.org/1999/02/22-rdf-syntax-ns#","xmlns:svg":"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:sodipodi":"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd","xmlns:inkscape":"http://www.inkscape.org/namespaces/inkscape",version:"1.1",id:"Layer_1",width:"198.13",height:"197.58",viewBox:"0 0 198.13 197.58",overflow:"visible","enable-background":"new 0 0 198.13 197.58","xml:space":"preserve","inkscape:version":"0.48.0 r9654","sodipodi:docname":"Logo-Ruby.svg"},sg=O("metadata",{id:"metadata3320"},[O("rdf:RDF",null,[O("cc:Work",{"rdf:about":""},[O("dc:format",null,"image/svg+xml"),O("dc:type",{"rdf:resource":"http://purl.org/dc/dcmitype/StillImage"})])])],-1),ng=O("defs",{id:"defs3489"},[O("linearGradient",{id:"XMLID_17_-9",gradientUnits:"userSpaceOnUse",x1:"174.0737",y1:"215.5488",x2:"132.27631",y2:"141.7533"},[O("stop",{offset:"0",style:{"stop-color":"#fb7655"},id:"stop3272-4"}),O("stop",{offset:"0",style:{"stop-color":"#fb7655"},id:"stop3274-5"}),O("stop",{offset:"0.41",style:{"stop-color":"#e42b1e"},id:"stop3276-1"}),O("stop",{offset:"0.99",style:{"stop-color":"#990000"},id:"stop3278-0"}),O("stop",{offset:"1",style:{"stop-color":"#990000"},id:"stop3280-3"})]),O("linearGradient",{id:"XMLID_18_-7",gradientUnits:"userSpaceOnUse",x1:"194.895",y1:"153.5576",x2:"141.0276",y2:"117.4093"},[O("stop",{offset:"0",style:{"stop-color":"#871101"},id:"stop3285-8"}),O("stop",{offset:"0",style:{"stop-color":"#871101"},id:"stop3287-8"}),O("stop",{offset:"0.99",style:{"stop-color":"#911209"},id:"stop3289-6"}),O("stop",{offset:"1",style:{"stop-color":"#911209"},id:"stop3291-0"})]),O("linearGradient",{id:"XMLID_19_-4",gradientUnits:"userSpaceOnUse",x1:"151.79539",y1:"217.7852",x2:"97.929703",y2:"181.638"},[O("stop",{offset:"0",style:{"stop-color":"#871101"},id:"stop3296-6"}),O("stop",{offset:"0",style:{"stop-color":"#871101"},id:"stop3298-7"}),O("stop",{offset:"0.99",style:{"stop-color":"#911209"},id:"stop3300-6"}),O("stop",{offset:"1",style:{"stop-color":"#911209"},id:"stop3302-0"})]),O("linearGradient",{id:"XMLID_20_-9",gradientUnits:"userSpaceOnUse",x1:"38.696301",y1:"127.3906",x2:"47.046902",y2:"181.66141"},[O("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3307-7"}),O("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3309-5"}),O("stop",{offset:"0.23",style:{"stop-color":"#e57252"},id:"stop3311-9"}),O("stop",{offset:"0.46",style:{"stop-color":"#de3b20"},id:"stop3313-7"}),O("stop",{offset:"0.99",style:{"stop-color":"#a60003"},id:"stop3315-8"}),O("stop",{offset:"1",style:{"stop-color":"#a60003"},id:"stop3317-5"})]),O("linearGradient",{id:"XMLID_21_-3",gradientUnits:"userSpaceOnUse",x1:"96.132797",y1:"76.715302",x2:"99.209602",y2:"132.1021"},[O("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3322-3"}),O("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3324-8"}),O("stop",{offset:"0.23",style:{"stop-color":"#e4714e"},id:"stop3326-3"}),O("stop",{offset:"0.56",style:{"stop-color":"#be1a0d"},id:"stop3328-7"}),O("stop",{offset:"0.99",style:{"stop-color":"#a80d00"},id:"stop3330-9"}),O("stop",{offset:"1",style:{"stop-color":"#a80d00"},id:"stop3332-3"})]),O("linearGradient",{id:"XMLID_22_-7",gradientUnits:"userSpaceOnUse",x1:"147.103",y1:"25.521",x2:"156.3141",y2:"65.216202"},[O("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3337-8"}),O("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3339-7"}),O("stop",{offset:"0.18",style:{"stop-color":"#e46342"},id:"stop3341-4"}),O("stop",{offset:"0.4",style:{"stop-color":"#c82410"},id:"stop3343-1"}),O("stop",{offset:"0.99",style:{"stop-color":"#a80d00"},id:"stop3345-9"}),O("stop",{offset:"1",style:{"stop-color":"#a80d00"},id:"stop3347-0"})]),O("linearGradient",{id:"XMLID_23_-9",gradientUnits:"userSpaceOnUse",x1:"118.9761",y1:"11.5415",x2:"158.66859",y2:"-8.3048"},[O("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3352-8"}),O("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3354-8"}),O("stop",{offset:"0.54",style:{"stop-color":"#c81f11"},id:"stop3356-5"}),O("stop",{offset:"0.99",style:{"stop-color":"#bf0905"},id:"stop3358-8"}),O("stop",{offset:"1",style:{"stop-color":"#bf0905"},id:"stop3360-4"})]),O("linearGradient",{id:"XMLID_24_-3",gradientUnits:"userSpaceOnUse",x1:"3.9033",y1:"113.5547",x2:"7.1701999",y2:"146.2628"},[O("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3365-7"}),O("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3367-1"}),O("stop",{offset:"0.31",style:{"stop-color":"#de4024"},id:"stop3369-3"}),O("stop",{offset:"0.99",style:{"stop-color":"#bf190b"},id:"stop3371-8"}),O("stop",{offset:"1",style:{"stop-color":"#bf190b"},id:"stop3373-0"})]),O("linearGradient",{id:"XMLID_25_-9",gradientUnits:"userSpaceOnUse",x1:"-18.5557",y1:"155.10451",x2:"135.0152",y2:"-2.8092999"},[O("stop",{offset:"0",style:{"stop-color":"#bd0012"},id:"stop3380-7"}),O("stop",{offset:"0",style:{"stop-color":"#bd0012"},id:"stop3382-9"}),O("stop",{offset:"0.07",style:{"stop-color":"#ffffff"},id:"stop3384-9"}),O("stop",{offset:"0.17",style:{"stop-color":"#ffffff"},id:"stop3386-3"}),O("stop",{offset:"0.27",style:{"stop-color":"#c82f1c"},id:"stop3388-2"}),O("stop",{offset:"0.33",style:{"stop-color":"#820c01"},id:"stop3390-4"}),O("stop",{offset:"0.46",style:{"stop-color":"#a31601"},id:"stop3392-3"}),O("stop",{offset:"0.72",style:{"stop-color":"#b31301"},id:"stop3394-7"}),O("stop",{offset:"0.99",style:{"stop-color":"#e82609"},id:"stop3396-1"}),O("stop",{offset:"1",style:{"stop-color":"#e82609"},id:"stop3398-2"})]),O("linearGradient",{id:"XMLID_26_-2",gradientUnits:"userSpaceOnUse",x1:"99.074699",y1:"171.0332",x2:"52.817699",y2:"159.61659"},[O("stop",{offset:"0",style:{"stop-color":"#8c0c01"},id:"stop3403-0"}),O("stop",{offset:"0",style:{"stop-color":"#8c0c01"},id:"stop3405-2"}),O("stop",{offset:"0.54",style:{"stop-color":"#990c00"},id:"stop3407-1"}),O("stop",{offset:"0.99",style:{"stop-color":"#a80d0e"},id:"stop3409-7"}),O("stop",{offset:"1",style:{"stop-color":"#a80d0e"},id:"stop3411-5"})]),O("linearGradient",{id:"XMLID_27_-1",gradientUnits:"userSpaceOnUse",x1:"178.52589",y1:"115.5146",x2:"137.43269",y2:"78.683998"},[O("stop",{offset:"0",style:{"stop-color":"#7e110b"},id:"stop3416-7"}),O("stop",{offset:"0",style:{"stop-color":"#7e110b"},id:"stop3418-4"}),O("stop",{offset:"0.99",style:{"stop-color":"#9e0c00"},id:"stop3420-1"}),O("stop",{offset:"1",style:{"stop-color":"#9e0c00"},id:"stop3422-7"})]),O("linearGradient",{id:"XMLID_28_-1",gradientUnits:"userSpaceOnUse",x1:"193.6235",y1:"47.937",x2:"173.15421",y2:"26.053801"},[O("stop",{offset:"0",style:{"stop-color":"#79130d"},id:"stop3427-1"}),O("stop",{offset:"0",style:{"stop-color":"#79130d"},id:"stop3429-1"}),O("stop",{offset:"0.99",style:{"stop-color":"#9e120b"},id:"stop3431-7"}),O("stop",{offset:"1",style:{"stop-color":"#9e120b"},id:"stop3433-0"})]),O("radialGradient",{id:"XMLID_29_-4",cx:"143.8315",cy:"79.388199",r:"50.357601",gradientUnits:"userSpaceOnUse"},[O("stop",{offset:"0",style:{"stop-color":"#a80d00"},id:"stop3440-0"}),O("stop",{offset:"0",style:{"stop-color":"#a80d00"},id:"stop3442-8"}),O("stop",{offset:"0.99",style:{"stop-color":"#7e0e08"},id:"stop3444-5"}),O("stop",{offset:"1",style:{"stop-color":"#7e0e08"},id:"stop3446-1"})]),O("radialGradient",{id:"XMLID_30_-6",cx:"74.0923",cy:"145.75101",r:"66.943703",gradientUnits:"userSpaceOnUse"},[O("stop",{offset:"0",style:{"stop-color":"#a30c00"},id:"stop3451-6"}),O("stop",{offset:"0",style:{"stop-color":"#a30c00"},id:"stop3453-2"}),O("stop",{offset:"0.99",style:{"stop-color":"#800e08"},id:"stop3455-1"}),O("stop",{offset:"1",style:{"stop-color":"#800e08"},id:"stop3457-9"})]),O("linearGradient",{id:"XMLID_31_-6",gradientUnits:"userSpaceOnUse",x1:"26.669901",y1:"197.33591",x2:"9.9886999",y2:"140.742"},[O("stop",{offset:"0",style:{"stop-color":"#8b2114"},id:"stop3462-4"}),O("stop",{offset:"0",style:{"stop-color":"#8b2114"},id:"stop3464-8"}),O("stop",{offset:"0.43",style:{"stop-color":"#9e100a"},id:"stop3466-0"}),O("stop",{offset:"0.99",style:{"stop-color":"#b3100c"},id:"stop3468-8"}),O("stop",{offset:"1",style:{"stop-color":"#b3100c"},id:"stop3470-1"})]),O("linearGradient",{id:"XMLID_32_-0",gradientUnits:"userSpaceOnUse",x1:"154.6411",y1:"9.7979002",x2:"192.039",y2:"26.305901"},[O("stop",{offset:"0",style:{"stop-color":"#b31000"},id:"stop3475-2"}),O("stop",{offset:"0",style:{"stop-color":"#b31000"},id:"stop3477-2"}),O("stop",{offset:"0.44",style:{"stop-color":"#910f08"},id:"stop3479-9"}),O("stop",{offset:"0.99",style:{"stop-color":"#791c12"},id:"stop3481-7"}),O("stop",{offset:"1",style:{"stop-color":"#791c12"},id:"stop3483-5"})]),O("linearGradient",{y2:"141.7533",x2:"132.27631",y1:"215.5488",x1:"174.0737",gradientUnits:"userSpaceOnUse",id:"linearGradient3448","xlink:href":"#XMLID_17_-9","inkscape:collect":"always"})],-1),Rg=O("sodipodi:namedview",{pagecolor:"#ffffff",bordercolor:"#666666",borderopacity:"1",objecttolerance:"10",gridtolerance:"10",guidetolerance:"10","inkscape:pageopacity":"0","inkscape:pageshadow":"2","inkscape:window-width":"1036","inkscape:window-height":"1124",id:"namedview3487",showgrid:"false","inkscape:zoom":"1.3412289","inkscape:cx":"99.065005","inkscape:cy":"98.790004","inkscape:window-x":"882","inkscape:window-y":"24","inkscape:window-maximized":"0","inkscape:current-layer":"Layer_1"},null,-1),og=hO('<linearGradient id="XMLID_17_" gradientUnits="userSpaceOnUse" x1="174.0737" y1="215.5488" x2="132.2763" y2="141.7533"><stop offset="0" style="stop-color:#fb7655;" id="stop3272"></stop><stop offset="0" style="stop-color:#fb7655;" id="stop3274"></stop><stop offset="0.41" style="stop-color:#e42b1e;" id="stop3276"></stop><stop offset="0.99" style="stop-color:#990000;" id="stop3278"></stop><stop offset="1" style="stop-color:#990000;" id="stop3280"></stop></linearGradient><linearGradient id="XMLID_18_" gradientUnits="userSpaceOnUse" x1="194.895" y1="153.5576" x2="141.0276" y2="117.4093"><stop offset="0" style="stop-color:#871101;" id="stop3285"></stop><stop offset="0" style="stop-color:#871101;" id="stop3287"></stop><stop offset="0.99" style="stop-color:#911209;" id="stop3289"></stop><stop offset="1" style="stop-color:#911209;" id="stop3291"></stop></linearGradient><linearGradient id="XMLID_19_" gradientUnits="userSpaceOnUse" x1="151.7954" y1="217.7852" x2="97.9297" y2="181.638"><stop offset="0" style="stop-color:#871101;" id="stop3296"></stop><stop offset="0" style="stop-color:#871101;" id="stop3298"></stop><stop offset="0.99" style="stop-color:#911209;" id="stop3300"></stop><stop offset="1" style="stop-color:#911209;" id="stop3302"></stop></linearGradient><linearGradient id="XMLID_20_" gradientUnits="userSpaceOnUse" x1="38.6963" y1="127.3906" x2="47.0469" y2="181.6614"><stop offset="0" style="stop-color:#ffffff;" id="stop3307"></stop><stop offset="0" style="stop-color:#ffffff;" id="stop3309"></stop><stop offset="0.23" style="stop-color:#e57252;" id="stop3311"></stop><stop offset="0.46" style="stop-color:#de3b20;" id="stop3313"></stop><stop offset="0.99" style="stop-color:#a60003;" id="stop3315"></stop><stop offset="1" style="stop-color:#a60003;" id="stop3317"></stop></linearGradient><linearGradient id="XMLID_21_" gradientUnits="userSpaceOnUse" x1="96.1328" y1="76.7153" x2="99.2096" y2="132.1021"><stop offset="0" style="stop-color:#ffffff;" id="stop3322"></stop><stop offset="0" style="stop-color:#ffffff;" id="stop3324"></stop><stop offset="0.23" style="stop-color:#e4714e;" id="stop3326"></stop><stop offset="0.56" style="stop-color:#be1a0d;" id="stop3328"></stop><stop offset="0.99" style="stop-color:#a80d00;" id="stop3330"></stop><stop offset="1" style="stop-color:#a80d00;" id="stop3332"></stop></linearGradient><linearGradient id="XMLID_22_" gradientUnits="userSpaceOnUse" x1="147.103" y1="25.521" x2="156.3141" y2="65.2162"><stop offset="0" style="stop-color:#ffffff;" id="stop3337"></stop><stop offset="0" style="stop-color:#ffffff;" id="stop3339"></stop><stop offset="0.18" style="stop-color:#e46342;" id="stop3341"></stop><stop offset="0.4" style="stop-color:#c82410;" id="stop3343"></stop><stop offset="0.99" style="stop-color:#a80d00;" id="stop3345"></stop><stop offset="1" style="stop-color:#a80d00;" id="stop3347"></stop></linearGradient><linearGradient id="XMLID_23_" gradientUnits="userSpaceOnUse" x1="118.9761" y1="11.5415" x2="158.6686" y2="-8.3048"><stop offset="0" style="stop-color:#ffffff;" id="stop3352"></stop><stop offset="0" style="stop-color:#ffffff;" id="stop3354"></stop><stop offset="0.54" style="stop-color:#c81f11;" id="stop3356"></stop><stop offset="0.99" style="stop-color:#bf0905;" id="stop3358"></stop><stop offset="1" style="stop-color:#bf0905;" id="stop3360"></stop></linearGradient><linearGradient id="XMLID_24_" gradientUnits="userSpaceOnUse" x1="3.9033" y1="113.5547" x2="7.1702" y2="146.2628"><stop offset="0" style="stop-color:#ffffff;" id="stop3365"></stop><stop offset="0" style="stop-color:#ffffff;" id="stop3367"></stop><stop offset="0.31" style="stop-color:#de4024;" id="stop3369"></stop><stop offset="0.99" style="stop-color:#bf190b;" id="stop3371"></stop><stop offset="1" style="stop-color:#bf190b;" id="stop3373"></stop></linearGradient><linearGradient id="XMLID_25_" gradientUnits="userSpaceOnUse" x1="-18.5557" y1="155.1045" x2="135.0152" y2="-2.8093"><stop offset="0" style="stop-color:#bd0012;" id="stop3380"></stop><stop offset="0" style="stop-color:#bd0012;" id="stop3382"></stop><stop offset="0.07" style="stop-color:#ffffff;" id="stop3384"></stop><stop offset="0.17" style="stop-color:#ffffff;" id="stop3386"></stop><stop offset="0.27" style="stop-color:#c82f1c;" id="stop3388"></stop><stop offset="0.33" style="stop-color:#820c01;" id="stop3390"></stop><stop offset="0.46" style="stop-color:#a31601;" id="stop3392"></stop><stop offset="0.72" style="stop-color:#b31301;" id="stop3394"></stop><stop offset="0.99" style="stop-color:#e82609;" id="stop3396"></stop><stop offset="1" style="stop-color:#e82609;" id="stop3398"></stop></linearGradient><linearGradient id="XMLID_26_" gradientUnits="userSpaceOnUse" x1="99.0747" y1="171.0332" x2="52.8177" y2="159.6166"><stop offset="0" style="stop-color:#8c0c01;" id="stop3403"></stop><stop offset="0" style="stop-color:#8c0c01;" id="stop3405"></stop><stop offset="0.54" style="stop-color:#990c00;" id="stop3407"></stop><stop offset="0.99" style="stop-color:#a80d0e;" id="stop3409"></stop><stop offset="1" style="stop-color:#a80d0e;" id="stop3411"></stop></linearGradient><linearGradient id="XMLID_27_" gradientUnits="userSpaceOnUse" x1="178.5259" y1="115.5146" x2="137.4327" y2="78.684"><stop offset="0" style="stop-color:#7e110b;" id="stop3416"></stop><stop offset="0" style="stop-color:#7e110b;" id="stop3418"></stop><stop offset="0.99" style="stop-color:#9e0c00;" id="stop3420"></stop><stop offset="1" style="stop-color:#9e0c00;" id="stop3422"></stop></linearGradient><linearGradient id="XMLID_28_" gradientUnits="userSpaceOnUse" x1="193.6235" y1="47.937" x2="173.1542" y2="26.0538"><stop offset="0" style="stop-color:#79130d;" id="stop3427"></stop><stop offset="0" style="stop-color:#79130d;" id="stop3429"></stop><stop offset="0.99" style="stop-color:#9e120b;" id="stop3431"></stop><stop offset="1" style="stop-color:#9e120b;" id="stop3433"></stop></linearGradient><radialGradient id="XMLID_29_" cx="143.8315" cy="79.3882" r="50.3576" gradientUnits="userSpaceOnUse"><stop offset="0" style="stop-color:#a80d00;" id="stop3440"></stop><stop offset="0" style="stop-color:#a80d00;" id="stop3442"></stop><stop offset="0.99" style="stop-color:#7e0e08;" id="stop3444"></stop><stop offset="1" style="stop-color:#7e0e08;" id="stop3446"></stop></radialGradient><radialGradient id="XMLID_30_" cx="74.0923" cy="145.751" r="66.9437" gradientUnits="userSpaceOnUse"><stop offset="0" style="stop-color:#a30c00;" id="stop3451"></stop><stop offset="0" style="stop-color:#a30c00;" id="stop3453"></stop><stop offset="0.99" style="stop-color:#800e08;" id="stop3455"></stop><stop offset="1" style="stop-color:#800e08;" id="stop3457"></stop></radialGradient><linearGradient id="XMLID_31_" gradientUnits="userSpaceOnUse" x1="26.6699" y1="197.3359" x2="9.9887" y2="140.742"><stop offset="0" style="stop-color:#8b2114;" id="stop3462"></stop><stop offset="0" style="stop-color:#8b2114;" id="stop3464"></stop><stop offset="0.43" style="stop-color:#9e100a;" id="stop3466"></stop><stop offset="0.99" style="stop-color:#b3100c;" id="stop3468"></stop><stop offset="1" style="stop-color:#b3100c;" id="stop3470"></stop></linearGradient><linearGradient id="XMLID_32_" gradientUnits="userSpaceOnUse" x1="154.6411" y1="9.7979" x2="192.039" y2="26.3059"><stop offset="0" style="stop-color:#b31000;" id="stop3475"></stop><stop offset="0" style="stop-color:#b31000;" id="stop3477"></stop><stop offset="0.44" style="stop-color:#910f08;" id="stop3479"></stop><stop offset="0.99" style="stop-color:#791c12;" id="stop3481"></stop><stop offset="1" style="stop-color:#791c12;" id="stop3483"></stop></linearGradient><polygon style="fill:url(#linearGradient3448);fill-rule:evenodd;" clip-rule="evenodd" points="153.5,130.41 40.38,197.58 186.849,187.641 198.13,39.95 " id="polygon3282"></polygon><polygon style="fill:url(#XMLID_18_-7);fill-rule:evenodd;" clip-rule="evenodd" points="187.089,187.54 174.5,100.65 140.209,145.93 " id="polygon3293"></polygon><polygon style="fill:url(#XMLID_19_-4);fill-rule:evenodd;" clip-rule="evenodd" points="187.259,187.54 95.03,180.3 40.87,197.391 " id="polygon3304"></polygon><polygon style="fill:url(#XMLID_20_-9);fill-rule:evenodd;" clip-rule="evenodd" points="41,197.41 64.04,121.93 13.34,132.771 " id="polygon3319"></polygon><polygon style="fill:url(#XMLID_21_-3);fill-rule:evenodd;" clip-rule="evenodd" points="140.2,146.18 119,63.14 58.33,120.01 " id="polygon3334"></polygon><polygon style="fill:url(#XMLID_22_-7);fill-rule:evenodd;" clip-rule="evenodd" points="193.32,64.31 135.97,17.47 120,69.1 " id="polygon3349"></polygon><polygon style="fill:url(#XMLID_23_-9);fill-rule:evenodd;" clip-rule="evenodd" points="166.5,0.77 132.77,19.41 111.49,0.52 " id="polygon3362"></polygon><polygon style="fill:url(#XMLID_24_-3);fill-rule:evenodd;" clip-rule="evenodd" points="0,158.09 14.13,132.32 2.7,101.62 " id="polygon3375"></polygon>',24),Ag=O("path",{style:{fill:"#ffffff","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 1.94,100.65 11.5,32.62 49.97,-11.211 57.05,-53.02 L 136.56,17.9 111.209,0 68.109,16.13 C 54.53,28.76 28.18,53.75 27.23,54.22 26.29,54.7 9.83,85.81 1.94,100.65 z",id:"path3377"},null,-1),ig=O("path",{style:{fill:"url(#XMLID_25_-9)","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 42.32,42.05 c 29.43,-29.18 67.37,-46.42 81.93,-31.73 14.551,14.69 -0.88,50.39 -30.31,79.56 -29.43,29.17 -66.9,47.36 -81.45,32.67 -14.56,-14.68 0.4,-51.33 29.83,-80.5 z",id:"path3400"},null,-1),Sg=O("path",{style:{fill:"url(#XMLID_26_-2)","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 41,197.38 22.86,-75.72 75.92,24.39 C 112.33,171.79 81.8,193.55 41,197.38 z",id:"path3413"},null,-1),Og=O("path",{style:{fill:"url(#XMLID_27_-1)","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 120.56,68.89 19.49,77.2 C 162.98,121.98 183.56,96.06 193.639,64 l -73.079,4.89 z",id:"path3424"},null,-1),ag=O("path",{style:{fill:"url(#XMLID_28_-1)","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 193.44,64.39 c 7.8,-23.54 9.6,-57.31 -27.181,-63.58 l -30.18,16.67 57.361,46.91 z",id:"path3435"},null,-1),Ig=O("path",{style:{fill:"#9e1209","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 0,157.75 c 1.08,38.851 29.11,39.43 41.05,39.771 L 13.47,133.11 0,157.75 z",id:"path3437"},null,-1),Ng=O("path",{style:{fill:"url(#XMLID_29_-4)","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 120.669,69.01 c 17.62,10.83 53.131,32.58 53.851,32.98 1.119,0.63 15.31,-23.93 18.53,-37.81 l -72.381,4.83 z",id:"path3448"},null,-1),lg=O("path",{style:{fill:"url(#XMLID_30_-6)","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 63.83,121.66 30.56,58.96 c 18.07,-9.8 32.22,-21.74 45.18,-34.53 L 63.83,121.66 z",id:"path3459"},null,-1),_g=O("path",{style:{fill:"url(#XMLID_31_-6)","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 13.35,133.19 -4.33,51.56 c 8.17,11.16 19.41,12.13 31.2,11.26 -8.53,-21.23 -25.57,-63.68 -26.87,-62.82 z",id:"path3472"},null,-1),Cg=O("path",{style:{fill:"url(#XMLID_32_-0)","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 135.9,17.61 60.71,8.52 C 193.37,12.4 183.42,3.54 166.46,0.77 L 135.9,17.61 z",id:"path3485"},null,-1),cg=[sg,ng,Rg,og,Ag,ig,Sg,Og,ag,Ig,Ng,lg,_g,Cg];function Lg(e,E){return h(),Y("svg",rg,cg)}const cR=Fo(Tg,[["render",Lg]]),ug={class:"flex items-center"},pg=["textContent"],Tr=Me({__name:"Timing",props:{durationMs:{},slowThreshold:{default:1e3},tooSlowThreshold:{default:1500}},setup(e){const E=e,t=ze(()=>E.durationMs>=1e3?(E.durationMs/1e3).toFixed(2)+"s":E.durationMs.toFixed(1)+"ms");return(T,r)=>(h(),Y("div",ug,[St(T.$slots,"default"),O("span",{class:$e({"px-1 py-0.5 rounded text-sm":!0,"text-orange-600":T.durationMs>=E.slowThreshold&&T.durationMs<E.tooSlowThreshold,"text-red-600 bg-red-100":T.durationMs>=E.tooSlowThreshold}),textContent:Re(t.value)},null,10,pg)]))}}),fg=["textContent"],Pg=Me({__name:"StatusCode",props:{code:{}},setup(e){const E=e;return(t,T)=>(h(),Y("span",{class:$e(["px-1 py-0.5 rounded text-xs",{"bg-green-600 text-white":E.code<300,"bg-blue-500 text-white":E.code>=300&&E.code<400,"bg-amber-600 text-white":E.code>=400&&E.code<500,"bg-red-600 text-white":E.code>=500}]),textContent:Re(E.code)},null,10,fg))}}),Dg={class:"p-1 pt-1.5"},dg={key:1,class:"z-[9999] text-stone-900 fixed left-0 bottom-0 w-full"},Mg=O("div",{class:"h-0.5 bg-red-700 cursor-row-resize"},null,-1),Ug={class:"flex items-center justify-between bg-stone-100 border-b border-stone-200"},hg=O("div",{class:"px-5 py-1.5 italic"},"No request yet",-1),Gg={class:"px-3"},gg={key:2,class:"z-[9999] text-stone-900 fixed left-0 bottom-0 w-full"},mg={class:"flex"},Hg={class:"p-1 pt-1.5"},yg={class:"flex items-center space-x-3 pr-1"},bg={class:"flex space-x-2"},Bg={class:"text-sm text-stone-600 font-medium tracking-wide"},Fg=["selected","textContent","value"],vg={class:"flex items-center pl-1 space-x-2"},Yg=["title"],Vg=Me({__name:"Debugbar",setup(e){let E=WC(),t=LD();const T=LE(null),r=dE({activeTab:"",minimized:!1,isResizing:!1,isPolling:t.config.mode==="poll",height:t.config.height}),s=ze(()=>r.activeTab!=""),n=ze(()=>!1),R=ze(()=>{var I,l;return((I=E.currentRequest)==null?void 0:I.meta.params.controller)+"#"+((l=E.currentRequest)==null?void 0:l.meta.params.action)});let A=null;t.config.mode==="ws"?A=da.createConsumer(t.config.actionCableUrl).subscriptions.create({channel:t.config.cable.channelName},{connected(){console.log("🟢 Connected to channel"),A.send({ids:[]})},disconnected(){console.log("🔴 Disconnected from channel")},received(I){if(I.length==0)return;const l=E.addRequests(I);s.value||E.setCurrentRequestById(l[l.length-1]),setTimeout(()=>{A.send({ids:l})},50)}}):t.config.mode==="poll"?(console.log('Using debugbar in "polling mode". Consider using "ws" mode for better performance (requires ActionCable).'),setInterval(()=>{r.isPolling&&fetch(t.config.pollUrl).then(I=>I.json()).then(I=>{if(I.length==0)return;console.log(I);const l=E.addRequests(I);s.value||E.setCurrentRequestById(l[l.length-1]),fetch(t.config.pollUrl+"/confirm",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:l})})})},t.config.poll.interval)):console.log('Using debugbar in "offline mode", ideal for demos using fixtures.');const o=()=>{console.log("Clearing requests"),r.activeTab="",E.clearRequests(),A==null||A.send({clear:!0}),r.isPolling=!0},i=()=>{r.isPolling=!r.isPolling};Xr(()=>{window.onresize=function(){window.innerHeight<r.height&&(r.height=window.innerHeight-T.value.clientHeight)},document.onmousemove=function(I){r.isResizing&&(r.height=window.innerHeight-I.clientY-T.value.clientHeight)},document.onmouseup=function(I){r.isResizing=!1}});const a=I=>{r.activeTab==I?r.activeTab="":(window.innerHeight<r.height&&(r.height=window.innerHeight-T.value.clientHeight*2),r.activeTab=I)};return(I,l)=>{var U,B,x,$,J,Q;return h(),Y(Le,null,[r.minimized?(h(),Y("div",{key:0,onClick:l[0]||(l[0]=H=>r.minimized=!1),class:"z-[9999] text-stone-900 fixed left-0 bottom-0 bg-transparent cursor-pointer"},[O("div",Dg,[X(cR)])])):oe("",!0),!r.minimized&&ne(E).currentRequest==null?(h(),Y("div",dg,[Mg,O("div",Ug,[hg,O("div",Gg,[O("button",{onClick:l[1]||(l[1]=H=>r.minimized=!0),title:"Hide in the corner"},[X(ne(rn),{class:"size-4"})])])])])):oe("",!0),!r.minimized&&ne(E).currentRequest?(h(),Y("div",gg,[O("div",{id:"draggable-bar",onMousedown:l[2]||(l[2]=H=>r.isResizing=!0),class:"h-0.5 bg-red-700 cursor-row-resize"},null,32),O("div",{id:"debubgbar-header",ref_key:"header",ref:T,class:"flex px-1 items-center justify-between bg-stone-100 border-b-2 border-stone-300"},[O("div",null,[O("div",mg,[O("div",Hg,[X(cR)]),(h(!0),Y(Le,null,Je(ne(E).currentRequest.dataForTabs,(H,ee)=>(h(),fe(Ba,{key:"k",label:H.label,count:H==null?void 0:H.count,"is-active":ee===r.activeTab,disabled:H.count==0,onClick:Ce=>a(ee)},{default:ie(()=>[Ye(Re(H.label),1)]),_:2},1032,["label","count","is-active","disabled","onClick"]))),128)),n.value?(h(),Y("button",{key:0,onClick:l[3]||(l[3]=H=>a("debug")),class:$e(["px-3 py-1.5 text-stone-600",{"bg-stone-300":r.activeTab=="debug"}])},[X(ne(ha),{class:"size-4"})],2)):oe("",!0)])]),O("div",yg,[O("div",bg,[X(Tr,{"duration-ms":ne(E).currentRequest.meta.db_runtime,title:"DB runtime"},{default:ie(()=>[X(ne(Ua),{class:"text-stone-600 size-3"})]),_:1},8,["duration-ms"]),X(Tr,{"duration-ms":ne(E).currentRequest.meta.cpu_time,title:"CPU time"},{default:ie(()=>[X(ne(Ga),{class:"text-stone-600 size-3"})]),_:1},8,["duration-ms"]),X(Tr,{"duration-ms":ne(E).currentRequest.meta.duration,"too-slow-threshold":1e3,"slow-threshold":750,class:"font-bold",title:"Total duration"},{default:ie(()=>[X(ne(Ma),{class:"text-stone-800 size-4"})]),_:1},8,["duration-ms"])]),O("div",{onClick:l[4]||(l[4]=H=>a("request")),class:"flex space-x-2 cursor-pointer"},[O("span",Bg,Re(R.value),1),X(Pg,{code:ne(E).currentRequest.meta.status},null,8,["code"])]),O("select",{class:"px-2 py-1.5 bg-white border border-stone-200 rounded w-[330px] text-sm",name:"current_request_id",onChange:l[5]||(l[5]=H=>{const ee=H.target;ne(E).setCurrentRequestById(ee.value)})},[(h(!0),Y(Le,null,Je(ne(E).requests,H=>(h(),Y("option",{selected:ne(E).currentRequest.id==H.id,textContent:Re(H.pathWithVerb),value:H.id},null,8,Fg))),256))],32),O("div",vg,[ne(t).config.mode=="poll"?(h(),Y("button",{key:0,onClick:i,title:r.isPolling?"Pause polling":"Resume polling"},[r.isPolling?(h(),fe(ne(ga),{key:0,class:"size-4"})):oe("",!0),r.isPolling?oe("",!0):(h(),fe(ne(ma),{key:1,class:"size-4"}))],8,Yg)):oe("",!0),O("button",{onClick:o,title:"Clear all requests (frontend and backend)"},[X(ne(Ha),{class:"size-3"})]),s.value?oe("",!0):(h(),Y("button",{key:1,onClick:l[6]||(l[6]=H=>r.minimized=!0),title:"Hide in the corner"},[X(ne(rn),{class:"size-4"})])),s.value?(h(),Y("button",{key:2,onClick:l[7]||(l[7]=H=>r.activeTab=""),title:"Close"},[X(ne(ya),{class:"size-4"})])):oe("",!0)])])],512),r.activeTab!=""?(h(),Y("div",{key:0,ref:"body",id:"debugbar-body",class:"bg-white overflow-scroll",style:hT(`height: ${r.height}px`)},[r.activeTab=="request"?(h(),fe(eg,{key:0,request:ne(E).currentRequest},null,8,["request"])):oe("",!0),r.activeTab=="messages"?(h(),fe(xC,{key:1,messages:(U=ne(E).currentRequest)==null?void 0:U.messages},null,8,["messages"])):oe("",!0),r.activeTab=="models"?(h(),fe(ka,{key:2,models:(B=ne(E).currentRequest)==null?void 0:B.models,count:(x=ne(E).currentRequest)==null?void 0:x.modelsCount},null,8,["models","count"])):oe("",!0),r.activeTab=="queries"?(h(),fe(SC,{key:3,"current-request":ne(E).currentRequest},null,8,["current-request"])):oe("",!0),r.activeTab=="jobs"?(h(),fe(dC,{key:4,jobs:($=ne(E).currentRequest)==null?void 0:$.jobs},null,8,["jobs"])):oe("",!0),r.activeTab=="cache"?(h(),fe(gD,{key:5,cache:(J=ne(E).currentRequest)==null?void 0:J.cache},null,8,["cache"])):oe("",!0),r.activeTab=="logs"?(h(),fe(bC,{key:6,logs:(Q=ne(E).currentRequest)==null?void 0:Q.logs},null,8,["logs"])):oe("",!0),n.value&&r.activeTab=="debug"?(h(),fe(tg,{key:7,"current-request":ne(E).currentRequest,class:"px-3 py-2"},null,8,["current-request"])):oe("",!0)],4)):oe("",!0)])):oe("",!0)],64)}}}),xg=`pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
|
21
|
+
If possible, please select a more specific dialect (like sqlite, postgresql, etc).`:`SQL dialect used: "${this.dialectName}".`}getWhitespace(){dn.lastIndex=this.index;const e=dn.exec(this.input);if(e)return this.index+=e[0].length,e[0]}getNextToken(){for(const e of this.rules){const E=this.match(e);if(E)return E}}match(e){e.regex.lastIndex=this.index;const E=e.regex.exec(this.input);if(E){const t=E[0],T={type:e.type,raw:t,text:e.text?e.text(t):t,start:this.index};return e.key&&(T.key=e.key(t)),this.index+=t.length,T}}},Gn=/\/\*/uy,C_=/([^/*]|\*[^/]|\/[^*])+/uy,c_=/\*\//uy,L_=class{constructor(){this.lastIndex=0}exec(e){let E="",t,T=0;if(t=this.matchSection(Gn,e))E+=t,T++;else return null;for(;T>0;)if(t=this.matchSection(Gn,e))E+=t,T++;else if(t=this.matchSection(c_,e))E+=t,T--;else if(t=this.matchSection(C_,e))E+=t;else return null;return[E]}matchSection(e,E){e.lastIndex=this.lastIndex;const t=e.exec(E);return t&&(this.lastIndex+=t[0].length),t?t[0]:null}},u_=class{constructor(e,E){this.cfg=e,this.dialectName=E,this.rulesBeforeParams=this.buildRulesBeforeParams(e),this.rulesAfterParams=this.buildRulesAfterParams(e)}tokenize(e,E){const t=[...this.rulesBeforeParams,...this.buildParamRules(this.cfg,E),...this.rulesAfterParams],T=new __(t,this.dialectName).tokenize(e);return this.cfg.postProcess?this.cfg.postProcess(T):T}buildRulesBeforeParams(e){var E,t;return this.validRules([{type:"BLOCK_COMMENT",regex:e.nestedBlockComments?new L_:/(\/\*[^]*?\*\/)/uy},{type:"LINE_COMMENT",regex:S_((E=e.lineCommentTypes)!=null?E:["--"])},{type:"QUOTED_IDENTIFIER",regex:hn(e.identTypes)},{type:"NUMBER",regex:/(?:0x[0-9a-fA-F]+|0b[01]+|(?:-\s*)?[0-9]+(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+(?:\.[0-9]+)?)?)(?![\w\p{Alphabetic}])/uy},{type:"RESERVED_PHRASE",regex:lE((t=e.reservedPhrases)!=null?t:[],e.identChars),text:he},{type:"CASE",regex:/CASE\b/iuy,text:he},{type:"END",regex:/END\b/iuy,text:he},{type:"BETWEEN",regex:/BETWEEN\b/iuy,text:he},{type:"LIMIT",regex:e.reservedClauses.includes("LIMIT")?/LIMIT\b/iuy:void 0,text:he},{type:"RESERVED_CLAUSE",regex:lE(e.reservedClauses,e.identChars),text:he},{type:"RESERVED_SELECT",regex:lE(e.reservedSelect,e.identChars),text:he},{type:"RESERVED_SET_OPERATION",regex:lE(e.reservedSetOperations,e.identChars),text:he},{type:"WHEN",regex:/WHEN\b/iuy,text:he},{type:"ELSE",regex:/ELSE\b/iuy,text:he},{type:"THEN",regex:/THEN\b/iuy,text:he},{type:"RESERVED_JOIN",regex:lE(e.reservedJoins,e.identChars),text:he},{type:"AND",regex:/AND\b/iuy,text:he},{type:"OR",regex:/OR\b/iuy,text:he},{type:"XOR",regex:e.supportsXor?/XOR\b/iuy:void 0,text:he},{type:"RESERVED_FUNCTION_NAME",regex:lE(e.reservedFunctionNames,e.identChars),text:he},{type:"RESERVED_DATA_TYPE",regex:lE(e.reservedDataTypes,e.identChars),text:he},{type:"RESERVED_KEYWORD",regex:lE(e.reservedKeywords,e.identChars),text:he}])}buildRulesAfterParams(e){var E;return this.validRules([{type:"VARIABLE",regex:e.variableTypes?N_(e.variableTypes):void 0},{type:"STRING",regex:hn(e.stringTypes)},{type:"IDENTIFIER",regex:l_(e.identChars)},{type:"DELIMITER",regex:/[;]/uy},{type:"COMMA",regex:/[,]/y},{type:"OPEN_PAREN",regex:Mn("open",e.extraParens)},{type:"CLOSE_PAREN",regex:Mn("close",e.extraParens)},{type:"OPERATOR",regex:O_(["+","-","/",">","<","=","<>","<=",">=","!=",...(E=e.operators)!=null?E:[]])},{type:"ASTERISK",regex:/[*]/uy},{type:"DOT",regex:/[.]/uy}])}buildParamRules(e,E){var t,T,r,s,n;const R={named:(E==null?void 0:E.named)||((t=e.paramTypes)==null?void 0:t.named)||[],quoted:(E==null?void 0:E.quoted)||((T=e.paramTypes)==null?void 0:T.quoted)||[],numbered:(E==null?void 0:E.numbered)||((r=e.paramTypes)==null?void 0:r.numbered)||[],positional:typeof(E==null?void 0:E.positional)=="boolean"?E.positional:(s=e.paramTypes)==null?void 0:s.positional,custom:(E==null?void 0:E.custom)||((n=e.paramTypes)==null?void 0:n.custom)||[]};return this.validRules([{type:"NAMED_PARAMETER",regex:zT(R.named,qo(e.paramChars||e.identChars)),key:A=>A.slice(1)},{type:"QUOTED_PARAMETER",regex:zT(R.quoted,jo(e.identTypes)),key:A=>(({tokenKey:o,quoteChar:i})=>o.replace(new RegExp(EE("\\"+i),"gu"),i))({tokenKey:A.slice(2,-1),quoteChar:A.slice(-1)})},{type:"NUMBERED_PARAMETER",regex:zT(R.numbered,"[0-9]+"),key:A=>A.slice(1)},{type:"POSITIONAL_PARAMETER",regex:R.positional?/[?]/y:void 0},...R.custom.map(A=>{var o;return{type:"CUSTOM_PARAMETER",regex:WE(A.regex),key:(o=A.key)!=null?o:i=>i}})])}validRules(e){return e.filter(E=>!!E.regex)}},he=e=>oT(e.toUpperCase()),gn=new Map,p_=e=>{let E=gn.get(e);return E||(E=f_(e),gn.set(e,E)),E},f_=e=>({tokenizer:new u_(e.tokenizerOptions,e.name),formatOptions:P_(e.formatOptions)}),P_=e=>({alwaysDenseOperators:e.alwaysDenseOperators||[],onelineClauses:Object.fromEntries(e.onelineClauses.map(E=>[E,!0]))});function D_(e){return e.indentStyle==="tabularLeft"||e.indentStyle==="tabularRight"?" ".repeat(10):e.useTabs?" ":" ".repeat(e.tabWidth)}function ft(e){return e.indentStyle==="tabularLeft"||e.indentStyle==="tabularRight"}var d_=class{constructor(e){this.params=e,this.index=0}get({key:e,text:E}){return this.params?e?this.params[e]:this.params[this.index++]:E}getPositionalParameterIndex(){return this.index}setPositionalParameterIndex(e){this.index=e}};function M_(e){return e.map(U_).map(h_).map(G_).map(g_).map(m_)}var U_=(e,E,t)=>{if(Ko(e.type)){const T=H_(t,E);if(T&&T.text===".")return xe(ye({},e),{type:"IDENTIFIER",text:e.raw})}return e},h_=(e,E,t)=>{if(e.type==="RESERVED_FUNCTION_NAME"){const T=Kt(t,E);if(!T||!Zo(T))return xe(ye({},e),{type:"RESERVED_KEYWORD"})}return e},G_=(e,E,t)=>{if(e.type==="RESERVED_DATA_TYPE"){const T=Kt(t,E);if(T&&Zo(T))return xe(ye({},e),{type:"RESERVED_PARAMETERIZED_DATA_TYPE"})}return e},g_=(e,E,t)=>{if(e.type==="IDENTIFIER"){const T=Kt(t,E);if(T&&zo(T))return xe(ye({},e),{type:"ARRAY_IDENTIFIER"})}return e},m_=(e,E,t)=>{if(e.type==="RESERVED_DATA_TYPE"){const T=Kt(t,E);if(T&&zo(T))return xe(ye({},e),{type:"ARRAY_KEYWORD"})}return e},H_=(e,E)=>Kt(e,E,-1),Kt=(e,E,t=1)=>{let T=1;for(;e[E+T*t]&&y_(e[E+T*t]);)T++;return e[E+T*t]},Zo=e=>e.type==="OPEN_PAREN"&&e.text==="(",zo=e=>e.type==="OPEN_PAREN"&&e.text==="[",y_=e=>e.type==="BLOCK_COMMENT"||e.type==="LINE_COMMENT",eA=class{constructor(e){this.tokenize=e,this.index=0,this.tokens=[],this.input=""}reset(e,E){this.input=e,this.index=0,this.tokens=this.tokenize(e)}next(){return this.tokens[this.index++]}save(){}formatError(e){const{line:E,col:t}=Qo(this.input,e.start);return`Parse error at token: ${e.text} at line ${E} column ${t}`}has(e){return e in Xo}};function er(e){return e[0]}var j=new eA(e=>[]),HE=([[e]])=>e,Ge=e=>({type:"keyword",tokenType:e.type,text:e.text,raw:e.raw}),mn=e=>({type:"data_type",text:e.text,raw:e.raw}),ge=(e,{leading:E,trailing:t})=>(E!=null&&E.length&&(e=xe(ye({},e),{leadingComments:E})),t!=null&&t.length&&(e=xe(ye({},e),{trailingComments:t})),e),b_=(e,{leading:E,trailing:t})=>{if(E!=null&&E.length){const[T,...r]=e;e=[ge(T,{leading:E}),...r]}if(t!=null&&t.length){const T=e.slice(0,-1),r=e[e.length-1];e=[...T,ge(r,{trailing:t})]}return e},B_={Lexer:j,ParserRules:[{name:"main$ebnf$1",symbols:[]},{name:"main$ebnf$1",symbols:["main$ebnf$1","statement"],postprocess:e=>e[0].concat([e[1]])},{name:"main",symbols:["main$ebnf$1"],postprocess:([e])=>{const E=e[e.length-1];return E&&!E.hasSemicolon?E.children.length>0?e:e.slice(0,-1):e}},{name:"statement$subexpression$1",symbols:[j.has("DELIMITER")?{type:"DELIMITER"}:DELIMITER]},{name:"statement$subexpression$1",symbols:[j.has("EOF")?{type:"EOF"}:EOF]},{name:"statement",symbols:["expressions_or_clauses","statement$subexpression$1"],postprocess:([e,[E]])=>({type:"statement",children:e,hasSemicolon:E.type==="DELIMITER"})},{name:"expressions_or_clauses$ebnf$1",symbols:[]},{name:"expressions_or_clauses$ebnf$1",symbols:["expressions_or_clauses$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"expressions_or_clauses$ebnf$2",symbols:[]},{name:"expressions_or_clauses$ebnf$2",symbols:["expressions_or_clauses$ebnf$2","clause"],postprocess:e=>e[0].concat([e[1]])},{name:"expressions_or_clauses",symbols:["expressions_or_clauses$ebnf$1","expressions_or_clauses$ebnf$2"],postprocess:([e,E])=>[...e,...E]},{name:"clause$subexpression$1",symbols:["limit_clause"]},{name:"clause$subexpression$1",symbols:["select_clause"]},{name:"clause$subexpression$1",symbols:["other_clause"]},{name:"clause$subexpression$1",symbols:["set_operation"]},{name:"clause",symbols:["clause$subexpression$1"],postprocess:HE},{name:"limit_clause$ebnf$1$subexpression$1$ebnf$1",symbols:["free_form_sql"]},{name:"limit_clause$ebnf$1$subexpression$1$ebnf$1",symbols:["limit_clause$ebnf$1$subexpression$1$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"limit_clause$ebnf$1$subexpression$1",symbols:[j.has("COMMA")?{type:"COMMA"}:COMMA,"limit_clause$ebnf$1$subexpression$1$ebnf$1"]},{name:"limit_clause$ebnf$1",symbols:["limit_clause$ebnf$1$subexpression$1"],postprocess:er},{name:"limit_clause$ebnf$1",symbols:[],postprocess:()=>null},{name:"limit_clause",symbols:[j.has("LIMIT")?{type:"LIMIT"}:LIMIT,"_","expression_chain_","limit_clause$ebnf$1"],postprocess:([e,E,t,T])=>{if(T){const[r,s]=T;return{type:"limit_clause",limitKw:ge(Ge(e),{trailing:E}),offset:t,count:s}}else return{type:"limit_clause",limitKw:ge(Ge(e),{trailing:E}),count:t}}},{name:"select_clause$subexpression$1$ebnf$1",symbols:[]},{name:"select_clause$subexpression$1$ebnf$1",symbols:["select_clause$subexpression$1$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"select_clause$subexpression$1",symbols:["all_columns_asterisk","select_clause$subexpression$1$ebnf$1"]},{name:"select_clause$subexpression$1$ebnf$2",symbols:[]},{name:"select_clause$subexpression$1$ebnf$2",symbols:["select_clause$subexpression$1$ebnf$2","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"select_clause$subexpression$1",symbols:["asteriskless_free_form_sql","select_clause$subexpression$1$ebnf$2"]},{name:"select_clause",symbols:[j.has("RESERVED_SELECT")?{type:"RESERVED_SELECT"}:RESERVED_SELECT,"select_clause$subexpression$1"],postprocess:([e,[E,t]])=>({type:"clause",nameKw:Ge(e),children:[E,...t]})},{name:"select_clause",symbols:[j.has("RESERVED_SELECT")?{type:"RESERVED_SELECT"}:RESERVED_SELECT],postprocess:([e])=>({type:"clause",nameKw:Ge(e),children:[]})},{name:"all_columns_asterisk",symbols:[j.has("ASTERISK")?{type:"ASTERISK"}:ASTERISK],postprocess:()=>({type:"all_columns_asterisk"})},{name:"other_clause$ebnf$1",symbols:[]},{name:"other_clause$ebnf$1",symbols:["other_clause$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"other_clause",symbols:[j.has("RESERVED_CLAUSE")?{type:"RESERVED_CLAUSE"}:RESERVED_CLAUSE,"other_clause$ebnf$1"],postprocess:([e,E])=>({type:"clause",nameKw:Ge(e),children:E})},{name:"set_operation$ebnf$1",symbols:[]},{name:"set_operation$ebnf$1",symbols:["set_operation$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"set_operation",symbols:[j.has("RESERVED_SET_OPERATION")?{type:"RESERVED_SET_OPERATION"}:RESERVED_SET_OPERATION,"set_operation$ebnf$1"],postprocess:([e,E])=>({type:"set_operation",nameKw:Ge(e),children:E})},{name:"expression_chain_$ebnf$1",symbols:["expression_with_comments_"]},{name:"expression_chain_$ebnf$1",symbols:["expression_chain_$ebnf$1","expression_with_comments_"],postprocess:e=>e[0].concat([e[1]])},{name:"expression_chain_",symbols:["expression_chain_$ebnf$1"],postprocess:er},{name:"expression_chain$ebnf$1",symbols:[]},{name:"expression_chain$ebnf$1",symbols:["expression_chain$ebnf$1","_expression_with_comments"],postprocess:e=>e[0].concat([e[1]])},{name:"expression_chain",symbols:["expression","expression_chain$ebnf$1"],postprocess:([e,E])=>[e,...E]},{name:"andless_expression_chain$ebnf$1",symbols:[]},{name:"andless_expression_chain$ebnf$1",symbols:["andless_expression_chain$ebnf$1","_andless_expression_with_comments"],postprocess:e=>e[0].concat([e[1]])},{name:"andless_expression_chain",symbols:["andless_expression","andless_expression_chain$ebnf$1"],postprocess:([e,E])=>[e,...E]},{name:"expression_with_comments_",symbols:["expression","_"],postprocess:([e,E])=>ge(e,{trailing:E})},{name:"_expression_with_comments",symbols:["_","expression"],postprocess:([e,E])=>ge(E,{leading:e})},{name:"_andless_expression_with_comments",symbols:["_","andless_expression"],postprocess:([e,E])=>ge(E,{leading:e})},{name:"free_form_sql$subexpression$1",symbols:["asteriskless_free_form_sql"]},{name:"free_form_sql$subexpression$1",symbols:["asterisk"]},{name:"free_form_sql",symbols:["free_form_sql$subexpression$1"],postprocess:HE},{name:"asteriskless_free_form_sql$subexpression$1",symbols:["asteriskless_andless_expression"]},{name:"asteriskless_free_form_sql$subexpression$1",symbols:["logic_operator"]},{name:"asteriskless_free_form_sql$subexpression$1",symbols:["comma"]},{name:"asteriskless_free_form_sql$subexpression$1",symbols:["comment"]},{name:"asteriskless_free_form_sql$subexpression$1",symbols:["other_keyword"]},{name:"asteriskless_free_form_sql",symbols:["asteriskless_free_form_sql$subexpression$1"],postprocess:HE},{name:"expression$subexpression$1",symbols:["andless_expression"]},{name:"expression$subexpression$1",symbols:["logic_operator"]},{name:"expression",symbols:["expression$subexpression$1"],postprocess:HE},{name:"andless_expression$subexpression$1",symbols:["asteriskless_andless_expression"]},{name:"andless_expression$subexpression$1",symbols:["asterisk"]},{name:"andless_expression",symbols:["andless_expression$subexpression$1"],postprocess:HE},{name:"asteriskless_andless_expression$subexpression$1",symbols:["atomic_expression"]},{name:"asteriskless_andless_expression$subexpression$1",symbols:["between_predicate"]},{name:"asteriskless_andless_expression$subexpression$1",symbols:["case_expression"]},{name:"asteriskless_andless_expression",symbols:["asteriskless_andless_expression$subexpression$1"],postprocess:HE},{name:"atomic_expression$subexpression$1",symbols:["array_subscript"]},{name:"atomic_expression$subexpression$1",symbols:["function_call"]},{name:"atomic_expression$subexpression$1",symbols:["property_access"]},{name:"atomic_expression$subexpression$1",symbols:["parenthesis"]},{name:"atomic_expression$subexpression$1",symbols:["curly_braces"]},{name:"atomic_expression$subexpression$1",symbols:["square_brackets"]},{name:"atomic_expression$subexpression$1",symbols:["operator"]},{name:"atomic_expression$subexpression$1",symbols:["identifier"]},{name:"atomic_expression$subexpression$1",symbols:["parameter"]},{name:"atomic_expression$subexpression$1",symbols:["literal"]},{name:"atomic_expression$subexpression$1",symbols:["data_type"]},{name:"atomic_expression$subexpression$1",symbols:["keyword"]},{name:"atomic_expression",symbols:["atomic_expression$subexpression$1"],postprocess:HE},{name:"array_subscript",symbols:[j.has("ARRAY_IDENTIFIER")?{type:"ARRAY_IDENTIFIER"}:ARRAY_IDENTIFIER,"_","square_brackets"],postprocess:([e,E,t])=>({type:"array_subscript",array:ge({type:"identifier",quoted:!1,text:e.text},{trailing:E}),parenthesis:t})},{name:"array_subscript",symbols:[j.has("ARRAY_KEYWORD")?{type:"ARRAY_KEYWORD"}:ARRAY_KEYWORD,"_","square_brackets"],postprocess:([e,E,t])=>({type:"array_subscript",array:ge(Ge(e),{trailing:E}),parenthesis:t})},{name:"function_call",symbols:[j.has("RESERVED_FUNCTION_NAME")?{type:"RESERVED_FUNCTION_NAME"}:RESERVED_FUNCTION_NAME,"_","parenthesis"],postprocess:([e,E,t])=>({type:"function_call",nameKw:ge(Ge(e),{trailing:E}),parenthesis:t})},{name:"parenthesis",symbols:[{literal:"("},"expressions_or_clauses",{literal:")"}],postprocess:([e,E,t])=>({type:"parenthesis",children:E,openParen:"(",closeParen:")"})},{name:"curly_braces$ebnf$1",symbols:[]},{name:"curly_braces$ebnf$1",symbols:["curly_braces$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"curly_braces",symbols:[{literal:"{"},"curly_braces$ebnf$1",{literal:"}"}],postprocess:([e,E,t])=>({type:"parenthesis",children:E,openParen:"{",closeParen:"}"})},{name:"square_brackets$ebnf$1",symbols:[]},{name:"square_brackets$ebnf$1",symbols:["square_brackets$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"square_brackets",symbols:[{literal:"["},"square_brackets$ebnf$1",{literal:"]"}],postprocess:([e,E,t])=>({type:"parenthesis",children:E,openParen:"[",closeParen:"]"})},{name:"property_access$subexpression$1",symbols:["identifier"]},{name:"property_access$subexpression$1",symbols:["array_subscript"]},{name:"property_access$subexpression$1",symbols:["all_columns_asterisk"]},{name:"property_access$subexpression$1",symbols:["parameter"]},{name:"property_access",symbols:["atomic_expression","_",j.has("DOT")?{type:"DOT"}:DOT,"_","property_access$subexpression$1"],postprocess:([e,E,t,T,[r]])=>({type:"property_access",object:ge(e,{trailing:E}),property:ge(r,{leading:T})})},{name:"between_predicate",symbols:[j.has("BETWEEN")?{type:"BETWEEN"}:BETWEEN,"_","andless_expression_chain","_",j.has("AND")?{type:"AND"}:AND,"_","andless_expression"],postprocess:([e,E,t,T,r,s,n])=>({type:"between_predicate",betweenKw:Ge(e),expr1:b_(t,{leading:E,trailing:T}),andKw:Ge(r),expr2:[ge(n,{leading:s})]})},{name:"case_expression$ebnf$1",symbols:["expression_chain_"],postprocess:er},{name:"case_expression$ebnf$1",symbols:[],postprocess:()=>null},{name:"case_expression$ebnf$2",symbols:[]},{name:"case_expression$ebnf$2",symbols:["case_expression$ebnf$2","case_clause"],postprocess:e=>e[0].concat([e[1]])},{name:"case_expression",symbols:[j.has("CASE")?{type:"CASE"}:CASE,"_","case_expression$ebnf$1","case_expression$ebnf$2",j.has("END")?{type:"END"}:END],postprocess:([e,E,t,T,r])=>({type:"case_expression",caseKw:ge(Ge(e),{trailing:E}),endKw:Ge(r),expr:t||[],clauses:T})},{name:"case_clause",symbols:[j.has("WHEN")?{type:"WHEN"}:WHEN,"_","expression_chain_",j.has("THEN")?{type:"THEN"}:THEN,"_","expression_chain_"],postprocess:([e,E,t,T,r,s])=>({type:"case_when",whenKw:ge(Ge(e),{trailing:E}),thenKw:ge(Ge(T),{trailing:r}),condition:t,result:s})},{name:"case_clause",symbols:[j.has("ELSE")?{type:"ELSE"}:ELSE,"_","expression_chain_"],postprocess:([e,E,t])=>({type:"case_else",elseKw:ge(Ge(e),{trailing:E}),result:t})},{name:"comma$subexpression$1",symbols:[j.has("COMMA")?{type:"COMMA"}:COMMA]},{name:"comma",symbols:["comma$subexpression$1"],postprocess:([[e]])=>({type:"comma"})},{name:"asterisk$subexpression$1",symbols:[j.has("ASTERISK")?{type:"ASTERISK"}:ASTERISK]},{name:"asterisk",symbols:["asterisk$subexpression$1"],postprocess:([[e]])=>({type:"operator",text:e.text})},{name:"operator$subexpression$1",symbols:[j.has("OPERATOR")?{type:"OPERATOR"}:OPERATOR]},{name:"operator",symbols:["operator$subexpression$1"],postprocess:([[e]])=>({type:"operator",text:e.text})},{name:"identifier$subexpression$1",symbols:[j.has("IDENTIFIER")?{type:"IDENTIFIER"}:IDENTIFIER]},{name:"identifier$subexpression$1",symbols:[j.has("QUOTED_IDENTIFIER")?{type:"QUOTED_IDENTIFIER"}:QUOTED_IDENTIFIER]},{name:"identifier$subexpression$1",symbols:[j.has("VARIABLE")?{type:"VARIABLE"}:VARIABLE]},{name:"identifier",symbols:["identifier$subexpression$1"],postprocess:([[e]])=>({type:"identifier",quoted:e.type!=="IDENTIFIER",text:e.text})},{name:"parameter$subexpression$1",symbols:[j.has("NAMED_PARAMETER")?{type:"NAMED_PARAMETER"}:NAMED_PARAMETER]},{name:"parameter$subexpression$1",symbols:[j.has("QUOTED_PARAMETER")?{type:"QUOTED_PARAMETER"}:QUOTED_PARAMETER]},{name:"parameter$subexpression$1",symbols:[j.has("NUMBERED_PARAMETER")?{type:"NUMBERED_PARAMETER"}:NUMBERED_PARAMETER]},{name:"parameter$subexpression$1",symbols:[j.has("POSITIONAL_PARAMETER")?{type:"POSITIONAL_PARAMETER"}:POSITIONAL_PARAMETER]},{name:"parameter$subexpression$1",symbols:[j.has("CUSTOM_PARAMETER")?{type:"CUSTOM_PARAMETER"}:CUSTOM_PARAMETER]},{name:"parameter",symbols:["parameter$subexpression$1"],postprocess:([[e]])=>({type:"parameter",key:e.key,text:e.text})},{name:"literal$subexpression$1",symbols:[j.has("NUMBER")?{type:"NUMBER"}:NUMBER]},{name:"literal$subexpression$1",symbols:[j.has("STRING")?{type:"STRING"}:STRING]},{name:"literal",symbols:["literal$subexpression$1"],postprocess:([[e]])=>({type:"literal",text:e.text})},{name:"keyword$subexpression$1",symbols:[j.has("RESERVED_KEYWORD")?{type:"RESERVED_KEYWORD"}:RESERVED_KEYWORD]},{name:"keyword$subexpression$1",symbols:[j.has("RESERVED_PHRASE")?{type:"RESERVED_PHRASE"}:RESERVED_PHRASE]},{name:"keyword$subexpression$1",symbols:[j.has("RESERVED_JOIN")?{type:"RESERVED_JOIN"}:RESERVED_JOIN]},{name:"keyword",symbols:["keyword$subexpression$1"],postprocess:([[e]])=>Ge(e)},{name:"data_type$subexpression$1",symbols:[j.has("RESERVED_DATA_TYPE")?{type:"RESERVED_DATA_TYPE"}:RESERVED_DATA_TYPE]},{name:"data_type",symbols:["data_type$subexpression$1"],postprocess:([[e]])=>mn(e)},{name:"data_type",symbols:[j.has("RESERVED_PARAMETERIZED_DATA_TYPE")?{type:"RESERVED_PARAMETERIZED_DATA_TYPE"}:RESERVED_PARAMETERIZED_DATA_TYPE,"_","parenthesis"],postprocess:([e,E,t])=>({type:"parameterized_data_type",dataType:ge(mn(e),{trailing:E}),parenthesis:t})},{name:"logic_operator$subexpression$1",symbols:[j.has("AND")?{type:"AND"}:AND]},{name:"logic_operator$subexpression$1",symbols:[j.has("OR")?{type:"OR"}:OR]},{name:"logic_operator$subexpression$1",symbols:[j.has("XOR")?{type:"XOR"}:XOR]},{name:"logic_operator",symbols:["logic_operator$subexpression$1"],postprocess:([[e]])=>Ge(e)},{name:"other_keyword$subexpression$1",symbols:[j.has("WHEN")?{type:"WHEN"}:WHEN]},{name:"other_keyword$subexpression$1",symbols:[j.has("THEN")?{type:"THEN"}:THEN]},{name:"other_keyword$subexpression$1",symbols:[j.has("ELSE")?{type:"ELSE"}:ELSE]},{name:"other_keyword$subexpression$1",symbols:[j.has("END")?{type:"END"}:END]},{name:"other_keyword",symbols:["other_keyword$subexpression$1"],postprocess:([[e]])=>Ge(e)},{name:"_$ebnf$1",symbols:[]},{name:"_$ebnf$1",symbols:["_$ebnf$1","comment"],postprocess:e=>e[0].concat([e[1]])},{name:"_",symbols:["_$ebnf$1"],postprocess:([e])=>e},{name:"comment",symbols:[j.has("LINE_COMMENT")?{type:"LINE_COMMENT"}:LINE_COMMENT],postprocess:([e])=>({type:"line_comment",text:e.text,precedingWhitespace:e.precedingWhitespace})},{name:"comment",symbols:[j.has("BLOCK_COMMENT")?{type:"BLOCK_COMMENT"}:BLOCK_COMMENT],postprocess:([e])=>({type:"block_comment",text:e.text,precedingWhitespace:e.precedingWhitespace})}],ParserStart:"main"},F_=B_,{Parser:v_,Grammar:Y_}=Qa;function x_(e){let E={};const t=new eA(r=>[...M_(e.tokenize(r,E)),$o(r.length)]),T=new v_(Y_.fromCompiled(F_),{lexer:t});return{parse:(r,s)=>{E=s;const{results:n}=T.feed(r);if(n.length===1)return n[0];throw n.length===0?new Error("Parse error: Invalid SQL"):new Error(`Parse error: Ambiguous grammar
|
22
|
+
${JSON.stringify(n,void 0,2)}`)}}}var EA=class{constructor(e){this.indentation=e,this.items=[]}add(...e){for(const E of e)switch(E){case 0:this.items.push(0);break;case 1:this.trimHorizontalWhitespace();break;case 2:this.trimWhitespace();break;case 3:this.trimHorizontalWhitespace(),this.addNewline(3);break;case 4:this.trimHorizontalWhitespace(),this.addNewline(4);break;case 5:this.addIndentation();break;case 6:this.items.push(6);break;default:this.items.push(E)}}trimHorizontalWhitespace(){for(;V_(bt(this.items));)this.items.pop()}trimWhitespace(){for(;w_(bt(this.items));)this.items.pop()}addNewline(e){if(this.items.length>0)switch(bt(this.items)){case 3:this.items.pop(),this.items.push(e);break;case 4:break;default:this.items.push(e);break}}addIndentation(){for(let e=0;e<this.indentation.getLevel();e++)this.items.push(6)}toString(){return this.items.map(e=>this.itemToString(e)).join("")}getLayoutItems(){return this.items}itemToString(e){switch(e){case 0:return" ";case 3:case 4:return`
|
23
|
+
`;case 6:return this.indentation.getSingleIndent();default:return e}}},V_=e=>e===0||e===6,w_=e=>e===0||e===6||e===3;function Hn(e,E){if(E==="standard")return e;let t=[];return e.length>=10&&e.includes(" ")&&([e,...t]=e.split(" ")),E==="tabularLeft"?e=e.padEnd(9," "):e=e.padStart(9," "),e+["",...t].join(" ")}function yn(e){return iI(e)||e==="RESERVED_CLAUSE"||e==="RESERVED_SELECT"||e==="RESERVED_SET_OPERATION"||e==="RESERVED_JOIN"||e==="LIMIT"}var Er="top-level",W_="block-level",tA=class{constructor(e){this.indent=e,this.indentTypes=[]}getSingleIndent(){return this.indent}getLevel(){return this.indentTypes.length}increaseTopLevel(){this.indentTypes.push(Er)}increaseBlockLevel(){this.indentTypes.push(W_)}decreaseTopLevel(){this.indentTypes.length>0&&bt(this.indentTypes)===Er&&this.indentTypes.pop()}decreaseBlockLevel(){for(;this.indentTypes.length>0&&this.indentTypes.pop()===Er;);}},X_=class extends EA{constructor(e){super(new tA("")),this.expressionWidth=e,this.length=0,this.trailingSpace=!1}add(...e){if(e.forEach(E=>this.addToLength(E)),this.length>this.expressionWidth)throw new Lr;super.add(...e)}addToLength(e){if(typeof e=="string")this.length+=e.length,this.trailingSpace=!1;else{if(e===4||e===3)throw new Lr;e===5||e===6||e===0?this.trailingSpace||(this.length++,this.trailingSpace=!0):(e===2||e===1)&&this.trailingSpace&&(this.trailingSpace=!1,this.length--)}}},Lr=class extends Error{},$_=class ur{constructor({cfg:E,dialectCfg:t,params:T,layout:r,inline:s=!1}){this.inline=!1,this.nodes=[],this.index=-1,this.cfg=E,this.dialectCfg=t,this.inline=s,this.params=T,this.layout=r}format(E){for(this.nodes=E,this.index=0;this.index<this.nodes.length;this.index++)this.formatNode(this.nodes[this.index]);return this.layout}formatNode(E){this.formatComments(E.leadingComments),this.formatNodeWithoutComments(E),this.formatComments(E.trailingComments)}formatNodeWithoutComments(E){switch(E.type){case"function_call":return this.formatFunctionCall(E);case"parameterized_data_type":return this.formatParameterizedDataType(E);case"array_subscript":return this.formatArraySubscript(E);case"property_access":return this.formatPropertyAccess(E);case"parenthesis":return this.formatParenthesis(E);case"between_predicate":return this.formatBetweenPredicate(E);case"case_expression":return this.formatCaseExpression(E);case"case_when":return this.formatCaseWhen(E);case"case_else":return this.formatCaseElse(E);case"clause":return this.formatClause(E);case"set_operation":return this.formatSetOperation(E);case"limit_clause":return this.formatLimitClause(E);case"all_columns_asterisk":return this.formatAllColumnsAsterisk(E);case"literal":return this.formatLiteral(E);case"identifier":return this.formatIdentifier(E);case"parameter":return this.formatParameter(E);case"operator":return this.formatOperator(E);case"comma":return this.formatComma(E);case"line_comment":return this.formatLineComment(E);case"block_comment":return this.formatBlockComment(E);case"data_type":return this.formatDataType(E);case"keyword":return this.formatKeywordNode(E)}}formatFunctionCall(E){this.withComments(E.nameKw,()=>{this.layout.add(this.showFunctionKw(E.nameKw))}),this.formatNode(E.parenthesis)}formatParameterizedDataType(E){this.withComments(E.dataType,()=>{this.layout.add(this.showDataType(E.dataType))}),this.formatNode(E.parenthesis)}formatArraySubscript(E){let t;switch(E.array.type){case"data_type":t=this.showDataType(E.array);break;case"keyword":t=this.showKw(E.array);break;default:t=this.showIdentifier(E.array);break}this.withComments(E.array,()=>{this.layout.add(t)}),this.formatNode(E.parenthesis)}formatPropertyAccess(E){this.formatNode(E.object),this.layout.add(1,"."),this.formatNode(E.property)}formatParenthesis(E){const t=this.formatInlineExpression(E.children);t?(this.layout.add(E.openParen),this.layout.add(...t.getLayoutItems()),this.layout.add(1,E.closeParen,0)):(this.layout.add(E.openParen,3),ft(this.cfg)?(this.layout.add(5),this.layout=this.formatSubExpression(E.children)):(this.layout.indentation.increaseBlockLevel(),this.layout.add(5),this.layout=this.formatSubExpression(E.children),this.layout.indentation.decreaseBlockLevel()),this.layout.add(3,5,E.closeParen,0))}formatBetweenPredicate(E){this.layout.add(this.showKw(E.betweenKw),0),this.layout=this.formatSubExpression(E.expr1),this.layout.add(1,0,this.showNonTabularKw(E.andKw),0),this.layout=this.formatSubExpression(E.expr2),this.layout.add(0)}formatCaseExpression(E){this.formatNode(E.caseKw),this.layout.indentation.increaseBlockLevel(),this.layout=this.formatSubExpression(E.expr),this.layout=this.formatSubExpression(E.clauses),this.layout.indentation.decreaseBlockLevel(),this.layout.add(3,5),this.formatNode(E.endKw)}formatCaseWhen(E){this.layout.add(3,5),this.formatNode(E.whenKw),this.layout=this.formatSubExpression(E.condition),this.formatNode(E.thenKw),this.layout=this.formatSubExpression(E.result)}formatCaseElse(E){this.layout.add(3,5),this.formatNode(E.elseKw),this.layout=this.formatSubExpression(E.result)}formatClause(E){this.isOnelineClause(E)?this.formatClauseInOnelineStyle(E):ft(this.cfg)?this.formatClauseInTabularStyle(E):this.formatClauseInIndentedStyle(E)}isOnelineClause(E){return this.dialectCfg.onelineClauses[E.nameKw.text]}formatClauseInIndentedStyle(E){this.layout.add(3,5,this.showKw(E.nameKw),3),this.layout.indentation.increaseTopLevel(),this.layout.add(5),this.layout=this.formatSubExpression(E.children),this.layout.indentation.decreaseTopLevel()}formatClauseInOnelineStyle(E){this.layout.add(3,5,this.showKw(E.nameKw),0),this.layout=this.formatSubExpression(E.children)}formatClauseInTabularStyle(E){this.layout.add(3,5,this.showKw(E.nameKw),0),this.layout.indentation.increaseTopLevel(),this.layout=this.formatSubExpression(E.children),this.layout.indentation.decreaseTopLevel()}formatSetOperation(E){this.layout.add(3,5,this.showKw(E.nameKw),3),this.layout.add(5),this.layout=this.formatSubExpression(E.children)}formatLimitClause(E){this.withComments(E.limitKw,()=>{this.layout.add(3,5,this.showKw(E.limitKw))}),this.layout.indentation.increaseTopLevel(),ft(this.cfg)?this.layout.add(0):this.layout.add(3,5),E.offset?(this.layout=this.formatSubExpression(E.offset),this.layout.add(1,",",0),this.layout=this.formatSubExpression(E.count)):this.layout=this.formatSubExpression(E.count),this.layout.indentation.decreaseTopLevel()}formatAllColumnsAsterisk(E){this.layout.add("*",0)}formatLiteral(E){this.layout.add(E.text,0)}formatIdentifier(E){this.layout.add(this.showIdentifier(E),0)}formatParameter(E){this.layout.add(this.params.get(E),0)}formatOperator({text:E}){this.cfg.denseOperators||this.dialectCfg.alwaysDenseOperators.includes(E)?this.layout.add(1,E):E===":"?this.layout.add(1,E,0):this.layout.add(E,0)}formatComma(E){this.inline?this.layout.add(1,",",0):this.layout.add(1,",",3,5)}withComments(E,t){this.formatComments(E.leadingComments),t(),this.formatComments(E.trailingComments)}formatComments(E){E&&E.forEach(t=>{t.type==="line_comment"?this.formatLineComment(t):this.formatBlockComment(t)})}formatLineComment(E){ZT(E.precedingWhitespace||"")?this.layout.add(3,5,E.text,4,5):this.layout.getLayoutItems().length>0?this.layout.add(2,0,E.text,4,5):this.layout.add(E.text,4,5)}formatBlockComment(E){this.isMultilineBlockComment(E)?(this.splitBlockComment(E.text).forEach(t=>{this.layout.add(3,5,t)}),this.layout.add(3,5)):this.layout.add(E.text,0)}isMultilineBlockComment(E){return ZT(E.text)||ZT(E.precedingWhitespace||"")}isDocComment(E){const t=E.split(/\n/);return/^\/\*\*?$/.test(t[0])&&t.slice(1,t.length-1).every(T=>/^\s*\*/.test(T))&&/^\s*\*\/$/.test(bt(t))}splitBlockComment(E){return this.isDocComment(E)?E.split(/\n/).map(t=>/^\s*\*/.test(t)?" "+t.replace(/^\s*/,""):t):E.split(/\n/).map(t=>t.replace(/^\s*/,""))}formatSubExpression(E){return new ur({cfg:this.cfg,dialectCfg:this.dialectCfg,params:this.params,layout:this.layout,inline:this.inline}).format(E)}formatInlineExpression(E){const t=this.params.getPositionalParameterIndex();try{return new ur({cfg:this.cfg,dialectCfg:this.dialectCfg,params:this.params,layout:new X_(this.cfg.expressionWidth),inline:!0}).format(E)}catch(T){if(T instanceof Lr){this.params.setPositionalParameterIndex(t);return}else throw T}}formatKeywordNode(E){switch(E.tokenType){case"RESERVED_JOIN":return this.formatJoin(E);case"AND":case"OR":case"XOR":return this.formatLogicalOperator(E);default:return this.formatKeyword(E)}}formatJoin(E){ft(this.cfg)?(this.layout.indentation.decreaseTopLevel(),this.layout.add(3,5,this.showKw(E),0),this.layout.indentation.increaseTopLevel()):this.layout.add(3,5,this.showKw(E),0)}formatKeyword(E){this.layout.add(this.showKw(E),0)}formatLogicalOperator(E){this.cfg.logicalOperatorNewline==="before"?ft(this.cfg)?(this.layout.indentation.decreaseTopLevel(),this.layout.add(3,5,this.showKw(E),0),this.layout.indentation.increaseTopLevel()):this.layout.add(3,5,this.showKw(E),0):this.layout.add(this.showKw(E),3,5)}formatDataType(E){this.layout.add(this.showDataType(E),0)}showKw(E){return yn(E.tokenType)?Hn(this.showNonTabularKw(E),this.cfg.indentStyle):this.showNonTabularKw(E)}showNonTabularKw(E){switch(this.cfg.keywordCase){case"preserve":return oT(E.raw);case"upper":return E.text;case"lower":return E.text.toLowerCase()}}showFunctionKw(E){return yn(E.tokenType)?Hn(this.showNonTabularFunctionKw(E),this.cfg.indentStyle):this.showNonTabularFunctionKw(E)}showNonTabularFunctionKw(E){switch(this.cfg.functionCase){case"preserve":return oT(E.raw);case"upper":return E.text;case"lower":return E.text.toLowerCase()}}showIdentifier(E){if(E.quoted)return E.text;switch(this.cfg.identifierCase){case"preserve":return E.text;case"upper":return E.text.toUpperCase();case"lower":return E.text.toLowerCase()}}showDataType(E){switch(this.cfg.dataTypeCase){case"preserve":return oT(E.raw);case"upper":return E.text;case"lower":return E.text.toLowerCase()}}},K_=class{constructor(e,E){this.dialect=e,this.cfg=E,this.params=new d_(this.cfg.params)}format(e){const E=this.parse(e);return this.formatAst(E).trimEnd()}parse(e){return x_(this.dialect.tokenizer).parse(e,this.cfg.paramTypes||{})}formatAst(e){return e.map(E=>this.formatStatement(E)).join(`
|
24
|
+
`.repeat(this.cfg.linesBetweenQueries+1))}formatStatement(e){const E=new $_({cfg:this.cfg,dialectCfg:this.dialect.formatOptions,params:this.params,layout:new EA(new tA(D_(this.cfg)))}).format(e.children);return e.hasSemicolon&&(this.cfg.newlineBeforeSemicolon?E.add(3,";"):E.add(2,";")),E.toString()}},pr=class extends Error{};function J_(e){const E=["multilineLists","newlineBeforeOpenParen","newlineBeforeCloseParen","aliasAs","commaPosition","tabulateAlias"];for(const t of E)if(t in e)throw new pr(`${t} config is no more supported.`);if(e.expressionWidth<=0)throw new pr(`expressionWidth config must be positive number. Received ${e.expressionWidth} instead.`);return e.params&&!k_(e.params)&&console.warn('WARNING: All "params" option values should be strings.'),e}function k_(e){return(e instanceof Array?e:Object.values(e)).every(t=>typeof t=="string")}var TA={bigquery:"bigquery",db2:"db2",db2i:"db2i",hive:"hive",mariadb:"mariadb",mysql:"mysql",n1ql:"n1ql",plsql:"plsql",postgresql:"postgresql",redshift:"redshift",spark:"spark",sqlite:"sqlite",sql:"sql",trino:"trino",transactsql:"transactsql",tsql:"transactsql",singlestoredb:"singlestoredb",snowflake:"snowflake"},j_=Object.keys(TA),q_={tabWidth:2,useTabs:!1,keywordCase:"preserve",identifierCase:"preserve",dataTypeCase:"preserve",functionCase:"preserve",indentStyle:"standard",logicalOperatorNewline:"before",expressionWidth:50,linesBetweenQueries:1,denseOperators:!1,newlineBeforeSemicolon:!1},Q_=(e,E={})=>{if(typeof E.language=="string"&&!j_.includes(E.language))throw new pr(`Unsupported SQL dialect: ${E.language}`);const t=TA[E.language||"sql"];return Z_(e,xe(ye({},E),{dialect:Wo[t]}))},Z_=(e,E)=>{var t=E,{dialect:T}=t,r=eI(t,["dialect"]);if(typeof e!="string")throw new Error("Invalid query argument. Expected string, instead got "+typeof e);const s=J_(ye(ye({},q_),r));return new K_(p_(T),s).format(e)};function z_(e,E,t){switch(t.length){case 0:return e.call(E);case 1:return e.call(E,t[0]);case 2:return e.call(E,t[0],t[1]);case 3:return e.call(E,t[0],t[1],t[2])}return e.apply(E,t)}var rA=z_;function eC(e){return e}var sA=eC,EC=rA,bn=Math.max;function tC(e,E,t){return E=bn(E===void 0?e.length-1:E,0),function(){for(var T=arguments,r=-1,s=bn(T.length-E,0),n=Array(s);++r<s;)n[r]=T[E+r];r=-1;for(var R=Array(E+1);++r<E;)R[r]=T[r];return R[E]=t(n),EC(e,this,R)}}var nA=tC;function TC(e){return function(){return e}}var rC=TC,sC=typeof qE=="object"&&qE&&qE.Object===Object&&qE,RA=sC,nC=RA,RC=typeof self=="object"&&self&&self.Object===Object&&self,oC=nC||RC||Function("return this")(),oE=oC,AC=oE,iC=AC.Symbol,Jt=iC,Bn=Jt,oA=Object.prototype,SC=oA.hasOwnProperty,OC=oA.toString,Pt=Bn?Bn.toStringTag:void 0;function aC(e){var E=SC.call(e,Pt),t=e[Pt];try{e[Pt]=void 0;var T=!0}catch{}var r=OC.call(e);return T&&(E?e[Pt]=t:delete e[Pt]),r}var IC=aC,NC=Object.prototype,lC=NC.toString;function _C(e){return lC.call(e)}var CC=_C,Fn=Jt,cC=IC,LC=CC,uC="[object Null]",pC="[object Undefined]",vn=Fn?Fn.toStringTag:void 0;function fC(e){return e==null?e===void 0?pC:uC:vn&&vn in Object(e)?cC(e):LC(e)}var Ot=fC;function PC(e){var E=typeof e;return e!=null&&(E=="object"||E=="function")}var IE=PC,DC=Ot,dC=IE,MC="[object AsyncFunction]",UC="[object Function]",hC="[object GeneratorFunction]",GC="[object Proxy]";function gC(e){if(!dC(e))return!1;var E=DC(e);return E==UC||E==hC||E==MC||E==GC}var zr=gC,mC=oE,HC=mC["__core-js_shared__"],yC=HC,tr=yC,Yn=function(){var e=/[^.]+$/.exec(tr&&tr.keys&&tr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function bC(e){return!!Yn&&Yn in e}var BC=bC,FC=Function.prototype,vC=FC.toString;function YC(e){if(e!=null){try{return vC.call(e)}catch{}try{return e+""}catch{}}return""}var AA=YC,xC=zr,VC=BC,wC=IE,WC=AA,XC=/[\\^$.*+?()[\]{}|]/g,$C=/^\[object .+?Constructor\]$/,KC=Function.prototype,JC=Object.prototype,kC=KC.toString,jC=JC.hasOwnProperty,qC=RegExp("^"+kC.call(jC).replace(XC,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function QC(e){if(!wC(e)||VC(e))return!1;var E=xC(e)?qC:$C;return E.test(WC(e))}var ZC=QC;function zC(e,E){return e==null?void 0:e[E]}var ec=zC,Ec=ZC,tc=ec;function Tc(e,E){var t=tc(e,E);return Ec(t)?t:void 0}var XE=Tc,rc=XE,sc=function(){try{var e=rc(Object,"defineProperty");return e({},"",{}),e}catch{}}(),iA=sc,nc=rC,xn=iA,Rc=sA,oc=xn?function(e,E){return xn(e,"toString",{configurable:!0,enumerable:!1,value:nc(E),writable:!0})}:Rc,Ac=oc,ic=800,Sc=16,Oc=Date.now;function ac(e){var E=0,t=0;return function(){var T=Oc(),r=Sc-(T-t);if(t=T,r>0){if(++E>=ic)return arguments[0]}else E=0;return e.apply(void 0,arguments)}}var Ic=ac,Nc=Ac,lc=Ic,_c=lc(Nc),SA=_c,Cc=sA,cc=nA,Lc=SA;function uc(e,E){return Lc(cc(e,E,Cc),e+"")}var OA=uc;function pc(){this.__data__=[],this.size=0}var fc=pc;function Pc(e,E){return e===E||e!==e&&E!==E}var vT=Pc,Dc=vT;function dc(e,E){for(var t=e.length;t--;)if(Dc(e[t][0],E))return t;return-1}var YT=dc,Mc=YT,Uc=Array.prototype,hc=Uc.splice;function Gc(e){var E=this.__data__,t=Mc(E,e);if(t<0)return!1;var T=E.length-1;return t==T?E.pop():hc.call(E,t,1),--this.size,!0}var gc=Gc,mc=YT;function Hc(e){var E=this.__data__,t=mc(E,e);return t<0?void 0:E[t][1]}var yc=Hc,bc=YT;function Bc(e){return bc(this.__data__,e)>-1}var Fc=Bc,vc=YT;function Yc(e,E){var t=this.__data__,T=vc(t,e);return T<0?(++this.size,t.push([e,E])):t[T][1]=E,this}var xc=Yc,Vc=fc,wc=gc,Wc=yc,Xc=Fc,$c=xc;function at(e){var E=-1,t=e==null?0:e.length;for(this.clear();++E<t;){var T=e[E];this.set(T[0],T[1])}}at.prototype.clear=Vc;at.prototype.delete=wc;at.prototype.get=Wc;at.prototype.has=Xc;at.prototype.set=$c;var xT=at,Kc=xT;function Jc(){this.__data__=new Kc,this.size=0}var kc=Jc;function jc(e){var E=this.__data__,t=E.delete(e);return this.size=E.size,t}var qc=jc;function Qc(e){return this.__data__.get(e)}var Zc=Qc;function zc(e){return this.__data__.has(e)}var eL=zc,EL=XE,tL=oE,TL=EL(tL,"Map"),es=TL,rL=XE,sL=rL(Object,"create"),VT=sL,Vn=VT;function nL(){this.__data__=Vn?Vn(null):{},this.size=0}var RL=nL;function oL(e){var E=this.has(e)&&delete this.__data__[e];return this.size-=E?1:0,E}var AL=oL,iL=VT,SL="__lodash_hash_undefined__",OL=Object.prototype,aL=OL.hasOwnProperty;function IL(e){var E=this.__data__;if(iL){var t=E[e];return t===SL?void 0:t}return aL.call(E,e)?E[e]:void 0}var NL=IL,lL=VT,_L=Object.prototype,CL=_L.hasOwnProperty;function cL(e){var E=this.__data__;return lL?E[e]!==void 0:CL.call(E,e)}var LL=cL,uL=VT,pL="__lodash_hash_undefined__";function fL(e,E){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=uL&&E===void 0?pL:E,this}var PL=fL,DL=RL,dL=AL,ML=NL,UL=LL,hL=PL;function It(e){var E=-1,t=e==null?0:e.length;for(this.clear();++E<t;){var T=e[E];this.set(T[0],T[1])}}It.prototype.clear=DL;It.prototype.delete=dL;It.prototype.get=ML;It.prototype.has=UL;It.prototype.set=hL;var GL=It,wn=GL,gL=xT,mL=es;function HL(){this.size=0,this.__data__={hash:new wn,map:new(mL||gL),string:new wn}}var yL=HL;function bL(e){var E=typeof e;return E=="string"||E=="number"||E=="symbol"||E=="boolean"?e!=="__proto__":e===null}var BL=bL,FL=BL;function vL(e,E){var t=e.__data__;return FL(E)?t[typeof E=="string"?"string":"hash"]:t.map}var wT=vL,YL=wT;function xL(e){var E=YL(this,e).delete(e);return this.size-=E?1:0,E}var VL=xL,wL=wT;function WL(e){return wL(this,e).get(e)}var XL=WL,$L=wT;function KL(e){return $L(this,e).has(e)}var JL=KL,kL=wT;function jL(e,E){var t=kL(this,e),T=t.size;return t.set(e,E),this.size+=t.size==T?0:1,this}var qL=jL,QL=yL,ZL=VL,zL=XL,eu=JL,Eu=qL;function Nt(e){var E=-1,t=e==null?0:e.length;for(this.clear();++E<t;){var T=e[E];this.set(T[0],T[1])}}Nt.prototype.clear=QL;Nt.prototype.delete=ZL;Nt.prototype.get=zL;Nt.prototype.has=eu;Nt.prototype.set=Eu;var aA=Nt,tu=xT,Tu=es,ru=aA,su=200;function nu(e,E){var t=this.__data__;if(t instanceof tu){var T=t.__data__;if(!Tu||T.length<su-1)return T.push([e,E]),this.size=++t.size,this;t=this.__data__=new ru(T)}return t.set(e,E),this.size=t.size,this}var Ru=nu,ou=xT,Au=kc,iu=qc,Su=Zc,Ou=eL,au=Ru;function lt(e){var E=this.__data__=new ou(e);this.size=E.size}lt.prototype.clear=Au;lt.prototype.delete=iu;lt.prototype.get=Su;lt.prototype.has=Ou;lt.prototype.set=au;var IA=lt,Wn=iA;function Iu(e,E,t){E=="__proto__"&&Wn?Wn(e,E,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[E]=t}var Es=Iu,Nu=Es,lu=vT;function _u(e,E,t){(t!==void 0&&!lu(e[E],t)||t===void 0&&!(E in e))&&Nu(e,E,t)}var NA=_u;function Cu(e){return function(E,t,T){for(var r=-1,s=Object(E),n=T(E),R=n.length;R--;){var A=n[e?R:++r];if(t(s[A],A,s)===!1)break}return E}}var cu=Cu,Lu=cu,uu=Lu(),pu=uu,LT={exports:{}};LT.exports;(function(e,E){var t=oE,T=E&&!E.nodeType&&E,r=T&&!0&&e&&!e.nodeType&&e,s=r&&r.exports===T,n=s?t.Buffer:void 0,R=n?n.allocUnsafe:void 0;function A(o,i){if(i)return o.slice();var a=o.length,I=R?R(a):new o.constructor(a);return o.copy(I),I}e.exports=A})(LT,LT.exports);var lA=LT.exports,fu=oE,Pu=fu.Uint8Array,Du=Pu,Xn=Du;function du(e){var E=new e.constructor(e.byteLength);return new Xn(E).set(new Xn(e)),E}var ts=du,Mu=ts;function Uu(e,E){var t=E?Mu(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}var _A=Uu;function hu(e,E){var t=-1,T=e.length;for(E||(E=Array(T));++t<T;)E[t]=e[t];return E}var CA=hu,Gu=IE,$n=Object.create,gu=function(){function e(){}return function(E){if(!Gu(E))return{};if($n)return $n(E);e.prototype=E;var t=new e;return e.prototype=void 0,t}}(),mu=gu;function Hu(e,E){return function(t){return e(E(t))}}var cA=Hu,yu=cA,bu=yu(Object.getPrototypeOf,Object),Ts=bu,Bu=Object.prototype;function Fu(e){var E=e&&e.constructor,t=typeof E=="function"&&E.prototype||Bu;return e===t}var rs=Fu,vu=mu,Yu=Ts,xu=rs;function Vu(e){return typeof e.constructor=="function"&&!xu(e)?vu(Yu(e)):{}}var LA=Vu;function wu(e){return e!=null&&typeof e=="object"}var ME=wu,Wu=Ot,Xu=ME,$u="[object Arguments]";function Ku(e){return Xu(e)&&Wu(e)==$u}var Ju=Ku,Kn=Ju,ku=ME,uA=Object.prototype,ju=uA.hasOwnProperty,qu=uA.propertyIsEnumerable,Qu=Kn(function(){return arguments}())?Kn:function(e){return ku(e)&&ju.call(e,"callee")&&!qu.call(e,"callee")},ss=Qu,Zu=Array.isArray,UE=Zu,zu=9007199254740991;function ep(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=zu}var pA=ep,Ep=zr,tp=pA;function Tp(e){return e!=null&&tp(e.length)&&!Ep(e)}var WT=Tp,rp=WT,sp=ME;function np(e){return sp(e)&&rp(e)}var Rp=np,uT={exports:{}};function op(){return!1}var Ap=op;uT.exports;(function(e,E){var t=oE,T=Ap,r=E&&!E.nodeType&&E,s=r&&!0&&e&&!e.nodeType&&e,n=s&&s.exports===r,R=n?t.Buffer:void 0,A=R?R.isBuffer:void 0,o=A||T;e.exports=o})(uT,uT.exports);var ns=uT.exports,ip=Ot,Sp=Ts,Op=ME,ap="[object Object]",Ip=Function.prototype,Np=Object.prototype,fA=Ip.toString,lp=Np.hasOwnProperty,_p=fA.call(Object);function Cp(e){if(!Op(e)||ip(e)!=ap)return!1;var E=Sp(e);if(E===null)return!0;var t=lp.call(E,"constructor")&&E.constructor;return typeof t=="function"&&t instanceof t&&fA.call(t)==_p}var PA=Cp,cp=Ot,Lp=pA,up=ME,pp="[object Arguments]",fp="[object Array]",Pp="[object Boolean]",Dp="[object Date]",dp="[object Error]",Mp="[object Function]",Up="[object Map]",hp="[object Number]",Gp="[object Object]",gp="[object RegExp]",mp="[object Set]",Hp="[object String]",yp="[object WeakMap]",bp="[object ArrayBuffer]",Bp="[object DataView]",Fp="[object Float32Array]",vp="[object Float64Array]",Yp="[object Int8Array]",xp="[object Int16Array]",Vp="[object Int32Array]",wp="[object Uint8Array]",Wp="[object Uint8ClampedArray]",Xp="[object Uint16Array]",$p="[object Uint32Array]",_e={};_e[Fp]=_e[vp]=_e[Yp]=_e[xp]=_e[Vp]=_e[wp]=_e[Wp]=_e[Xp]=_e[$p]=!0;_e[pp]=_e[fp]=_e[bp]=_e[Pp]=_e[Bp]=_e[Dp]=_e[dp]=_e[Mp]=_e[Up]=_e[hp]=_e[Gp]=_e[gp]=_e[mp]=_e[Hp]=_e[yp]=!1;function Kp(e){return up(e)&&Lp(e.length)&&!!_e[cp(e)]}var Jp=Kp;function kp(e){return function(E){return e(E)}}var Rs=kp,pT={exports:{}};pT.exports;(function(e,E){var t=RA,T=E&&!E.nodeType&&E,r=T&&!0&&e&&!e.nodeType&&e,s=r&&r.exports===T,n=s&&t.process,R=function(){try{var A=r&&r.require&&r.require("util").types;return A||n&&n.binding&&n.binding("util")}catch{}}();e.exports=R})(pT,pT.exports);var os=pT.exports,jp=Jp,qp=Rs,Jn=os,kn=Jn&&Jn.isTypedArray,Qp=kn?qp(kn):jp,DA=Qp;function Zp(e,E){if(!(E==="constructor"&&typeof e[E]=="function")&&E!="__proto__")return e[E]}var dA=Zp,zp=Es,ef=vT,Ef=Object.prototype,tf=Ef.hasOwnProperty;function Tf(e,E,t){var T=e[E];(!(tf.call(e,E)&&ef(T,t))||t===void 0&&!(E in e))&&zp(e,E,t)}var MA=Tf,rf=MA,sf=Es;function nf(e,E,t,T){var r=!t;t||(t={});for(var s=-1,n=E.length;++s<n;){var R=E[s],A=T?T(t[R],e[R],R,t,e):void 0;A===void 0&&(A=e[R]),r?sf(t,R,A):rf(t,R,A)}return t}var _t=nf;function Rf(e,E){for(var t=-1,T=Array(e);++t<e;)T[t]=E(t);return T}var of=Rf,Af=9007199254740991,Sf=/^(?:0|[1-9]\d*)$/;function Of(e,E){var t=typeof e;return E=E??Af,!!E&&(t=="number"||t!="symbol"&&Sf.test(e))&&e>-1&&e%1==0&&e<E}var UA=Of,af=of,If=ss,Nf=UE,lf=ns,_f=UA,Cf=DA,cf=Object.prototype,Lf=cf.hasOwnProperty;function uf(e,E){var t=Nf(e),T=!t&&If(e),r=!t&&!T&&lf(e),s=!t&&!T&&!r&&Cf(e),n=t||T||r||s,R=n?af(e.length,String):[],A=R.length;for(var o in e)(E||Lf.call(e,o))&&!(n&&(o=="length"||r&&(o=="offset"||o=="parent")||s&&(o=="buffer"||o=="byteLength"||o=="byteOffset")||_f(o,A)))&&R.push(o);return R}var hA=uf;function pf(e){var E=[];if(e!=null)for(var t in Object(e))E.push(t);return E}var ff=pf,Pf=IE,Df=rs,df=ff,Mf=Object.prototype,Uf=Mf.hasOwnProperty;function hf(e){if(!Pf(e))return df(e);var E=Df(e),t=[];for(var T in e)T=="constructor"&&(E||!Uf.call(e,T))||t.push(T);return t}var Gf=hf,gf=hA,mf=Gf,Hf=WT;function yf(e){return Hf(e)?gf(e,!0):mf(e)}var kt=yf,bf=_t,Bf=kt;function Ff(e){return bf(e,Bf(e))}var vf=Ff,jn=NA,Yf=lA,xf=_A,Vf=CA,wf=LA,qn=ss,Qn=UE,Wf=Rp,Xf=ns,$f=zr,Kf=IE,Jf=PA,kf=DA,Zn=dA,jf=vf;function qf(e,E,t,T,r,s,n){var R=Zn(e,t),A=Zn(E,t),o=n.get(A);if(o){jn(e,t,o);return}var i=s?s(R,A,t+"",e,E,n):void 0,a=i===void 0;if(a){var I=Qn(A),l=!I&&Xf(A),U=!I&&!l&&kf(A);i=A,I||l||U?Qn(R)?i=R:Wf(R)?i=Vf(R):l?(a=!1,i=Yf(A,!0)):U?(a=!1,i=xf(A,!0)):i=[]:Jf(A)||qn(A)?(i=R,qn(R)?i=jf(R):(!Kf(R)||$f(R))&&(i=wf(A))):a=!1}a&&(n.set(A,i),r(i,A,T,s,n),n.delete(A)),jn(e,t,i)}var Qf=qf,Zf=IA,zf=NA,eP=pu,EP=Qf,tP=IE,TP=kt,rP=dA;function GA(e,E,t,T,r){e!==E&&eP(E,function(s,n){if(r||(r=new Zf),tP(s))EP(e,E,n,t,GA,T,r);else{var R=T?T(rP(e,n),s,n+"",e,E,r):void 0;R===void 0&&(R=s),zf(e,n,R)}},TP)}var gA=GA,sP=gA,zn=IE;function mA(e,E,t,T,r,s){return zn(e)&&zn(E)&&(s.set(E,e),sP(e,E,void 0,mA,s),s.delete(E)),e}var nP=mA,RP=vT,oP=WT,AP=UA,iP=IE;function SP(e,E,t){if(!iP(t))return!1;var T=typeof E;return(T=="number"?oP(t)&&AP(E,t.length):T=="string"&&E in t)?RP(t[E],e):!1}var OP=SP,aP=OA,IP=OP;function NP(e){return aP(function(E,t){var T=-1,r=t.length,s=r>1?t[r-1]:void 0,n=r>2?t[2]:void 0;for(s=e.length>3&&typeof s=="function"?(r--,s):void 0,n&&IP(t[0],t[1],n)&&(s=r<3?void 0:s,r=1),E=Object(E);++T<r;){var R=t[T];R&&e(E,R,T,s)}return E})}var lP=NP,_P=gA,CP=lP,cP=CP(function(e,E,t,T){_P(e,E,t,T)}),LP=cP,uP=rA,pP=OA,fP=nP,PP=LP,DP=pP(function(e){return e.push(void 0,fP),uP(PP,void 0,e)}),dP=DP;const MP=fT(dP);function UP(e){const E=MP(e,{mode:"ws",prefix:"/_debugbar",cable:{url:"ws://127.0.0.1:3000",channelName:"Debugbar::DebugbarChannel"},poll:{url:"http://127.0.0.1:3000",interval:500},height:360,maxRequests:25,minimized:!1,activeRecord:{adapter:"sql"}});return E.actionCableUrl=`${E.cable.url}${E.prefix}/cable`,E.pollUrl=`${E.poll.url}${E.prefix}/poll`,E}let As=bo("config",{state:()=>({config:UP(window._debugbarConfigOptions)})});const hP={class:"flex items-center space-x-3"},GP={class:"font-bold text-lg"},gP={key:0,class:"px-1 py-0.5 rounded text-xs bg-sky-600 text-white"},mP={key:1,class:"px-1 py-0.5 rounded text-xs bg-emerald-600 text-white"},HP={key:2},yP=["textContent"],bP={key:0,class:"mt-4 ml-4"},BP={class:""},FP={class:"mt-3 text-stone-400 text-sm"},vP=["textContent"],YP=["textContent"],xP=Me({__name:"QueryItem",props:{query:{}},setup(e){const E=e,t=dE({isOpen:!0,isFormatted:!1});let T=As();function r(n){const R="text/plain",A=new Blob([n],{type:R}),o=[new ClipboardItem({[R]:A})];navigator.clipboard.write(o)}function s(n){return Q_(n,{language:T.config.activeRecord.adapter})}return(n,R)=>{const A=$t("highlightjs");return h(),Y("div",null,[O("div",hP,[O("button",{class:"flex items-center space-x-1",onClick:R[0]||(R[0]=o=>t.isOpen=!t.isOpen)},[X(Re(Fo),{class:$e(["size-4",{"-rotate-90":!t.isOpen}])},null,8,["class"]),O("span",GP,ne(n.query.name),1)]),E.query.cached?(h(),Y("span",gP,"cached")):oe("",!0),E.query.async?(h(),Y("span",mP,"async")):oe("",!0),t.isOpen?(h(),Y("div",HP,[O("span",{onClick:R[1]||(R[1]=o=>t.isFormatted=!t.isFormatted),class:"px-3 text-xs uppercase text-stone-400 cursor-pointer",title:"Format SQL query",textContent:ne(t.isFormatted?"unformat":"format")},null,8,yP),O("span",{onClick:R[2]||(R[2]=o=>r(n.query.sql)),class:"px-3 text-xs uppercase text-stone-400 cursor-pointer",title:"Copy SQL query to clipboard"},"copy")])):oe("",!0)]),t.isOpen?(h(),Y("div",bP,[O("div",BP,[X(A,{language:"sql",code:t.isFormatted?s(n.query.sql):n.query.sql},null,8,["code"])]),O("div",FP,[O("div",{textContent:ne(n.query.source[0])},null,8,vP),n.query.source.length>1?(h(!0),Y(Le,{key:0},Je(n.query.source.slice(1),o=>(h(),Y("div",{class:"pl-4",textContent:ne("↳ "+o)},null,8,YP))),256)):oe("",!0)])])):oe("",!0)])}}}),VP={class:"flex flex-col space-y-8"},wP=Me({__name:"QueriesPanel",props:{currentRequest:{}},setup(e){const E=e;return(t,T)=>(h(),fe(OE,null,{default:ie(()=>[O("div",VP,[(h(!0),Y(Le,null,Je(E.currentRequest.queries,r=>(h(),fe(xP,{key:r.id,query:r},null,8,["query"]))),128))])]),_:1}))}}),WP={key:0},XP=O("div",{class:"text-gray-500"},"No jobs enqueued.",-1),$P=[XP],KP={key:1,class:"my-4 mx-6 divide-y divide-stone-300"},JP=O("thead",null,[O("tr",null,[O("th",{scope:"col",class:"w-36 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-stone-900 sm:pl-0"},"Job"),O("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-stone-900"},"Args"),O("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-stone-900"},"Logs")])],-1),kP={class:"divide-y divide-stone-200"},jP={class:"whitespace-nowrap p-4 pr-8 text-stone-900"},qP=["textContent"],QP={class:"text-stone-600 text-sm"},ZP=["textContent"],zP=["textContent"],eD={class:"whitespace-nowrap px-3 p-4 pr-8 text-sm"},ED={class:"whitespace-nowrap px-3 p-4 pr-8 text-sm text-stone-500"},tD=["innerHTML"],TD=Me({__name:"JobsPanel",props:{jobs:{}},setup(e){const E=e;function t(T){return T==null?"-":new Date(T*1e3).toLocaleString()}return(T,r)=>{const s=$t("highlightjs");return h(),fe(OE,null,{default:ie(()=>[E.jobs.length==0?(h(),Y("div",WP,$P)):oe("",!0),E.jobs.length>0?(h(),Y("table",KP,[JP,O("tbody",kP,[(h(!0),Y(Le,null,Je(E.jobs,(n,R)=>(h(),Y("tr",{key:n.id},[O("td",jP,[O("div",{class:"text-lg font-bold",textContent:ne(n.class)},null,8,qP),O("div",QP,[O("div",{textContent:ne("Queue: "+n.queue)},null,8,ZP),O("div",{textContent:ne("At: "+t(n.scheduled_at))},null,8,zP)])]),O("td",eD,[X(s,{language:"json",code:JSON.stringify(n.args,null,2)},null,8,["code"])]),O("td",ED,[(h(!0),Y(Le,null,Je(n.logs,(A,o)=>(h(),Y("div",{innerHTML:(o>0?" ".repeat(o)+"↳ ":"")+A,class:""},null,8,tD))),256))])]))),128))])])):oe("",!0)]),_:1})}}}),rD={key:0},sD=O("div",{class:"text-gray-500"},"No logs to show. Are you using the correct minimum level in your config?",-1),nD=[sD],RD={class:"flex items-center space-y-1 space-x-3"},oD={class:"w-32 text-right text-gray-400"},AD={class:"w-20 text-center"},iD=["title"],SD=["innerHTML"],OD=Me({__name:"LogsPanel",props:{logs:{}},setup(e){const E=e;function t(T){return(T.progname||T.message||"").replace(" "," ")}return(T,r)=>(h(),fe(OE,null,{default:ie(()=>[E.logs.length==0?(h(),Y("div",rD,nD)):oe("",!0),(h(!0),Y(Le,null,Je(E.logs,s=>(h(),Y("div",RD,[O("div",oD,ne(s.time),1),O("div",AD,[O("span",{class:$e(["px-1 py-0.5 rounded text-white text-xs font-mono font-medium",{"bg-stone-400":s.severity==0,"bg-blue-500":s.severity==1,"bg-amber-400":s.severity==2,"bg-red-400":s.severity==2,"bg-fuchsia-500":s.severity>=3}]),title:s.severity_label},ne(s.severity_label),11,iD)]),O("div",{class:"text-gray-800",innerHTML:t(s)},null,8,SD)]))),256))]),_:1}))}}),aD={class:"flex flex-col space-y-8"},ID={class:"space-y-3"},ND=["textContent"],lD={class:"ml-4"},_D={key:0},CD=Me({__name:"MessagesPanel",props:{messages:{}},setup(e){const E=e;return(t,T)=>{const r=$t("highlightjs");return h(),fe(OE,null,{default:ie(()=>[O("div",aD,[(h(!0),Y(Le,null,Je(E.messages,(s,n)=>(h(),Y("div",ID,[O("div",{class:"font-bold text-lg",textContent:ne(s.msg)},null,8,ND),O("div",lD,[s.extra?oe("",!0):(h(),Y("div",_D,"–")),s.extra?(h(),fe(r,{key:1,language:"json",code:JSON.stringify(s.extra)},null,8,["code"])):oe("",!0)])]))),256))])]),_:1})}}});class cD{constructor(E){je(this,"id");je(this,"meta");je(this,"request");je(this,"response");je(this,"models");je(this,"queries");je(this,"jobs");je(this,"messages");je(this,"cache");je(this,"logs");this.id=(E==null?void 0:E.id)||"null",this.meta=(E==null?void 0:E.meta)||{},this.request=(E==null?void 0:E.request)||{},this.response=(E==null?void 0:E.response)||{},this.models=(E==null?void 0:E.models)||{},this.queries=(E==null?void 0:E.queries)||[],this.jobs=(E==null?void 0:E.jobs)||[],this.messages=(E==null?void 0:E.messages)||[],this.cache=(E==null?void 0:E.cache)||[],this.logs=(E==null?void 0:E.logs)||[]}get modelsCount(){return Object.values(this.models).reduce((E,t)=>E+t,0)}get queryCount(){return this.queries.length}get jobsCount(){return this.jobs.length}get messagesCount(){return this.messages.length}get cacheCount(){return this.cache.reduce((E,t)=>(E.indexOf(t.transaction_id)===-1&&E.push(t.transaction_id),E),[]).length}get pathWithVerb(){return`${this.meta.method.toUpperCase()} ${this.meta.path}`}get dataForTabs(){const E={messages:{label:"Debug",count:this.messagesCount},models:{label:"Models",count:this.modelsCount},queries:{label:"Queries",count:this.queryCount},jobs:{label:"Jobs",count:this.jobsCount},cache:{label:"Cache",count:this.cacheCount}};return this.logs.length>0&&(E.logs={label:"Logs"}),E}}let LD=bo("requests",{state:()=>({requests:[],currentRequest:null}),actions:{addRequests(e){const E=[];for(e.forEach(t=>{this.requests.find(T=>T.id===t.id)||this.requests.push(new cD(t)),E.push(t.id)});this.requests.length>As().config.maxRequests;)this.requests.shift();return E},setCurrentRequestById(e){this.currentRequest=this.requests.find(E=>E.id===e)},clearRequests(){this.requests=[],this.currentRequest=null}}});const uD={key:0},pD=O("div",{class:"text-gray-500"},"No cache used.",-1),fD=[pD],PD={class:"space-y-3"},DD={class:"flex items-center space-x-8"},dD={class:"w-24 text-sm text-right text-gray-400"},MD={class:"w-16 text-right"},UD={class:"text-gray-800"},hD={class:"font-medium",title:"cache key"},GD={class:"text-xs text-gray-400",title:"transaction_id"},gD=Me({__name:"CachePanel",props:{cache:{}},setup(e){const E=e;return(t,T)=>(h(),fe(OE,null,{default:ie(()=>[E.cache.length==0?(h(),Y("div",uD,fD)):oe("",!0),O("div",PD,[(h(!0),Y(Le,null,Je(E.cache,r=>(h(),Y("div",DD,[O("div",dD,ne(r.time),1),O("div",MD,[O("span",{class:$e(["px-1 py-0.5 rounded text-white text-xs font-mono font-medium bg-stone-400",{"!bg-emerald-500":r.label=="hit","!bg-indigo-500":r.label=="write","!bg-amber-400":r.label=="read","!bg-red-400":r.label=="delete"}])},ne(r.label),3)]),O("div",UD,[O("div",hD,ne(r.key),1),O("div",GD,ne(r.transaction_id),1)])]))),256))])]),_:1}))}});function mD(e,E){for(var t=-1,T=e==null?0:e.length,r=Array(T);++t<T;)r[t]=E(e[t],t,e);return r}var HA=mD;function HD(e,E){for(var t=-1,T=e==null?0:e.length;++t<T&&E(e[t],t,e)!==!1;);return e}var yD=HD,bD=cA,BD=bD(Object.keys,Object),FD=BD,vD=rs,YD=FD,xD=Object.prototype,VD=xD.hasOwnProperty;function wD(e){if(!vD(e))return YD(e);var E=[];for(var t in Object(e))VD.call(e,t)&&t!="constructor"&&E.push(t);return E}var WD=wD,XD=hA,$D=WD,KD=WT;function JD(e){return KD(e)?XD(e):$D(e)}var is=JD,kD=_t,jD=is;function qD(e,E){return e&&kD(E,jD(E),e)}var QD=qD,ZD=_t,zD=kt;function ed(e,E){return e&&ZD(E,zD(E),e)}var Ed=ed;function td(e,E){for(var t=-1,T=e==null?0:e.length,r=0,s=[];++t<T;){var n=e[t];E(n,t,e)&&(s[r++]=n)}return s}var Td=td;function rd(){return[]}var yA=rd,sd=Td,nd=yA,Rd=Object.prototype,od=Rd.propertyIsEnumerable,eR=Object.getOwnPropertySymbols,Ad=eR?function(e){return e==null?[]:(e=Object(e),sd(eR(e),function(E){return od.call(e,E)}))}:nd,Ss=Ad,id=_t,Sd=Ss;function Od(e,E){return id(e,Sd(e),E)}var ad=Od;function Id(e,E){for(var t=-1,T=E.length,r=e.length;++t<T;)e[r+t]=E[t];return e}var Os=Id,Nd=Os,ld=Ts,_d=Ss,Cd=yA,cd=Object.getOwnPropertySymbols,Ld=cd?function(e){for(var E=[];e;)Nd(E,_d(e)),e=ld(e);return E}:Cd,bA=Ld,ud=_t,pd=bA;function fd(e,E){return ud(e,pd(e),E)}var Pd=fd,Dd=Os,dd=UE;function Md(e,E,t){var T=E(e);return dd(e)?T:Dd(T,t(e))}var BA=Md,Ud=BA,hd=Ss,Gd=is;function gd(e){return Ud(e,Gd,hd)}var md=gd,Hd=BA,yd=bA,bd=kt;function Bd(e){return Hd(e,bd,yd)}var FA=Bd,Fd=XE,vd=oE,Yd=Fd(vd,"DataView"),xd=Yd,Vd=XE,wd=oE,Wd=Vd(wd,"Promise"),Xd=Wd,$d=XE,Kd=oE,Jd=$d(Kd,"Set"),kd=Jd,jd=XE,qd=oE,Qd=jd(qd,"WeakMap"),Zd=Qd,fr=xd,Pr=es,Dr=Xd,dr=kd,Mr=Zd,vA=Ot,Ct=AA,ER="[object Map]",zd="[object Object]",tR="[object Promise]",TR="[object Set]",rR="[object WeakMap]",sR="[object DataView]",eM=Ct(fr),EM=Ct(Pr),tM=Ct(Dr),TM=Ct(dr),rM=Ct(Mr),yE=vA;(fr&&yE(new fr(new ArrayBuffer(1)))!=sR||Pr&&yE(new Pr)!=ER||Dr&&yE(Dr.resolve())!=tR||dr&&yE(new dr)!=TR||Mr&&yE(new Mr)!=rR)&&(yE=function(e){var E=vA(e),t=E==zd?e.constructor:void 0,T=t?Ct(t):"";if(T)switch(T){case eM:return sR;case EM:return ER;case tM:return tR;case TM:return TR;case rM:return rR}return E});var as=yE,sM=Object.prototype,nM=sM.hasOwnProperty;function RM(e){var E=e.length,t=new e.constructor(E);return E&&typeof e[0]=="string"&&nM.call(e,"index")&&(t.index=e.index,t.input=e.input),t}var oM=RM,AM=ts;function iM(e,E){var t=E?AM(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}var SM=iM,OM=/\w*$/;function aM(e){var E=new e.constructor(e.source,OM.exec(e));return E.lastIndex=e.lastIndex,E}var IM=aM,nR=Jt,RR=nR?nR.prototype:void 0,oR=RR?RR.valueOf:void 0;function NM(e){return oR?Object(oR.call(e)):{}}var lM=NM,_M=ts,CM=SM,cM=IM,LM=lM,uM=_A,pM="[object Boolean]",fM="[object Date]",PM="[object Map]",DM="[object Number]",dM="[object RegExp]",MM="[object Set]",UM="[object String]",hM="[object Symbol]",GM="[object ArrayBuffer]",gM="[object DataView]",mM="[object Float32Array]",HM="[object Float64Array]",yM="[object Int8Array]",bM="[object Int16Array]",BM="[object Int32Array]",FM="[object Uint8Array]",vM="[object Uint8ClampedArray]",YM="[object Uint16Array]",xM="[object Uint32Array]";function VM(e,E,t){var T=e.constructor;switch(E){case GM:return _M(e);case pM:case fM:return new T(+e);case gM:return CM(e,t);case mM:case HM:case yM:case bM:case BM:case FM:case vM:case YM:case xM:return uM(e,t);case PM:return new T;case DM:case UM:return new T(e);case dM:return cM(e);case MM:return new T;case hM:return LM(e)}}var wM=VM,WM=as,XM=ME,$M="[object Map]";function KM(e){return XM(e)&&WM(e)==$M}var JM=KM,kM=JM,jM=Rs,AR=os,iR=AR&&AR.isMap,qM=iR?jM(iR):kM,QM=qM,ZM=as,zM=ME,eU="[object Set]";function EU(e){return zM(e)&&ZM(e)==eU}var tU=EU,TU=tU,rU=Rs,SR=os,aR=SR&&SR.isSet,sU=aR?rU(aR):TU,nU=sU,RU=IA,oU=yD,AU=MA,iU=QD,SU=Ed,OU=lA,aU=CA,IU=ad,NU=Pd,lU=md,_U=FA,CU=as,cU=oM,LU=wM,uU=LA,pU=UE,fU=ns,PU=QM,DU=IE,dU=nU,MU=is,UU=kt,hU=1,GU=2,gU=4,YA="[object Arguments]",mU="[object Array]",HU="[object Boolean]",yU="[object Date]",bU="[object Error]",xA="[object Function]",BU="[object GeneratorFunction]",FU="[object Map]",vU="[object Number]",VA="[object Object]",YU="[object RegExp]",xU="[object Set]",VU="[object String]",wU="[object Symbol]",WU="[object WeakMap]",XU="[object ArrayBuffer]",$U="[object DataView]",KU="[object Float32Array]",JU="[object Float64Array]",kU="[object Int8Array]",jU="[object Int16Array]",qU="[object Int32Array]",QU="[object Uint8Array]",ZU="[object Uint8ClampedArray]",zU="[object Uint16Array]",eh="[object Uint32Array]",Ne={};Ne[YA]=Ne[mU]=Ne[XU]=Ne[$U]=Ne[HU]=Ne[yU]=Ne[KU]=Ne[JU]=Ne[kU]=Ne[jU]=Ne[qU]=Ne[FU]=Ne[vU]=Ne[VA]=Ne[YU]=Ne[xU]=Ne[VU]=Ne[wU]=Ne[QU]=Ne[ZU]=Ne[zU]=Ne[eh]=!0;Ne[bU]=Ne[xA]=Ne[WU]=!1;function AT(e,E,t,T,r,s){var n,R=E&hU,A=E&GU,o=E&gU;if(t&&(n=r?t(e,T,r,s):t(e)),n!==void 0)return n;if(!DU(e))return e;var i=pU(e);if(i){if(n=cU(e),!R)return aU(e,n)}else{var a=CU(e),I=a==xA||a==BU;if(fU(e))return OU(e,R);if(a==VA||a==YA||I&&!r){if(n=A||I?{}:uU(e),!R)return A?NU(e,SU(n,e)):IU(e,iU(n,e))}else{if(!Ne[a])return r?e:{};n=LU(e,a,R)}}s||(s=new RU);var l=s.get(e);if(l)return l;s.set(e,n),dU(e)?e.forEach(function(V){n.add(AT(V,E,t,V,e,s))}):PU(e)&&e.forEach(function(V,$){n.set($,AT(V,E,t,$,e,s))});var U=o?A?_U:lU:A?UU:MU,B=i?void 0:U(e);return oU(B||e,function(V,$){B&&($=V,V=e[$]),AU(n,$,AT(V,E,t,$,e,s))}),n}var Eh=AT,th=Ot,Th=ME,rh="[object Symbol]";function sh(e){return typeof e=="symbol"||Th(e)&&th(e)==rh}var Is=sh,nh=UE,Rh=Is,oh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ah=/^\w*$/;function ih(e,E){if(nh(e))return!1;var t=typeof e;return t=="number"||t=="symbol"||t=="boolean"||e==null||Rh(e)?!0:Ah.test(e)||!oh.test(e)||E!=null&&e in Object(E)}var Sh=ih,wA=aA,Oh="Expected a function";function Ns(e,E){if(typeof e!="function"||E!=null&&typeof E!="function")throw new TypeError(Oh);var t=function(){var T=arguments,r=E?E.apply(this,T):T[0],s=t.cache;if(s.has(r))return s.get(r);var n=e.apply(this,T);return t.cache=s.set(r,n)||s,n};return t.cache=new(Ns.Cache||wA),t}Ns.Cache=wA;var ah=Ns,Ih=ah,Nh=500;function lh(e){var E=Ih(e,function(T){return t.size===Nh&&t.clear(),T}),t=E.cache;return E}var _h=lh,Ch=_h,ch=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Lh=/\\(\\)?/g,uh=Ch(function(e){var E=[];return e.charCodeAt(0)===46&&E.push(""),e.replace(ch,function(t,T,r,s){E.push(r?s.replace(Lh,"$1"):T||t)}),E}),ph=uh,IR=Jt,fh=HA,Ph=UE,Dh=Is,dh=1/0,NR=IR?IR.prototype:void 0,lR=NR?NR.toString:void 0;function WA(e){if(typeof e=="string")return e;if(Ph(e))return fh(e,WA)+"";if(Dh(e))return lR?lR.call(e):"";var E=e+"";return E=="0"&&1/e==-dh?"-0":E}var Mh=WA,Uh=Mh;function hh(e){return e==null?"":Uh(e)}var Gh=hh,gh=UE,mh=Sh,Hh=ph,yh=Gh;function bh(e,E){return gh(e)?e:mh(e,E)?[e]:Hh(yh(e))}var ls=bh;function Bh(e){var E=e==null?0:e.length;return E?e[E-1]:void 0}var Fh=Bh,vh=Is,Yh=1/0;function xh(e){if(typeof e=="string"||vh(e))return e;var E=e+"";return E=="0"&&1/e==-Yh?"-0":E}var XA=xh,Vh=ls,wh=XA;function Wh(e,E){E=Vh(E,e);for(var t=0,T=E.length;e!=null&&t<T;)e=e[wh(E[t++])];return t&&t==T?e:void 0}var Xh=Wh;function $h(e,E,t){var T=-1,r=e.length;E<0&&(E=-E>r?0:r+E),t=t>r?r:t,t<0&&(t+=r),r=E>t?0:t-E>>>0,E>>>=0;for(var s=Array(r);++T<r;)s[T]=e[T+E];return s}var Kh=$h,Jh=Xh,kh=Kh;function jh(e,E){return E.length<2?e:Jh(e,kh(E,0,-1))}var qh=jh,Qh=ls,Zh=Fh,zh=qh,eG=XA;function EG(e,E){return E=Qh(E,e),e=zh(e,E),e==null||delete e[eG(Zh(E))]}var tG=EG,TG=PA;function rG(e){return TG(e)?void 0:e}var sG=rG,_R=Jt,nG=ss,RG=UE,CR=_R?_R.isConcatSpreadable:void 0;function oG(e){return RG(e)||nG(e)||!!(CR&&e&&e[CR])}var AG=oG,iG=Os,SG=AG;function $A(e,E,t,T,r){var s=-1,n=e.length;for(t||(t=SG),r||(r=[]);++s<n;){var R=e[s];E>0&&t(R)?E>1?$A(R,E-1,t,T,r):iG(r,R):T||(r[r.length]=R)}return r}var OG=$A,aG=OG;function IG(e){var E=e==null?0:e.length;return E?aG(e,1):[]}var NG=IG,lG=NG,_G=nA,CG=SA;function cG(e){return CG(_G(e,void 0,lG),e+"")}var LG=cG,uG=HA,pG=Eh,fG=tG,PG=ls,DG=_t,dG=sG,MG=LG,UG=FA,hG=1,GG=2,gG=4,mG=MG(function(e,E){var t={};if(e==null)return t;var T=!1;E=uG(E,function(s){return s=PG(s,e),T||(T=s.length>1),s}),DG(e,UG(e),t),T&&(t=pG(t,hG|GG|gG,dG));for(var r=E.length;r--;)fG(t,E[r]);return t}),HG=mG;const yG=fT(HG),bG={class:"break-all w-full border-separate border-spacing-1"},BG={key:0},FG=["textContent"],vG=["textContent"],Dt=Me({__name:"KeyValueTable",props:{keyLabel:{},valueLabel:{}},setup(e){const E=e;return(t,T)=>(h(),Y("table",bG,[E.keyLabel||E.valueLabel?(h(),Y("tr",BG,[O("th",{textContent:ne(E.keyLabel),class:"bg-amber-50 w-40 px-3 py-1"},null,8,FG),O("th",{textContent:ne(E.valueLabel),class:"bg-amber-50 px-3 py-1"},null,8,vG)])):oe("",!0),St(t.$slots,"default")]))}}),YG=["textContent"],xG={class:"px-3 py-1"},qe=Me({__name:"Row",props:{label:{}},setup(e){const E=e;return(t,T)=>(h(),Y("tr",null,[O("td",{textContent:ne(E.label),class:"w-40 font-medium bg-stone-50 px-3 py-1"},null,8,YG),O("td",xG,[St(t.$slots,"default")])]))}}),VG={class:"font-medium"},wG={key:0},cR=Me({__name:"Foldable",props:{label:{},isOpen:{type:Boolean,default:!1}},setup(e){const E=e,t=dE({isOpen:E.isOpen});return(T,r)=>(h(),Y("div",null,[O("div",null,[O("button",{class:"flex items-center space-x-1",onClick:r[0]||(r[0]=s=>t.isOpen=!t.isOpen)},[X(Re(Fo),{class:$e(["size-4",{"-rotate-90":!t.isOpen}])},null,8,["class"]),O("span",VG,ne(E.label),1)])]),t.isOpen?(h(),Y("div",wG,[St(T.$slots,"default")])):oe("",!0)]))}}),WG={class:"flex"},XG={class:"w-1/2"},$G=O("h2",{class:"mt-0.5 mb-2 px-2 py-1 bg-stone-300 text-black tracking-wide text-xs uppercase font-bold rounded"}," HTTP Request ",-1),KG=O("div",{class:"py-3 text-right italic text-sm text-stone-500"},[Ye(" What else would like to see here? "),O("a",{target:"_blank",class:"underline font-bold",href:"https://github.com/julienbourdeau/debugbar/discussions"},"Tell me!")],-1),JG={class:"w-1/2"},kG=O("h2",{class:"mt-0.5 mb-2 px-2 py-1 bg-stone-300 text-black tracking-wide text-xs uppercase font-bold rounded"}," Routing ",-1),jG=O("h2",{class:"mt-0.5 mb-2 px-2 py-1 bg-stone-300 text-black tracking-wide text-xs uppercase font-bold rounded"}," HTTP Response ",-1),qG={key:0},QG=O("div",{class:"py-3 text-sm text-stone-500"},[Ye(" The response was not captured. "),O("a",{target:"_blank",class:"underline font-bold",href:"https://debugbar.dev/docs/known-limitations/"},"Learn more")],-1),ZG=[QG],zG={key:1},eg=Me({__name:"RequestPanel",props:{request:{}},setup(e){return(E,t)=>{const T=$t("highlightjs");return h(),Y("div",WG,[O("div",XG,[X(OE,null,{default:ie(()=>[$G,X(Dt,null,{default:ie(()=>[X(qe,{label:"Method"},{default:ie(()=>[Ye(ne(E.request.meta.method),1)]),_:1}),X(qe,{label:"URL"},{default:ie(()=>[Ye(ne(E.request.meta.path),1)]),_:1}),X(qe,{label:"Params"},{default:ie(()=>[X(T,{class:"text-sm",language:"json",code:JSON.stringify(Re(yG)(E.request.meta.params,["controller","action"]),null,2)},null,8,["code"])]),_:1}),X(qe,{label:"Header: Version"},{default:ie(()=>[Ye(ne(E.request.request.headers.Version),1)]),_:1}),X(qe,{label:"Header: Cache-Control"},{default:ie(()=>[Ye(ne(E.request.request.headers["Cache-Control"]),1)]),_:1})]),_:1}),X(cR,{class:"py-4",label:"All Headers"},{default:ie(()=>[X(Dt,null,{default:ie(()=>[(h(!0),Y(Le,null,Je(E.request.request.headers,(r,s)=>(h(),fe(qe,{key:s,label:s},{default:ie(()=>[Ye(ne(r),1)]),_:2},1032,["label"]))),128))]),_:1})]),_:1}),KG]),_:1})]),O("div",JG,[X(OE,null,{default:ie(()=>[kG,X(Dt,null,{default:ie(()=>[X(qe,{title:"Controller"},{default:ie(()=>[Ye(ne(E.request.meta.controller)+" > "+ne(E.request.meta.action),1)]),_:1})]),_:1})]),_:1}),X(OE,null,{default:ie(()=>{var r,s;return[jG,(r=E.request.response)!=null&&r.status?oe("",!0):(h(),Y("div",qG,ZG)),(s=E.request.response)!=null&&s.status?(h(),Y("div",zG,[X(Dt,null,{default:ie(()=>[X(qe,{label:"Status"},{default:ie(()=>[Ye(ne(E.request.response.status),1)]),_:1}),X(qe,{label:"Body"},{default:ie(()=>[Ye(ne(E.request.response.body.substring(0,140)),1)]),_:1}),X(qe,{label:"Header: Content-Type"},{default:ie(()=>[Ye(ne(E.request.response.headers["Content-Type"]),1)]),_:1})]),_:1}),X(cR,{class:"py-4",label:"All Headers"},{default:ie(()=>[X(Dt,null,{default:ie(()=>[(h(!0),Y(Le,null,Je(E.request.response.headers,(n,R)=>(h(),fe(qe,{key:R,label:R},{default:ie(()=>[Ye(ne(n),1)]),_:2},1032,["label"]))),128))]),_:1})]),_:1})])):oe("",!0)]}),_:1})])])}}}),Eg={class:"p-4 leading-8"},tg=Me({__name:"JsonPanel",props:{currentRequest:{}},setup(e){const E=e;return(t,T)=>{const r=$t("highlightjs");return h(),Y("div",Eg,[X(r,{language:"json",code:JSON.stringify(E.currentRequest,null,2)},null,8,["code"])])}}}),Tg={},rg={class:"size-5","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:cc":"http://creativecommons.org/ns#","xmlns:rdf":"http://www.w3.org/1999/02/22-rdf-syntax-ns#","xmlns:svg":"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:sodipodi":"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd","xmlns:inkscape":"http://www.inkscape.org/namespaces/inkscape",version:"1.1",id:"Layer_1",width:"198.13",height:"197.58",viewBox:"0 0 198.13 197.58",overflow:"visible","enable-background":"new 0 0 198.13 197.58","xml:space":"preserve","inkscape:version":"0.48.0 r9654","sodipodi:docname":"Logo-Ruby.svg"},sg=O("metadata",{id:"metadata3320"},[O("rdf:RDF",null,[O("cc:Work",{"rdf:about":""},[O("dc:format",null,"image/svg+xml"),O("dc:type",{"rdf:resource":"http://purl.org/dc/dcmitype/StillImage"})])])],-1),ng=O("defs",{id:"defs3489"},[O("linearGradient",{id:"XMLID_17_-9",gradientUnits:"userSpaceOnUse",x1:"174.0737",y1:"215.5488",x2:"132.27631",y2:"141.7533"},[O("stop",{offset:"0",style:{"stop-color":"#fb7655"},id:"stop3272-4"}),O("stop",{offset:"0",style:{"stop-color":"#fb7655"},id:"stop3274-5"}),O("stop",{offset:"0.41",style:{"stop-color":"#e42b1e"},id:"stop3276-1"}),O("stop",{offset:"0.99",style:{"stop-color":"#990000"},id:"stop3278-0"}),O("stop",{offset:"1",style:{"stop-color":"#990000"},id:"stop3280-3"})]),O("linearGradient",{id:"XMLID_18_-7",gradientUnits:"userSpaceOnUse",x1:"194.895",y1:"153.5576",x2:"141.0276",y2:"117.4093"},[O("stop",{offset:"0",style:{"stop-color":"#871101"},id:"stop3285-8"}),O("stop",{offset:"0",style:{"stop-color":"#871101"},id:"stop3287-8"}),O("stop",{offset:"0.99",style:{"stop-color":"#911209"},id:"stop3289-6"}),O("stop",{offset:"1",style:{"stop-color":"#911209"},id:"stop3291-0"})]),O("linearGradient",{id:"XMLID_19_-4",gradientUnits:"userSpaceOnUse",x1:"151.79539",y1:"217.7852",x2:"97.929703",y2:"181.638"},[O("stop",{offset:"0",style:{"stop-color":"#871101"},id:"stop3296-6"}),O("stop",{offset:"0",style:{"stop-color":"#871101"},id:"stop3298-7"}),O("stop",{offset:"0.99",style:{"stop-color":"#911209"},id:"stop3300-6"}),O("stop",{offset:"1",style:{"stop-color":"#911209"},id:"stop3302-0"})]),O("linearGradient",{id:"XMLID_20_-9",gradientUnits:"userSpaceOnUse",x1:"38.696301",y1:"127.3906",x2:"47.046902",y2:"181.66141"},[O("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3307-7"}),O("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3309-5"}),O("stop",{offset:"0.23",style:{"stop-color":"#e57252"},id:"stop3311-9"}),O("stop",{offset:"0.46",style:{"stop-color":"#de3b20"},id:"stop3313-7"}),O("stop",{offset:"0.99",style:{"stop-color":"#a60003"},id:"stop3315-8"}),O("stop",{offset:"1",style:{"stop-color":"#a60003"},id:"stop3317-5"})]),O("linearGradient",{id:"XMLID_21_-3",gradientUnits:"userSpaceOnUse",x1:"96.132797",y1:"76.715302",x2:"99.209602",y2:"132.1021"},[O("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3322-3"}),O("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3324-8"}),O("stop",{offset:"0.23",style:{"stop-color":"#e4714e"},id:"stop3326-3"}),O("stop",{offset:"0.56",style:{"stop-color":"#be1a0d"},id:"stop3328-7"}),O("stop",{offset:"0.99",style:{"stop-color":"#a80d00"},id:"stop3330-9"}),O("stop",{offset:"1",style:{"stop-color":"#a80d00"},id:"stop3332-3"})]),O("linearGradient",{id:"XMLID_22_-7",gradientUnits:"userSpaceOnUse",x1:"147.103",y1:"25.521",x2:"156.3141",y2:"65.216202"},[O("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3337-8"}),O("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3339-7"}),O("stop",{offset:"0.18",style:{"stop-color":"#e46342"},id:"stop3341-4"}),O("stop",{offset:"0.4",style:{"stop-color":"#c82410"},id:"stop3343-1"}),O("stop",{offset:"0.99",style:{"stop-color":"#a80d00"},id:"stop3345-9"}),O("stop",{offset:"1",style:{"stop-color":"#a80d00"},id:"stop3347-0"})]),O("linearGradient",{id:"XMLID_23_-9",gradientUnits:"userSpaceOnUse",x1:"118.9761",y1:"11.5415",x2:"158.66859",y2:"-8.3048"},[O("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3352-8"}),O("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3354-8"}),O("stop",{offset:"0.54",style:{"stop-color":"#c81f11"},id:"stop3356-5"}),O("stop",{offset:"0.99",style:{"stop-color":"#bf0905"},id:"stop3358-8"}),O("stop",{offset:"1",style:{"stop-color":"#bf0905"},id:"stop3360-4"})]),O("linearGradient",{id:"XMLID_24_-3",gradientUnits:"userSpaceOnUse",x1:"3.9033",y1:"113.5547",x2:"7.1701999",y2:"146.2628"},[O("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3365-7"}),O("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3367-1"}),O("stop",{offset:"0.31",style:{"stop-color":"#de4024"},id:"stop3369-3"}),O("stop",{offset:"0.99",style:{"stop-color":"#bf190b"},id:"stop3371-8"}),O("stop",{offset:"1",style:{"stop-color":"#bf190b"},id:"stop3373-0"})]),O("linearGradient",{id:"XMLID_25_-9",gradientUnits:"userSpaceOnUse",x1:"-18.5557",y1:"155.10451",x2:"135.0152",y2:"-2.8092999"},[O("stop",{offset:"0",style:{"stop-color":"#bd0012"},id:"stop3380-7"}),O("stop",{offset:"0",style:{"stop-color":"#bd0012"},id:"stop3382-9"}),O("stop",{offset:"0.07",style:{"stop-color":"#ffffff"},id:"stop3384-9"}),O("stop",{offset:"0.17",style:{"stop-color":"#ffffff"},id:"stop3386-3"}),O("stop",{offset:"0.27",style:{"stop-color":"#c82f1c"},id:"stop3388-2"}),O("stop",{offset:"0.33",style:{"stop-color":"#820c01"},id:"stop3390-4"}),O("stop",{offset:"0.46",style:{"stop-color":"#a31601"},id:"stop3392-3"}),O("stop",{offset:"0.72",style:{"stop-color":"#b31301"},id:"stop3394-7"}),O("stop",{offset:"0.99",style:{"stop-color":"#e82609"},id:"stop3396-1"}),O("stop",{offset:"1",style:{"stop-color":"#e82609"},id:"stop3398-2"})]),O("linearGradient",{id:"XMLID_26_-2",gradientUnits:"userSpaceOnUse",x1:"99.074699",y1:"171.0332",x2:"52.817699",y2:"159.61659"},[O("stop",{offset:"0",style:{"stop-color":"#8c0c01"},id:"stop3403-0"}),O("stop",{offset:"0",style:{"stop-color":"#8c0c01"},id:"stop3405-2"}),O("stop",{offset:"0.54",style:{"stop-color":"#990c00"},id:"stop3407-1"}),O("stop",{offset:"0.99",style:{"stop-color":"#a80d0e"},id:"stop3409-7"}),O("stop",{offset:"1",style:{"stop-color":"#a80d0e"},id:"stop3411-5"})]),O("linearGradient",{id:"XMLID_27_-1",gradientUnits:"userSpaceOnUse",x1:"178.52589",y1:"115.5146",x2:"137.43269",y2:"78.683998"},[O("stop",{offset:"0",style:{"stop-color":"#7e110b"},id:"stop3416-7"}),O("stop",{offset:"0",style:{"stop-color":"#7e110b"},id:"stop3418-4"}),O("stop",{offset:"0.99",style:{"stop-color":"#9e0c00"},id:"stop3420-1"}),O("stop",{offset:"1",style:{"stop-color":"#9e0c00"},id:"stop3422-7"})]),O("linearGradient",{id:"XMLID_28_-1",gradientUnits:"userSpaceOnUse",x1:"193.6235",y1:"47.937",x2:"173.15421",y2:"26.053801"},[O("stop",{offset:"0",style:{"stop-color":"#79130d"},id:"stop3427-1"}),O("stop",{offset:"0",style:{"stop-color":"#79130d"},id:"stop3429-1"}),O("stop",{offset:"0.99",style:{"stop-color":"#9e120b"},id:"stop3431-7"}),O("stop",{offset:"1",style:{"stop-color":"#9e120b"},id:"stop3433-0"})]),O("radialGradient",{id:"XMLID_29_-4",cx:"143.8315",cy:"79.388199",r:"50.357601",gradientUnits:"userSpaceOnUse"},[O("stop",{offset:"0",style:{"stop-color":"#a80d00"},id:"stop3440-0"}),O("stop",{offset:"0",style:{"stop-color":"#a80d00"},id:"stop3442-8"}),O("stop",{offset:"0.99",style:{"stop-color":"#7e0e08"},id:"stop3444-5"}),O("stop",{offset:"1",style:{"stop-color":"#7e0e08"},id:"stop3446-1"})]),O("radialGradient",{id:"XMLID_30_-6",cx:"74.0923",cy:"145.75101",r:"66.943703",gradientUnits:"userSpaceOnUse"},[O("stop",{offset:"0",style:{"stop-color":"#a30c00"},id:"stop3451-6"}),O("stop",{offset:"0",style:{"stop-color":"#a30c00"},id:"stop3453-2"}),O("stop",{offset:"0.99",style:{"stop-color":"#800e08"},id:"stop3455-1"}),O("stop",{offset:"1",style:{"stop-color":"#800e08"},id:"stop3457-9"})]),O("linearGradient",{id:"XMLID_31_-6",gradientUnits:"userSpaceOnUse",x1:"26.669901",y1:"197.33591",x2:"9.9886999",y2:"140.742"},[O("stop",{offset:"0",style:{"stop-color":"#8b2114"},id:"stop3462-4"}),O("stop",{offset:"0",style:{"stop-color":"#8b2114"},id:"stop3464-8"}),O("stop",{offset:"0.43",style:{"stop-color":"#9e100a"},id:"stop3466-0"}),O("stop",{offset:"0.99",style:{"stop-color":"#b3100c"},id:"stop3468-8"}),O("stop",{offset:"1",style:{"stop-color":"#b3100c"},id:"stop3470-1"})]),O("linearGradient",{id:"XMLID_32_-0",gradientUnits:"userSpaceOnUse",x1:"154.6411",y1:"9.7979002",x2:"192.039",y2:"26.305901"},[O("stop",{offset:"0",style:{"stop-color":"#b31000"},id:"stop3475-2"}),O("stop",{offset:"0",style:{"stop-color":"#b31000"},id:"stop3477-2"}),O("stop",{offset:"0.44",style:{"stop-color":"#910f08"},id:"stop3479-9"}),O("stop",{offset:"0.99",style:{"stop-color":"#791c12"},id:"stop3481-7"}),O("stop",{offset:"1",style:{"stop-color":"#791c12"},id:"stop3483-5"})]),O("linearGradient",{y2:"141.7533",x2:"132.27631",y1:"215.5488",x1:"174.0737",gradientUnits:"userSpaceOnUse",id:"linearGradient3448","xlink:href":"#XMLID_17_-9","inkscape:collect":"always"})],-1),Rg=O("sodipodi:namedview",{pagecolor:"#ffffff",bordercolor:"#666666",borderopacity:"1",objecttolerance:"10",gridtolerance:"10",guidetolerance:"10","inkscape:pageopacity":"0","inkscape:pageshadow":"2","inkscape:window-width":"1036","inkscape:window-height":"1124",id:"namedview3487",showgrid:"false","inkscape:zoom":"1.3412289","inkscape:cx":"99.065005","inkscape:cy":"98.790004","inkscape:window-x":"882","inkscape:window-y":"24","inkscape:window-maximized":"0","inkscape:current-layer":"Layer_1"},null,-1),og=GO('<linearGradient id="XMLID_17_" gradientUnits="userSpaceOnUse" x1="174.0737" y1="215.5488" x2="132.2763" y2="141.7533"><stop offset="0" style="stop-color:#fb7655;" id="stop3272"></stop><stop offset="0" style="stop-color:#fb7655;" id="stop3274"></stop><stop offset="0.41" style="stop-color:#e42b1e;" id="stop3276"></stop><stop offset="0.99" style="stop-color:#990000;" id="stop3278"></stop><stop offset="1" style="stop-color:#990000;" id="stop3280"></stop></linearGradient><linearGradient id="XMLID_18_" gradientUnits="userSpaceOnUse" x1="194.895" y1="153.5576" x2="141.0276" y2="117.4093"><stop offset="0" style="stop-color:#871101;" id="stop3285"></stop><stop offset="0" style="stop-color:#871101;" id="stop3287"></stop><stop offset="0.99" style="stop-color:#911209;" id="stop3289"></stop><stop offset="1" style="stop-color:#911209;" id="stop3291"></stop></linearGradient><linearGradient id="XMLID_19_" gradientUnits="userSpaceOnUse" x1="151.7954" y1="217.7852" x2="97.9297" y2="181.638"><stop offset="0" style="stop-color:#871101;" id="stop3296"></stop><stop offset="0" style="stop-color:#871101;" id="stop3298"></stop><stop offset="0.99" style="stop-color:#911209;" id="stop3300"></stop><stop offset="1" style="stop-color:#911209;" id="stop3302"></stop></linearGradient><linearGradient id="XMLID_20_" gradientUnits="userSpaceOnUse" x1="38.6963" y1="127.3906" x2="47.0469" y2="181.6614"><stop offset="0" style="stop-color:#ffffff;" id="stop3307"></stop><stop offset="0" style="stop-color:#ffffff;" id="stop3309"></stop><stop offset="0.23" style="stop-color:#e57252;" id="stop3311"></stop><stop offset="0.46" style="stop-color:#de3b20;" id="stop3313"></stop><stop offset="0.99" style="stop-color:#a60003;" id="stop3315"></stop><stop offset="1" style="stop-color:#a60003;" id="stop3317"></stop></linearGradient><linearGradient id="XMLID_21_" gradientUnits="userSpaceOnUse" x1="96.1328" y1="76.7153" x2="99.2096" y2="132.1021"><stop offset="0" style="stop-color:#ffffff;" id="stop3322"></stop><stop offset="0" style="stop-color:#ffffff;" id="stop3324"></stop><stop offset="0.23" style="stop-color:#e4714e;" id="stop3326"></stop><stop offset="0.56" style="stop-color:#be1a0d;" id="stop3328"></stop><stop offset="0.99" style="stop-color:#a80d00;" id="stop3330"></stop><stop offset="1" style="stop-color:#a80d00;" id="stop3332"></stop></linearGradient><linearGradient id="XMLID_22_" gradientUnits="userSpaceOnUse" x1="147.103" y1="25.521" x2="156.3141" y2="65.2162"><stop offset="0" style="stop-color:#ffffff;" id="stop3337"></stop><stop offset="0" style="stop-color:#ffffff;" id="stop3339"></stop><stop offset="0.18" style="stop-color:#e46342;" id="stop3341"></stop><stop offset="0.4" style="stop-color:#c82410;" id="stop3343"></stop><stop offset="0.99" style="stop-color:#a80d00;" id="stop3345"></stop><stop offset="1" style="stop-color:#a80d00;" id="stop3347"></stop></linearGradient><linearGradient id="XMLID_23_" gradientUnits="userSpaceOnUse" x1="118.9761" y1="11.5415" x2="158.6686" y2="-8.3048"><stop offset="0" style="stop-color:#ffffff;" id="stop3352"></stop><stop offset="0" style="stop-color:#ffffff;" id="stop3354"></stop><stop offset="0.54" style="stop-color:#c81f11;" id="stop3356"></stop><stop offset="0.99" style="stop-color:#bf0905;" id="stop3358"></stop><stop offset="1" style="stop-color:#bf0905;" id="stop3360"></stop></linearGradient><linearGradient id="XMLID_24_" gradientUnits="userSpaceOnUse" x1="3.9033" y1="113.5547" x2="7.1702" y2="146.2628"><stop offset="0" style="stop-color:#ffffff;" id="stop3365"></stop><stop offset="0" style="stop-color:#ffffff;" id="stop3367"></stop><stop offset="0.31" style="stop-color:#de4024;" id="stop3369"></stop><stop offset="0.99" style="stop-color:#bf190b;" id="stop3371"></stop><stop offset="1" style="stop-color:#bf190b;" id="stop3373"></stop></linearGradient><linearGradient id="XMLID_25_" gradientUnits="userSpaceOnUse" x1="-18.5557" y1="155.1045" x2="135.0152" y2="-2.8093"><stop offset="0" style="stop-color:#bd0012;" id="stop3380"></stop><stop offset="0" style="stop-color:#bd0012;" id="stop3382"></stop><stop offset="0.07" style="stop-color:#ffffff;" id="stop3384"></stop><stop offset="0.17" style="stop-color:#ffffff;" id="stop3386"></stop><stop offset="0.27" style="stop-color:#c82f1c;" id="stop3388"></stop><stop offset="0.33" style="stop-color:#820c01;" id="stop3390"></stop><stop offset="0.46" style="stop-color:#a31601;" id="stop3392"></stop><stop offset="0.72" style="stop-color:#b31301;" id="stop3394"></stop><stop offset="0.99" style="stop-color:#e82609;" id="stop3396"></stop><stop offset="1" style="stop-color:#e82609;" id="stop3398"></stop></linearGradient><linearGradient id="XMLID_26_" gradientUnits="userSpaceOnUse" x1="99.0747" y1="171.0332" x2="52.8177" y2="159.6166"><stop offset="0" style="stop-color:#8c0c01;" id="stop3403"></stop><stop offset="0" style="stop-color:#8c0c01;" id="stop3405"></stop><stop offset="0.54" style="stop-color:#990c00;" id="stop3407"></stop><stop offset="0.99" style="stop-color:#a80d0e;" id="stop3409"></stop><stop offset="1" style="stop-color:#a80d0e;" id="stop3411"></stop></linearGradient><linearGradient id="XMLID_27_" gradientUnits="userSpaceOnUse" x1="178.5259" y1="115.5146" x2="137.4327" y2="78.684"><stop offset="0" style="stop-color:#7e110b;" id="stop3416"></stop><stop offset="0" style="stop-color:#7e110b;" id="stop3418"></stop><stop offset="0.99" style="stop-color:#9e0c00;" id="stop3420"></stop><stop offset="1" style="stop-color:#9e0c00;" id="stop3422"></stop></linearGradient><linearGradient id="XMLID_28_" gradientUnits="userSpaceOnUse" x1="193.6235" y1="47.937" x2="173.1542" y2="26.0538"><stop offset="0" style="stop-color:#79130d;" id="stop3427"></stop><stop offset="0" style="stop-color:#79130d;" id="stop3429"></stop><stop offset="0.99" style="stop-color:#9e120b;" id="stop3431"></stop><stop offset="1" style="stop-color:#9e120b;" id="stop3433"></stop></linearGradient><radialGradient id="XMLID_29_" cx="143.8315" cy="79.3882" r="50.3576" gradientUnits="userSpaceOnUse"><stop offset="0" style="stop-color:#a80d00;" id="stop3440"></stop><stop offset="0" style="stop-color:#a80d00;" id="stop3442"></stop><stop offset="0.99" style="stop-color:#7e0e08;" id="stop3444"></stop><stop offset="1" style="stop-color:#7e0e08;" id="stop3446"></stop></radialGradient><radialGradient id="XMLID_30_" cx="74.0923" cy="145.751" r="66.9437" gradientUnits="userSpaceOnUse"><stop offset="0" style="stop-color:#a30c00;" id="stop3451"></stop><stop offset="0" style="stop-color:#a30c00;" id="stop3453"></stop><stop offset="0.99" style="stop-color:#800e08;" id="stop3455"></stop><stop offset="1" style="stop-color:#800e08;" id="stop3457"></stop></radialGradient><linearGradient id="XMLID_31_" gradientUnits="userSpaceOnUse" x1="26.6699" y1="197.3359" x2="9.9887" y2="140.742"><stop offset="0" style="stop-color:#8b2114;" id="stop3462"></stop><stop offset="0" style="stop-color:#8b2114;" id="stop3464"></stop><stop offset="0.43" style="stop-color:#9e100a;" id="stop3466"></stop><stop offset="0.99" style="stop-color:#b3100c;" id="stop3468"></stop><stop offset="1" style="stop-color:#b3100c;" id="stop3470"></stop></linearGradient><linearGradient id="XMLID_32_" gradientUnits="userSpaceOnUse" x1="154.6411" y1="9.7979" x2="192.039" y2="26.3059"><stop offset="0" style="stop-color:#b31000;" id="stop3475"></stop><stop offset="0" style="stop-color:#b31000;" id="stop3477"></stop><stop offset="0.44" style="stop-color:#910f08;" id="stop3479"></stop><stop offset="0.99" style="stop-color:#791c12;" id="stop3481"></stop><stop offset="1" style="stop-color:#791c12;" id="stop3483"></stop></linearGradient><polygon style="fill:url(#linearGradient3448);fill-rule:evenodd;" clip-rule="evenodd" points="153.5,130.41 40.38,197.58 186.849,187.641 198.13,39.95 " id="polygon3282"></polygon><polygon style="fill:url(#XMLID_18_-7);fill-rule:evenodd;" clip-rule="evenodd" points="187.089,187.54 174.5,100.65 140.209,145.93 " id="polygon3293"></polygon><polygon style="fill:url(#XMLID_19_-4);fill-rule:evenodd;" clip-rule="evenodd" points="187.259,187.54 95.03,180.3 40.87,197.391 " id="polygon3304"></polygon><polygon style="fill:url(#XMLID_20_-9);fill-rule:evenodd;" clip-rule="evenodd" points="41,197.41 64.04,121.93 13.34,132.771 " id="polygon3319"></polygon><polygon style="fill:url(#XMLID_21_-3);fill-rule:evenodd;" clip-rule="evenodd" points="140.2,146.18 119,63.14 58.33,120.01 " id="polygon3334"></polygon><polygon style="fill:url(#XMLID_22_-7);fill-rule:evenodd;" clip-rule="evenodd" points="193.32,64.31 135.97,17.47 120,69.1 " id="polygon3349"></polygon><polygon style="fill:url(#XMLID_23_-9);fill-rule:evenodd;" clip-rule="evenodd" points="166.5,0.77 132.77,19.41 111.49,0.52 " id="polygon3362"></polygon><polygon style="fill:url(#XMLID_24_-3);fill-rule:evenodd;" clip-rule="evenodd" points="0,158.09 14.13,132.32 2.7,101.62 " id="polygon3375"></polygon>',24),Ag=O("path",{style:{fill:"#ffffff","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 1.94,100.65 11.5,32.62 49.97,-11.211 57.05,-53.02 L 136.56,17.9 111.209,0 68.109,16.13 C 54.53,28.76 28.18,53.75 27.23,54.22 26.29,54.7 9.83,85.81 1.94,100.65 z",id:"path3377"},null,-1),ig=O("path",{style:{fill:"url(#XMLID_25_-9)","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 42.32,42.05 c 29.43,-29.18 67.37,-46.42 81.93,-31.73 14.551,14.69 -0.88,50.39 -30.31,79.56 -29.43,29.17 -66.9,47.36 -81.45,32.67 -14.56,-14.68 0.4,-51.33 29.83,-80.5 z",id:"path3400"},null,-1),Sg=O("path",{style:{fill:"url(#XMLID_26_-2)","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 41,197.38 22.86,-75.72 75.92,24.39 C 112.33,171.79 81.8,193.55 41,197.38 z",id:"path3413"},null,-1),Og=O("path",{style:{fill:"url(#XMLID_27_-1)","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 120.56,68.89 19.49,77.2 C 162.98,121.98 183.56,96.06 193.639,64 l -73.079,4.89 z",id:"path3424"},null,-1),ag=O("path",{style:{fill:"url(#XMLID_28_-1)","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 193.44,64.39 c 7.8,-23.54 9.6,-57.31 -27.181,-63.58 l -30.18,16.67 57.361,46.91 z",id:"path3435"},null,-1),Ig=O("path",{style:{fill:"#9e1209","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 0,157.75 c 1.08,38.851 29.11,39.43 41.05,39.771 L 13.47,133.11 0,157.75 z",id:"path3437"},null,-1),Ng=O("path",{style:{fill:"url(#XMLID_29_-4)","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 120.669,69.01 c 17.62,10.83 53.131,32.58 53.851,32.98 1.119,0.63 15.31,-23.93 18.53,-37.81 l -72.381,4.83 z",id:"path3448"},null,-1),lg=O("path",{style:{fill:"url(#XMLID_30_-6)","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 63.83,121.66 30.56,58.96 c 18.07,-9.8 32.22,-21.74 45.18,-34.53 L 63.83,121.66 z",id:"path3459"},null,-1),_g=O("path",{style:{fill:"url(#XMLID_31_-6)","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 13.35,133.19 -4.33,51.56 c 8.17,11.16 19.41,12.13 31.2,11.26 -8.53,-21.23 -25.57,-63.68 -26.87,-62.82 z",id:"path3472"},null,-1),Cg=O("path",{style:{fill:"url(#XMLID_32_-0)","fill-rule":"evenodd"},"inkscape:connector-curvature":"0","clip-rule":"evenodd",d:"m 135.9,17.61 60.71,8.52 C 193.37,12.4 183.42,3.54 166.46,0.77 L 135.9,17.61 z",id:"path3485"},null,-1),cg=[sg,ng,Rg,og,Ag,ig,Sg,Og,ag,Ig,Ng,lg,_g,Cg];function Lg(e,E){return h(),Y("svg",rg,cg)}const LR=vo(Tg,[["render",Lg]]),ug={class:"flex items-center"},pg=["textContent"],Tr=Me({__name:"Timing",props:{durationMs:{},slowThreshold:{default:1e3},tooSlowThreshold:{default:1500}},setup(e){const E=e,t=ze(()=>E.durationMs>=1e3?(E.durationMs/1e3).toFixed(2)+"s":E.durationMs.toFixed(1)+"ms");return(T,r)=>(h(),Y("div",ug,[St(T.$slots,"default"),O("span",{class:$e({"px-1 py-0.5 rounded text-sm":!0,"text-orange-600":T.durationMs>=E.slowThreshold&&T.durationMs<E.tooSlowThreshold,"text-red-600 bg-red-100":T.durationMs>=E.tooSlowThreshold}),textContent:ne(t.value)},null,10,pg)]))}}),fg=["textContent"],Pg=Me({__name:"StatusCode",props:{code:{}},setup(e){const E=e;return(t,T)=>(h(),Y("span",{class:$e(["px-1 py-0.5 rounded text-xs",{"bg-green-600 text-white":E.code<300,"bg-blue-500 text-white":E.code>=300&&E.code<400,"bg-amber-600 text-white":E.code>=400&&E.code<500,"bg-red-600 text-white":E.code>=500}]),textContent:ne(E.code)},null,10,fg))}}),Dg={class:"p-1 pt-1.5"},dg={key:1,class:"z-[9999] text-stone-900 fixed left-0 bottom-0 w-full"},Mg=O("div",{class:"h-0.5 bg-red-700 cursor-row-resize"},null,-1),Ug={class:"flex items-center justify-between bg-stone-100 border-b border-stone-200"},hg=O("div",{class:"px-5 py-1.5 italic"},"No request yet",-1),Gg={class:"px-3"},gg={key:2,class:"z-[9999] text-stone-900 fixed left-0 bottom-0 w-full"},mg={class:"grow"},Hg={class:"flex"},yg={class:"flex items-center space-x-3 pr-1"},bg={class:"flex space-x-2"},Bg={class:"text-sm text-stone-600 font-medium tracking-wide"},Fg=["selected","textContent","value"],vg={class:"flex items-center pl-1 space-x-2"},Yg=["title"],xg=Me({__name:"Debugbar",setup(e){let E=LD(),t=As();const T=LE(null),r=dE({activeTab:"",minimized:t.config.minimized,isResizing:!1,isPolling:t.config.mode==="poll",height:t.config.height}),s=ze(()=>r.activeTab!=""),n=ze(()=>!1),R=ze(()=>{var I,l;return((I=E.currentRequest)==null?void 0:I.meta.params.controller)+"#"+((l=E.currentRequest)==null?void 0:l.meta.params.action)});let A=null;t.config.mode==="ws"?A=Ma.createConsumer(t.config.actionCableUrl).subscriptions.create({channel:t.config.cable.channelName},{connected(){console.log("🟢 Connected to channel"),A.send({ids:[]})},disconnected(){console.log("🔴 Disconnected from channel")},received(I){if(I.length==0)return;const l=E.addRequests(I);s.value||E.setCurrentRequestById(l[l.length-1]),setTimeout(()=>{A.send({ids:l})},50)}}):t.config.mode==="poll"?(console.log('Using debugbar in "polling mode". Consider using "ws" mode for better performance (requires ActionCable).'),setInterval(()=>{r.isPolling&&fetch(t.config.pollUrl).then(I=>I.json()).then(I=>{if(I.length==0)return;console.log(I);const l=E.addRequests(I);s.value||E.setCurrentRequestById(l[l.length-1]),fetch(t.config.pollUrl+"/confirm",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:l})})})},t.config.poll.interval)):console.log('Using debugbar in "offline mode", ideal for demos using fixtures.');const o=()=>{console.log("Clearing requests"),r.activeTab="",E.clearRequests(),A==null||A.send({clear:!0}),r.isPolling=!0},i=()=>{r.isPolling=!r.isPolling};Xr(()=>{window.onresize=function(){window.innerHeight<r.height&&(r.height=window.innerHeight-T.value.clientHeight)},document.onmousemove=function(I){r.isResizing&&(r.height=window.innerHeight-I.clientY-T.value.clientHeight)},document.onmouseup=function(I){r.isResizing=!1}});const a=I=>{r.activeTab==I?r.activeTab="":(window.innerHeight<r.height&&(r.height=window.innerHeight-T.value.clientHeight*2),r.activeTab=I)};return(I,l)=>{var U,B,V,$,J,Q;return h(),Y(Le,null,[r.minimized?(h(),Y("div",{key:0,onClick:l[0]||(l[0]=H=>r.minimized=!1),class:"z-[9999] text-stone-900 fixed left-0 bottom-0 bg-transparent cursor-pointer"},[O("div",Dg,[X(LR)])])):oe("",!0),!r.minimized&&Re(E).currentRequest==null?(h(),Y("div",dg,[Mg,O("div",Ug,[hg,O("div",Gg,[O("button",{onClick:l[1]||(l[1]=H=>r.minimized=!0),title:"Hide in the corner"},[X(Re(sn),{class:"size-4"})])])])])):oe("",!0),!r.minimized&&Re(E).currentRequest?(h(),Y("div",gg,[O("div",{id:"draggable-bar",onMousedown:l[2]||(l[2]=H=>r.isResizing=!0),class:"h-0.5 bg-red-700 cursor-row-resize"},null,32),O("div",{id:"debubgbar-header",ref_key:"header",ref:T,class:"flex flex-wrap px-1 items-center justify-end bg-stone-100 border-b-2 border-stone-300"},[O("div",mg,[O("div",Hg,[O("div",{onClick:l[3]||(l[3]=H=>r.minimized=!0),class:"p-1 pt-1.5"},[X(LR)]),(h(!0),Y(Le,null,Je(Re(E).currentRequest.dataForTabs,(H,ee)=>(h(),fe(Fa,{key:"k",label:H.label,count:H==null?void 0:H.count,"is-active":ee===r.activeTab,disabled:H.count==0,onClick:Ce=>a(ee)},{default:ie(()=>[Ye(ne(H.label),1)]),_:2},1032,["label","count","is-active","disabled","onClick"]))),128)),n.value?(h(),Y("button",{key:0,onClick:l[4]||(l[4]=H=>a("debug")),class:$e(["px-3 py-1.5 text-stone-600",{"bg-stone-300":r.activeTab=="debug"}])},[X(Re(Ga),{class:"size-4"})],2)):oe("",!0)])]),O("div",yg,[O("div",bg,[X(Tr,{"duration-ms":Re(E).currentRequest.meta.db_runtime,title:"DB runtime"},{default:ie(()=>[X(Re(ha),{class:"text-stone-600 size-3"})]),_:1},8,["duration-ms"]),X(Tr,{"duration-ms":Re(E).currentRequest.meta.cpu_time,title:"CPU time"},{default:ie(()=>[X(Re(ga),{class:"text-stone-600 size-3"})]),_:1},8,["duration-ms"]),X(Tr,{"duration-ms":Re(E).currentRequest.meta.duration,"too-slow-threshold":1e3,"slow-threshold":750,class:"font-bold",title:"Total duration"},{default:ie(()=>[X(Re(Ua),{class:"text-stone-800 size-4"})]),_:1},8,["duration-ms"])]),O("div",{onClick:l[5]||(l[5]=H=>a("request")),class:"flex space-x-2 cursor-pointer"},[O("span",Bg,ne(R.value),1),X(Pg,{code:Re(E).currentRequest.meta.status},null,8,["code"])]),O("select",{class:"px-2 py-1.5 bg-white border border-stone-200 rounded w-[330px] text-sm",name:"current_request_id",onChange:l[6]||(l[6]=H=>{const ee=H.target;Re(E).setCurrentRequestById(ee.value)})},[(h(!0),Y(Le,null,Je(Re(E).requests,H=>(h(),Y("option",{selected:Re(E).currentRequest.id==H.id,textContent:ne(H.pathWithVerb),value:H.id},null,8,Fg))),256))],32),O("div",vg,[Re(t).config.mode=="poll"?(h(),Y("button",{key:0,onClick:i,title:r.isPolling?"Pause polling":"Resume polling"},[r.isPolling?(h(),fe(Re(ma),{key:0,class:"size-4"})):oe("",!0),r.isPolling?oe("",!0):(h(),fe(Re(Ha),{key:1,class:"size-4"}))],8,Yg)):oe("",!0),O("button",{onClick:o,title:"Clear all requests (frontend and backend)"},[X(Re(ya),{class:"size-3"})]),s.value?oe("",!0):(h(),Y("button",{key:1,onClick:l[7]||(l[7]=H=>r.minimized=!0),title:"Hide in the corner"},[X(Re(sn),{class:"size-4"})])),s.value?(h(),Y("button",{key:2,onClick:l[8]||(l[8]=H=>r.activeTab=""),title:"Close"},[X(Re(ba),{class:"size-4"})])):oe("",!0)])])],512),r.activeTab!=""?(h(),Y("div",{key:0,ref:"body",id:"debugbar-body",class:"bg-white overflow-scroll",style:hT(`height: ${r.height}px`)},[r.activeTab=="request"?(h(),fe(eg,{key:0,request:Re(E).currentRequest},null,8,["request"])):oe("",!0),r.activeTab=="messages"?(h(),fe(CD,{key:1,messages:(U=Re(E).currentRequest)==null?void 0:U.messages},null,8,["messages"])):oe("",!0),r.activeTab=="models"?(h(),fe(ja,{key:2,models:(B=Re(E).currentRequest)==null?void 0:B.models,count:(V=Re(E).currentRequest)==null?void 0:V.modelsCount},null,8,["models","count"])):oe("",!0),r.activeTab=="queries"?(h(),fe(wP,{key:3,"current-request":Re(E).currentRequest},null,8,["current-request"])):oe("",!0),r.activeTab=="jobs"?(h(),fe(TD,{key:4,jobs:($=Re(E).currentRequest)==null?void 0:$.jobs},null,8,["jobs"])):oe("",!0),r.activeTab=="cache"?(h(),fe(gD,{key:5,cache:(J=Re(E).currentRequest)==null?void 0:J.cache},null,8,["cache"])):oe("",!0),r.activeTab=="logs"?(h(),fe(OD,{key:6,logs:(Q=Re(E).currentRequest)==null?void 0:Q.logs},null,8,["logs"])):oe("",!0),n.value&&r.activeTab=="debug"?(h(),fe(tg,{key:7,"current-request":Re(E).currentRequest,class:"px-3 py-2"},null,8,["current-request"])):oe("",!0)],4)):oe("",!0)])):oe("",!0)],64)}}}),Vg=`pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
|
25
25
|
Theme: GitHub
|
26
26
|
Description: Light theme as seen on github.com
|
27
27
|
Author: github.com
|
@@ -31,4 +31,4 @@ ${JSON.stringify(n,void 0,2)}`)}}}var eA=class{constructor(e){this.indentation=e
|
|
31
31
|
Outdated base version: https://github.com/primer/github-syntax-light
|
32
32
|
Current colors taken from GitHub's CSS
|
33
33
|
*/.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}/*! tailwindcss v3.4.0 | MIT License | https://tailwindcss.com
|
34
|
-
*/*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }pre,pre code.hljs{margin:0!important;width:100%;padding:0!important}.visible{visibility:visible}.fixed{position:fixed}.bottom-0{bottom:0}.left-0{left:0}.z-\\[9999\\]{z-index:9999}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-4{margin-top:1rem;margin-bottom:1rem}.mb-2{margin-bottom:.5rem}.ml-4{margin-left:1rem}.mt-0{margin-top:0}.mt-0\\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.inline{display:inline}.flex{display:flex}.table{display:table}.hidden{display:none}.aspect-video{aspect-ratio:16 / 9}.size-3{width:.75rem;height:.75rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.h-0{height:0px}.h-0\\.5{height:.125rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.w-1\\/2{width:50%}.w-16{width:4rem}.w-20{width:5rem}.w-24{width:6rem}.w-32{width:8rem}.w-36{width:9rem}.w-40{width:10rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-\\[330px\\]{width:330px}.w-full{width:100%}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-xl{max-width:36rem}.flex-none{flex:none}.border-separate{border-collapse:separate}.border-spacing-1{--tw-border-spacing-x: .25rem;--tw-border-spacing-y: .25rem;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y)}.-rotate-90{--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.cursor-row-resize{cursor:row-resize}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-stone-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(231 229 228 / var(--tw-divide-opacity))}.divide-stone-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(214 211 209 / var(--tw-divide-opacity))}.overflow-scroll{overflow:scroll}.whitespace-nowrap{white-space:nowrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-0{border-width:0px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-indigo-600{--tw-border-opacity: 1;border-color:rgb(79 70 229 / var(--tw-border-opacity))}.border-stone-200{--tw-border-opacity: 1;border-color:rgb(231 229 228 / var(--tw-border-opacity))}.border-stone-300{--tw-border-opacity: 1;border-color:rgb(214 211 209 / var(--tw-border-opacity))}.\\!bg-amber-400{--tw-bg-opacity: 1 !important;background-color:rgb(251 191 36 / var(--tw-bg-opacity))!important}.\\!bg-emerald-500{--tw-bg-opacity: 1 !important;background-color:rgb(16 185 129 / var(--tw-bg-opacity))!important}.\\!bg-indigo-500{--tw-bg-opacity: 1 !important;background-color:rgb(99 102 241 / var(--tw-bg-opacity))!important}.\\!bg-red-400{--tw-bg-opacity: 1 !important;background-color:rgb(248 113 113 / var(--tw-bg-opacity))!important}.\\!bg-red-700{--tw-bg-opacity: 1 !important;background-color:rgb(185 28 28 / var(--tw-bg-opacity))!important}.bg-amber-400{--tw-bg-opacity: 1;background-color:rgb(251 191 36 / var(--tw-bg-opacity))}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity))}.bg-amber-600{--tw-bg-opacity: 1;background-color:rgb(217 119 6 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-emerald-600{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity))}.bg-fuchsia-500{--tw-bg-opacity: 1;background-color:rgb(217 70 239 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity))}.bg-red-700{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity))}.bg-sky-600{--tw-bg-opacity: 1;background-color:rgb(2 132 199 / var(--tw-bg-opacity))}.bg-stone-100{--tw-bg-opacity: 1;background-color:rgb(245 245 244 / var(--tw-bg-opacity))}.bg-stone-300{--tw-bg-opacity: 1;background-color:rgb(214 211 209 / var(--tw-bg-opacity))}.bg-stone-400{--tw-bg-opacity: 1;background-color:rgb(168 162 158 / var(--tw-bg-opacity))}.bg-stone-50{--tw-bg-opacity: 1;background-color:rgb(250 250 249 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-0\\.5{padding:.125rem}.p-1{padding:.25rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0{padding-top:0;padding-bottom:0}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\\.5{padding-top:.875rem;padding-bottom:.875rem}.py-32{padding-top:8rem;padding-bottom:8rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pl-1{padding-left:.25rem}.pl-4{padding-left:1rem}.pl-9{padding-left:2.25rem}.pr-1{padding-right:.25rem}.pr-3{padding-right:.75rem}.pr-8{padding-right:2rem}.pt-1{padding-top:.25rem}.pt-1\\.5{padding-top:.375rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-8{line-height:2rem}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.\\!text-white{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity))!important}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.text-orange-600{--tw-text-opacity: 1;color:rgb(234 88 12 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity: 1;color:rgb(168 162 158 / var(--tw-text-opacity))}.text-stone-500{--tw-text-opacity: 1;color:rgb(120 113 108 / var(--tw-text-opacity))}.text-stone-600{--tw-text-opacity: 1;color:rgb(87 83 78 / var(--tw-text-opacity))}.text-stone-800{--tw-text-opacity: 1;color:rgb(41 37 36 / var(--tw-text-opacity))}.text-stone-900{--tw-text-opacity: 1;color:rgb(28 25 23 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}button{cursor:pointer}.simple-button{border-width:1px;--tw-border-opacity: 1;border-color:rgb(214 211 209 / var(--tw-border-opacity));padding-left:.375rem;padding-right:.375rem;font-size:.875rem;line-height:1.25rem;--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.simple-button:hover{--tw-bg-opacity: 1;background-color:rgb(231 229 228 / var(--tw-bg-opacity));--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}button[disabled]{cursor:not-allowed;opacity:.5}@media (min-width: 640px){.sm\\:pl-0{padding-left:0}.sm\\:text-4xl{font-size:2.25rem;line-height:2.5rem}}@media (min-width: 1024px){.lg\\:px-8{padding-left:2rem;padding-right:2rem}}`,wg=Me({__name:"App",setup(e){return(E,t)=>(h(),Y("div",null,[X(ne(CT),{id:"__debugbar-shadow-root"},{default:ie(()=>[X(Vg),X(ne(_T),null,{default:ie(()=>[Ye(Re(ne(xg)),1)]),_:1})]),_:1})]))}});Ut.registerLanguage("sql",Vi);Ut.registerLanguage("json",xi);const Wg=Na();Sa(wg).use(aa).use(Wg).use(Da).mount("#__debugbar");
|
34
|
+
*/*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }pre,pre code.hljs{margin:0!important;width:100%;padding:0!important}.visible{visibility:visible}.fixed{position:fixed}.bottom-0{bottom:0}.left-0{left:0}.z-\\[9999\\]{z-index:9999}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-4{margin-top:1rem;margin-bottom:1rem}.mb-2{margin-bottom:.5rem}.ml-4{margin-left:1rem}.mt-0{margin-top:0}.mt-0\\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.inline{display:inline}.flex{display:flex}.table{display:table}.hidden{display:none}.aspect-video{aspect-ratio:16 / 9}.size-3{width:.75rem;height:.75rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.h-0{height:0px}.h-0\\.5{height:.125rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.w-1\\/2{width:50%}.w-16{width:4rem}.w-20{width:5rem}.w-24{width:6rem}.w-32{width:8rem}.w-36{width:9rem}.w-40{width:10rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-\\[330px\\]{width:330px}.w-full{width:100%}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-xl{max-width:36rem}.flex-none{flex:none}.grow{flex-grow:1}.border-separate{border-collapse:separate}.border-spacing-1{--tw-border-spacing-x: .25rem;--tw-border-spacing-y: .25rem;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y)}.-rotate-90{--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.cursor-row-resize{cursor:row-resize}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-between{justify-content:space-between}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-stone-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(231 229 228 / var(--tw-divide-opacity))}.divide-stone-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(214 211 209 / var(--tw-divide-opacity))}.overflow-scroll{overflow:scroll}.whitespace-nowrap{white-space:nowrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-0{border-width:0px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-indigo-600{--tw-border-opacity: 1;border-color:rgb(79 70 229 / var(--tw-border-opacity))}.border-stone-200{--tw-border-opacity: 1;border-color:rgb(231 229 228 / var(--tw-border-opacity))}.border-stone-300{--tw-border-opacity: 1;border-color:rgb(214 211 209 / var(--tw-border-opacity))}.\\!bg-amber-400{--tw-bg-opacity: 1 !important;background-color:rgb(251 191 36 / var(--tw-bg-opacity))!important}.\\!bg-emerald-500{--tw-bg-opacity: 1 !important;background-color:rgb(16 185 129 / var(--tw-bg-opacity))!important}.\\!bg-indigo-500{--tw-bg-opacity: 1 !important;background-color:rgb(99 102 241 / var(--tw-bg-opacity))!important}.\\!bg-red-400{--tw-bg-opacity: 1 !important;background-color:rgb(248 113 113 / var(--tw-bg-opacity))!important}.\\!bg-red-700{--tw-bg-opacity: 1 !important;background-color:rgb(185 28 28 / var(--tw-bg-opacity))!important}.bg-amber-400{--tw-bg-opacity: 1;background-color:rgb(251 191 36 / var(--tw-bg-opacity))}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity))}.bg-amber-600{--tw-bg-opacity: 1;background-color:rgb(217 119 6 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-emerald-600{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity))}.bg-fuchsia-500{--tw-bg-opacity: 1;background-color:rgb(217 70 239 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity))}.bg-red-700{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity))}.bg-sky-600{--tw-bg-opacity: 1;background-color:rgb(2 132 199 / var(--tw-bg-opacity))}.bg-stone-100{--tw-bg-opacity: 1;background-color:rgb(245 245 244 / var(--tw-bg-opacity))}.bg-stone-300{--tw-bg-opacity: 1;background-color:rgb(214 211 209 / var(--tw-bg-opacity))}.bg-stone-400{--tw-bg-opacity: 1;background-color:rgb(168 162 158 / var(--tw-bg-opacity))}.bg-stone-50{--tw-bg-opacity: 1;background-color:rgb(250 250 249 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-0\\.5{padding:.125rem}.p-1{padding:.25rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0{padding-top:0;padding-bottom:0}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\\.5{padding-top:.875rem;padding-bottom:.875rem}.py-32{padding-top:8rem;padding-bottom:8rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pl-1{padding-left:.25rem}.pl-4{padding-left:1rem}.pl-9{padding-left:2.25rem}.pr-1{padding-right:.25rem}.pr-3{padding-right:.75rem}.pr-8{padding-right:2rem}.pt-1{padding-top:.25rem}.pt-1\\.5{padding-top:.375rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-8{line-height:2rem}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.\\!text-white{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity))!important}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.text-orange-600{--tw-text-opacity: 1;color:rgb(234 88 12 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity: 1;color:rgb(168 162 158 / var(--tw-text-opacity))}.text-stone-500{--tw-text-opacity: 1;color:rgb(120 113 108 / var(--tw-text-opacity))}.text-stone-600{--tw-text-opacity: 1;color:rgb(87 83 78 / var(--tw-text-opacity))}.text-stone-800{--tw-text-opacity: 1;color:rgb(41 37 36 / var(--tw-text-opacity))}.text-stone-900{--tw-text-opacity: 1;color:rgb(28 25 23 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}button{cursor:pointer}.simple-button{border-width:1px;--tw-border-opacity: 1;border-color:rgb(214 211 209 / var(--tw-border-opacity));padding-left:.375rem;padding-right:.375rem;font-size:.875rem;line-height:1.25rem;--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.simple-button:hover{--tw-bg-opacity: 1;background-color:rgb(231 229 228 / var(--tw-bg-opacity));--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}button[disabled]{cursor:not-allowed;opacity:.5}@media (min-width: 640px){.sm\\:pl-0{padding-left:0}.sm\\:text-4xl{font-size:2.25rem;line-height:2.5rem}}@media (min-width: 1024px){.lg\\:px-8{padding-left:2rem;padding-right:2rem}}`,wg=Me({__name:"App",setup(e){return(E,t)=>(h(),Y("div",null,[X(Re(CT),{id:"__debugbar-shadow-root"},{default:ie(()=>[X(xg),X(Re(_T),null,{default:ie(()=>[Ye(ne(Re(Vg)),1)]),_:1})]),_:1})]))}});Ut.registerLanguage("sql",Vi);Ut.registerLanguage("json",wi);const Wg=la();Oa(wg).use(Ia).use(Wg).use(da).mount("#__debugbar");
|