debugbar 0.4.0 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -3
- data/app/helpers/debugbar/tag_helpers.rb +4 -2
- data/build_fixtures.rb +3 -2
- data/lib/debugbar/engine.rb +26 -3
- data/lib/debugbar/http/http.rb +2 -0
- data/lib/debugbar/middlewares/track_current_request.rb +2 -4
- data/lib/debugbar/version.rb +1 -1
- data/public/debugbar.js +16 -16
- data/release.sh +70 -0
- metadata +3 -2
data/public/debugbar.js
CHANGED
@@ -1,26 +1,26 @@
|
|
1
|
-
var mA=Object.defineProperty;var HA=(e,t,E)=>t in e?mA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:E}):e[t]=E;var je=(e,t,E)=>HA(e,typeof t!="symbol"?t+"":t,E);var eE=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yT(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function AR(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(t=>{const E=e[t],s=typeof E;(s==="object"||s==="function")&&!Object.isFrozen(E)&&AR(E)}),e}class pr{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function iR(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function ft(e,...t){const E=Object.create(null);for(const s in e)E[s]=e[s];return t.forEach(function(s){for(const T in s)E[T]=s[T]}),E}const BA="</span>",fr=e=>!!e.scope,bA=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const E=e.split(".");return[`${t}${E.shift()}`,...E.map((s,T)=>`${s}${"_".repeat(T+1)}`)].join(" ")}return`${t}${e}`};class yA{constructor(t,E){this.buffer="",this.classPrefix=E.classPrefix,t.walk(this)}addText(t){this.buffer+=iR(t)}openNode(t){if(!fr(t))return;const E=bA(t.scope,{prefix:this.classPrefix});this.span(E)}closeNode(t){fr(t)&&(this.buffer+=BA)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const Dr=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class vT{constructor(){this.rootNode=Dr(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const E=Dr({scope:t});this.add(E),this.stack.push(E)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,E){return typeof E=="string"?t.addText(E):E.children&&(t.openNode(E),E.children.forEach(s=>this._walk(t,s)),t.closeNode(E)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(E=>typeof E=="string")?t.children=[t.children.join("")]:t.children.forEach(E=>{vT._collapse(E)}))}}class vA extends vT{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,E){const s=t.root;E&&(s.scope=`language:${E}`),this.add(s)}toHTML(){return new yA(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function hE(e){return e?typeof e=="string"?e:e.source:null}function SR(e){return Xt("(?=",e,")")}function FA(e){return Xt("(?:",e,")*")}function YA(e){return Xt("(?:",e,")?")}function Xt(...e){return e.map(E=>hE(E)).join("")}function VA(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function FT(...e){return"("+(VA(e).capture?"":"?:")+e.map(s=>hE(s)).join("|")+")"}function IR(e){return new RegExp(e.toString()+"|").exec("").length-1}function xA(e,t){const E=e&&e.exec(t);return E&&E.index===0}const wA=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function YT(e,{joinWith:t}){let E=0;return e.map(s=>{E+=1;const T=E;let r=hE(s),n="";for(;r.length>0;){const R=wA.exec(r);if(!R){n+=r;break}n+=r.substring(0,R.index),r=r.substring(R.index+R[0].length),R[0][0]==="\\"&&R[1]?n+="\\"+String(Number(R[1])+T):(n+=R[0],R[0]==="("&&E++)}return n}).map(s=>`(${s})`).join(t)}const WA=/\b\B/,aR="[a-zA-Z]\\w*",VT="[a-zA-Z_]\\w*",NR="\\b\\d+(\\.\\d+)?",lR="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",_R="\\b(0b[01]+)",XA="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",KA=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=Xt(t,/.*\b/,e.binary,/\b.*/)),ft({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(E,s)=>{E.index!==0&&s.ignoreMatch()}},e)},GE={begin:"\\\\[\\s\\S]",relevance:0},$A={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[GE]},JA={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[GE]},kA={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/},_s=function(e,t,E={}){const s=ft({scope:"comment",begin:e,end:t,contains:[]},E);s.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 T=FT("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 s.contains.push({begin:Xt(/[ ]+/,"(",T,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),s},qA=_s("//","$"),jA=_s("/\\*","\\*/"),QA=_s("#","$"),ZA={scope:"number",begin:NR,relevance:0},zA={scope:"number",begin:lR,relevance:0},ei={scope:"number",begin:_R,relevance:0},ti={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[GE,{begin:/\[/,end:/\]/,relevance:0,contains:[GE]}]},Ei={scope:"title",begin:aR,relevance:0},si={scope:"title",begin:VT,relevance:0},Ti={begin:"\\.\\s*"+VT,relevance:0},ri=function(e){return Object.assign(e,{"on:begin":(t,E)=>{E.data._beginMatch=t[1]},"on:end":(t,E)=>{E.data._beginMatch!==t[1]&&E.ignoreMatch()}})};var WE=Object.freeze({__proto__:null,APOS_STRING_MODE:$A,BACKSLASH_ESCAPE:GE,BINARY_NUMBER_MODE:ei,BINARY_NUMBER_RE:_R,COMMENT:_s,C_BLOCK_COMMENT_MODE:jA,C_LINE_COMMENT_MODE:qA,C_NUMBER_MODE:zA,C_NUMBER_RE:lR,END_SAME_AS_BEGIN:ri,HASH_COMMENT_MODE:QA,IDENT_RE:aR,MATCH_NOTHING_RE:WA,METHOD_GUARD:Ti,NUMBER_MODE:ZA,NUMBER_RE:NR,PHRASAL_WORDS_MODE:kA,QUOTE_STRING_MODE:JA,REGEXP_MODE:ti,RE_STARTERS_RE:XA,SHEBANG:KA,TITLE_MODE:Ei,UNDERSCORE_IDENT_RE:VT,UNDERSCORE_TITLE_MODE:si});function ni(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function Ri(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function oi(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=ni,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function Ai(e,t){Array.isArray(e.illegal)&&(e.illegal=FT(...e.illegal))}function ii(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Si(e,t){e.relevance===void 0&&(e.relevance=1)}const Oi=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const E=Object.assign({},e);Object.keys(e).forEach(s=>{delete e[s]}),e.keywords=E.keywords,e.begin=Xt(E.beforeMatch,SR(E.begin)),e.starts={relevance:0,contains:[Object.assign(E,{endsParent:!0})]},e.relevance=0,delete E.beforeMatch},Ii=["of","and","for","in","not","or","if","then","parent","list","value"],ai="keyword";function CR(e,t,E=ai){const s=Object.create(null);return typeof e=="string"?T(E,e.split(" ")):Array.isArray(e)?T(E,e):Object.keys(e).forEach(function(r){Object.assign(s,CR(e[r],t,r))}),s;function T(r,n){t&&(n=n.map(R=>R.toLowerCase())),n.forEach(function(R){const o=R.split("|");s[o[0]]=[r,Ni(o[0],o[1])]})}}function Ni(e,t){return t?Number(t):li(e)?0:1}function li(e){return Ii.includes(e.toLowerCase())}const Pr={},Yt=e=>{console.error(e)},dr=(e,...t)=>{console.log(`WARN: ${e}`,...t)},kt=(e,t)=>{Pr[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),Pr[`${e}/${t}`]=!0)},Es=new Error;function LR(e,t,{key:E}){let s=0;const T=e[E],r={},n={};for(let R=1;R<=t.length;R++)n[R+s]=T[R],r[R+s]=!0,s+=IR(t[R-1]);e[E]=n,e[E]._emit=r,e[E]._multi=!0}function _i(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Yt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Es;if(typeof e.beginScope!="object"||e.beginScope===null)throw Yt("beginScope must be object"),Es;LR(e,e.begin,{key:"beginScope"}),e.begin=YT(e.begin,{joinWith:""})}}function Ci(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Yt("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Es;if(typeof e.endScope!="object"||e.endScope===null)throw Yt("endScope must be object"),Es;LR(e,e.end,{key:"endScope"}),e.end=YT(e.end,{joinWith:""})}}function Li(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function ci(e){Li(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),_i(e),Ci(e)}function ui(e){function t(n,R){return new RegExp(hE(n),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(R?"g":""))}class E{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(R,o){o.position=this.position++,this.matchIndexes[this.matchAt]=o,this.regexes.push([o,R]),this.matchAt+=IR(R)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const R=this.regexes.map(o=>o[1]);this.matcherRe=t(YT(R,{joinWith:"|"}),!0),this.lastIndex=0}exec(R){this.matcherRe.lastIndex=this.lastIndex;const o=this.matcherRe.exec(R);if(!o)return null;const i=o.findIndex((O,N)=>N>0&&O!==void 0),A=this.matchIndexes[i];return o.splice(0,i),Object.assign(o,A)}}class s{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 o=new E;return this.rules.slice(R).forEach(([i,A])=>o.addRule(i,A)),o.compile(),this.multiRegexes[R]=o,o}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(R,o){this.rules.push([R,o]),o.type==="begin"&&this.count++}exec(R){const o=this.getMatcher(this.regexIndex);o.lastIndex=this.lastIndex;let i=o.exec(R);if(this.resumingScanAtSamePosition()&&!(i&&i.index===this.lastIndex)){const A=this.getMatcher(0);A.lastIndex=this.lastIndex+1,i=A.exec(R)}return i&&(this.regexIndex+=i.position+1,this.regexIndex===this.count&&this.considerAll()),i}}function T(n){const R=new s;return n.contains.forEach(o=>R.addRule(o.begin,{rule:o,type:"begin"})),n.terminatorEnd&&R.addRule(n.terminatorEnd,{type:"end"}),n.illegal&&R.addRule(n.illegal,{type:"illegal"}),R}function r(n,R){const o=n;if(n.isCompiled)return o;[Ri,ii,ci,Oi].forEach(A=>A(n,R)),e.compilerExtensions.forEach(A=>A(n,R)),n.__beforeBegin=null,[oi,Ai,Si].forEach(A=>A(n,R)),n.isCompiled=!0;let i=null;return typeof n.keywords=="object"&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),i=n.keywords.$pattern,delete n.keywords.$pattern),i=i||/\w+/,n.keywords&&(n.keywords=CR(n.keywords,e.case_insensitive)),o.keywordPatternRe=t(i,!0),R&&(n.begin||(n.begin=/\B|\b/),o.beginRe=t(o.begin),!n.end&&!n.endsWithParent&&(n.end=/\B|\b/),n.end&&(o.endRe=t(o.end)),o.terminatorEnd=hE(o.end)||"",n.endsWithParent&&R.terminatorEnd&&(o.terminatorEnd+=(n.end?"|":"")+R.terminatorEnd)),n.illegal&&(o.illegalRe=t(n.illegal)),n.contains||(n.contains=[]),n.contains=[].concat(...n.contains.map(function(A){return pi(A==="self"?n:A)})),n.contains.forEach(function(A){r(A,o)}),n.starts&&r(n.starts,R),o.matcher=T(o),o}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=ft(e.classNameAliases||{}),r(e)}function cR(e){return e?e.endsWithParent||cR(e.starts):!1}function pi(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return ft(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:cR(e)?ft(e,{starts:e.starts?ft(e.starts):null}):Object.isFrozen(e)?ft(e):e}var fi="11.11.1";class Di extends Error{constructor(t,E){super(t),this.name="HTMLInjectionError",this.html=E}}const Fs=iR,Mr=ft,Ur=Symbol("nomatch"),Pi=7,uR=function(e){const t=Object.create(null),E=Object.create(null),s=[];let T=!0;const r="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:vA};function o(c){return R.noHighlightRe.test(c)}function i(c){let G=c.className+" ";G+=c.parentNode?c.parentNode.className:"";const w=R.languageDetectRe.exec(G);if(w){const oe=$(w[1]);return oe||(dr(r.replace("{}",w[1])),dr("Falling back to no-highlight mode for this block.",c)),oe?w[1]:"no-highlight"}return G.split(/\s+/).find(oe=>o(oe)||$(oe))}function A(c,G,w){let oe="",ce="";typeof G=="object"?(oe=c,w=G.ignoreIllegals,ce=G.language):(kt("10.7.0","highlight(lang, code, ...args) has been deprecated."),kt("10.7.0",`Please use highlight(code, options) instead.
|
2
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),
|
3
|
-
`,1;if(K>1e5&&K>B.index*3)throw new Error("potential infinite loop, way more iterations than matches");return p+=V,V.length}const U=$(c);if(!U)throw Yt(r.replace("{}",c)),new Error('Unknown language: "'+c+'"');const h=ui(U);let g="",D=oe||h;const b={},m=new R.__emitter(R);I();let p="",q=0,v=0,K=0,Z=!1;try{if(U.__emitTokens)U.__emitTokens(G,m);else{for(D.matcher.considerAll();;){K++,Z?Z=!1:D.matcher.considerAll(),D.matcher.lastIndex=v;const M=D.matcher.exec(G);if(!M)break;const B=G.substring(v,M.index),V=L(B,M);v=M.index+V}L(G.substring(v))}return m.finalize(),g=m.toHTML(),{language:c,value:g,relevance:q,illegal:!1,_emitter:m,_top:D}}catch(M){if(M.message&&M.message.includes("Illegal"))return{language:c,value:Fs(G),illegal:!0,relevance:0,_illegalBy:{message:M.message,index:v,context:G.slice(v-100,v+100),mode:M.mode,resultSoFar:g},_emitter:m};if(T)return{language:c,value:Fs(G),illegal:!1,relevance:0,errorRaised:M,_emitter:m,_top:D};throw M}}function N(c){const G={value:Fs(c),illegal:!1,relevance:0,_top:n,_emitter:new R.__emitter(R)};return G._emitter.addText(c),G}function l(c,G){G=G||R.languages||Object.keys(t);const w=N(c),oe=G.filter($).filter(_).map(Ve=>O(Ve,c,!1));oe.unshift(w);const ce=oe.sort((Ve,ke)=>{if(Ve.relevance!==ke.relevance)return ke.relevance-Ve.relevance;if(Ve.language&&ke.language){if($(Ve.language).supersetOf===ke.language)return 1;if($(ke.language).supersetOf===Ve.language)return-1}return 0}),[Pe,de]=ce,gt=Pe;return gt.secondBest=de,gt}function C(c,G,w){const oe=G&&E[G]||w;c.classList.add("hljs"),c.classList.add(`language-${oe}`)}function H(c){let G=null;const w=i(c);if(o(w))return;if(J("before:highlightElement",{el:c,language:w}),c.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",c);return}if(c.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(c)),R.throwUnescapedHTML))throw new Di("One of your code blocks includes unescaped HTML.",c.innerHTML);G=c;const oe=G.textContent,ce=w?A(oe,{language:w,ignoreIllegals:!0}):l(oe);c.innerHTML=ce.value,c.dataset.highlighted="yes",C(c,w,ce.language),c.result={language:ce.language,re:ce.relevance,relevance:ce.relevance},ce.secondBest&&(c.secondBest={language:ce.secondBest.language,relevance:ce.secondBest.relevance}),J("after:highlightElement",{el:c,result:ce,text:oe})}function Q(c){R=Mr(R,c)}const W=()=>{x(),kt("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function j(){x(),kt("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let ee=!1;function x(){function c(){x()}if(document.readyState==="loading"){ee||window.addEventListener("DOMContentLoaded",c,!1),ee=!0;return}document.querySelectorAll(R.cssSelector).forEach(H)}function k(c,G){let w=null;try{w=G(e)}catch(oe){if(Yt("Language definition for '{}' could not be registered.".replace("{}",c)),T)Yt(oe);else throw oe;w=n}w.name||(w.name=c),t[c]=w,w.rawDefinition=G.bind(null,e),w.aliases&&X(w.aliases,{languageName:c})}function Ie(c){delete t[c];for(const G of Object.keys(E))E[G]===c&&delete E[G]}function ie(){return Object.keys(t)}function $(c){return c=(c||"").toLowerCase(),t[c]||t[E[c]]}function X(c,{languageName:G}){typeof c=="string"&&(c=[c]),c.forEach(w=>{E[w.toLowerCase()]=G})}function _(c){const G=$(c);return G&&!G.disableAutodetect}function d(c){c["before:highlightBlock"]&&!c["before:highlightElement"]&&(c["before:highlightElement"]=G=>{c["before:highlightBlock"](Object.assign({block:G.el},G))}),c["after:highlightBlock"]&&!c["after:highlightElement"]&&(c["after:highlightElement"]=G=>{c["after:highlightBlock"](Object.assign({block:G.el},G))})}function f(c){d(c),s.push(c)}function Y(c){const G=s.indexOf(c);G!==-1&&s.splice(G,1)}function J(c,G){const w=c;s.forEach(function(oe){oe[w]&&oe[w](G)})}function Me(c){return kt("10.7.0","highlightBlock will be removed entirely in v12.0"),kt("10.7.0","Please use highlightElement now."),H(c)}Object.assign(e,{highlight:A,highlightAuto:l,highlightAll:x,highlightElement:H,highlightBlock:Me,configure:Q,initHighlighting:W,initHighlightingOnLoad:j,registerLanguage:k,unregisterLanguage:Ie,listLanguages:ie,getLanguage:$,registerAliases:X,autoDetection:_,inherit:Mr,addPlugin:f,removePlugin:Y}),e.debugMode=function(){T=!1},e.safeMode=function(){T=!0},e.versionString=fi,e.regex={concat:Xt,lookahead:SR,either:FT,optional:YA,anyNumberOfTimes:FA};for(const c in WE)typeof WE[c]=="object"&&AR(WE[c]);return Object.assign(e,WE),e},nE=uR({});nE.newInstance=()=>uR({});var di=nE;nE.HighlightJS=nE;nE.default=nE;const LE=yT(di);function Mi(e){const t=e.regex,E=e.COMMENT("--","$"),s={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},T={begin:/"/,end:/"/,contains:[{match:/""/}]},r=["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"],o=["add","asc","collation","desc","final","first","last","view"],i=["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"],A=["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"],O=["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"],N=["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=A,C=[...i,...o].filter(k=>!A.includes(k)),H={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},Q={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},W={match:t.concat(/\b/,t.either(...l),/\s*\(/),relevance:0,keywords:{built_in:l}};function j(k){return t.concat(/\b/,t.either(...k.map(Ie=>Ie.replace(/\s+/,"\\s+"))),/\b/)}const ee={scope:"keyword",match:j(N),relevance:0};function x(k,{exceptions:Ie,when:ie}={}){const $=ie;return Ie=Ie||[],k.map(X=>X.match(/\|\d+$/)||Ie.includes(X)?X:$(X)?`${X}|0`:X)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:x(C,{when:k=>k.length<3}),literal:r,type:R,built_in:O},contains:[{scope:"type",match:j(n)},ee,W,H,s,T,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,E,Q]}}function Ui(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},E={match:/[{}[\],:]/,className:"punctuation",relevance:0},s=["true","false","null"],T={scope:"literal",beginKeywords:s.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:s},contains:[t,E,e.QUOTE_STRING_MODE,T,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}/**
|
1
|
+
var mA=Object.defineProperty;var HA=(e,t,E)=>t in e?mA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:E}):e[t]=E;var je=(e,t,E)=>HA(e,typeof t!="symbol"?t+"":t,E);var eE=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yT(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function AR(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(t=>{const E=e[t],s=typeof E;(s==="object"||s==="function")&&!Object.isFrozen(E)&&AR(E)}),e}class fr{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function iR(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function pt(e,...t){const E=Object.create(null);for(const s in e)E[s]=e[s];return t.forEach(function(s){for(const T in s)E[T]=s[T]}),E}const bA="</span>",pr=e=>!!e.scope,BA=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const E=e.split(".");return[`${t}${E.shift()}`,...E.map((s,T)=>`${s}${"_".repeat(T+1)}`)].join(" ")}return`${t}${e}`};class yA{constructor(t,E){this.buffer="",this.classPrefix=E.classPrefix,t.walk(this)}addText(t){this.buffer+=iR(t)}openNode(t){if(!pr(t))return;const E=BA(t.scope,{prefix:this.classPrefix});this.span(E)}closeNode(t){pr(t)&&(this.buffer+=bA)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const Dr=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class FT{constructor(){this.rootNode=Dr(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const E=Dr({scope:t});this.add(E),this.stack.push(E)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,E){return typeof E=="string"?t.addText(E):E.children&&(t.openNode(E),E.children.forEach(s=>this._walk(t,s)),t.closeNode(E)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(E=>typeof E=="string")?t.children=[t.children.join("")]:t.children.forEach(E=>{FT._collapse(E)}))}}class FA extends FT{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,E){const s=t.root;E&&(s.scope=`language:${E}`),this.add(s)}toHTML(){return new yA(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function hE(e){return e?typeof e=="string"?e:e.source:null}function SR(e){return Xt("(?=",e,")")}function vA(e){return Xt("(?:",e,")*")}function YA(e){return Xt("(?:",e,")?")}function Xt(...e){return e.map(E=>hE(E)).join("")}function VA(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function vT(...e){return"("+(VA(e).capture?"":"?:")+e.map(s=>hE(s)).join("|")+")"}function aR(e){return new RegExp(e.toString()+"|").exec("").length-1}function xA(e,t){const E=e&&e.exec(t);return E&&E.index===0}const wA=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function YT(e,{joinWith:t}){let E=0;return e.map(s=>{E+=1;const T=E;let r=hE(s),n="";for(;r.length>0;){const R=wA.exec(r);if(!R){n+=r;break}n+=r.substring(0,R.index),r=r.substring(R.index+R[0].length),R[0][0]==="\\"&&R[1]?n+="\\"+String(Number(R[1])+T):(n+=R[0],R[0]==="("&&E++)}return n}).map(s=>`(${s})`).join(t)}const WA=/\b\B/,IR="[a-zA-Z]\\w*",VT="[a-zA-Z_]\\w*",NR="\\b\\d+(\\.\\d+)?",lR="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",_R="\\b(0b[01]+)",XA="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",KA=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=Xt(t,/.*\b/,e.binary,/\b.*/)),pt({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(E,s)=>{E.index!==0&&s.ignoreMatch()}},e)},GE={begin:"\\\\[\\s\\S]",relevance:0},$A={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[GE]},JA={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[GE]},kA={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/},_s=function(e,t,E={}){const s=pt({scope:"comment",begin:e,end:t,contains:[]},E);s.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 T=vT("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 s.contains.push({begin:Xt(/[ ]+/,"(",T,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),s},qA=_s("//","$"),jA=_s("/\\*","\\*/"),QA=_s("#","$"),ZA={scope:"number",begin:NR,relevance:0},zA={scope:"number",begin:lR,relevance:0},ei={scope:"number",begin:_R,relevance:0},ti={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[GE,{begin:/\[/,end:/\]/,relevance:0,contains:[GE]}]},Ei={scope:"title",begin:IR,relevance:0},si={scope:"title",begin:VT,relevance:0},Ti={begin:"\\.\\s*"+VT,relevance:0},ri=function(e){return Object.assign(e,{"on:begin":(t,E)=>{E.data._beginMatch=t[1]},"on:end":(t,E)=>{E.data._beginMatch!==t[1]&&E.ignoreMatch()}})};var WE=Object.freeze({__proto__:null,APOS_STRING_MODE:$A,BACKSLASH_ESCAPE:GE,BINARY_NUMBER_MODE:ei,BINARY_NUMBER_RE:_R,COMMENT:_s,C_BLOCK_COMMENT_MODE:jA,C_LINE_COMMENT_MODE:qA,C_NUMBER_MODE:zA,C_NUMBER_RE:lR,END_SAME_AS_BEGIN:ri,HASH_COMMENT_MODE:QA,IDENT_RE:IR,MATCH_NOTHING_RE:WA,METHOD_GUARD:Ti,NUMBER_MODE:ZA,NUMBER_RE:NR,PHRASAL_WORDS_MODE:kA,QUOTE_STRING_MODE:JA,REGEXP_MODE:ti,RE_STARTERS_RE:XA,SHEBANG:KA,TITLE_MODE:Ei,UNDERSCORE_IDENT_RE:VT,UNDERSCORE_TITLE_MODE:si});function ni(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function Ri(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function oi(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=ni,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function Ai(e,t){Array.isArray(e.illegal)&&(e.illegal=vT(...e.illegal))}function ii(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Si(e,t){e.relevance===void 0&&(e.relevance=1)}const Oi=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const E=Object.assign({},e);Object.keys(e).forEach(s=>{delete e[s]}),e.keywords=E.keywords,e.begin=Xt(E.beforeMatch,SR(E.begin)),e.starts={relevance:0,contains:[Object.assign(E,{endsParent:!0})]},e.relevance=0,delete E.beforeMatch},ai=["of","and","for","in","not","or","if","then","parent","list","value"],Ii="keyword";function CR(e,t,E=Ii){const s=Object.create(null);return typeof e=="string"?T(E,e.split(" ")):Array.isArray(e)?T(E,e):Object.keys(e).forEach(function(r){Object.assign(s,CR(e[r],t,r))}),s;function T(r,n){t&&(n=n.map(R=>R.toLowerCase())),n.forEach(function(R){const o=R.split("|");s[o[0]]=[r,Ni(o[0],o[1])]})}}function Ni(e,t){return t?Number(t):li(e)?0:1}function li(e){return ai.includes(e.toLowerCase())}const Pr={},Yt=e=>{console.error(e)},dr=(e,...t)=>{console.log(`WARN: ${e}`,...t)},kt=(e,t)=>{Pr[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),Pr[`${e}/${t}`]=!0)},Es=new Error;function cR(e,t,{key:E}){let s=0;const T=e[E],r={},n={};for(let R=1;R<=t.length;R++)n[R+s]=T[R],r[R+s]=!0,s+=aR(t[R-1]);e[E]=n,e[E]._emit=r,e[E]._multi=!0}function _i(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Yt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Es;if(typeof e.beginScope!="object"||e.beginScope===null)throw Yt("beginScope must be object"),Es;cR(e,e.begin,{key:"beginScope"}),e.begin=YT(e.begin,{joinWith:""})}}function Ci(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Yt("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Es;if(typeof e.endScope!="object"||e.endScope===null)throw Yt("endScope must be object"),Es;cR(e,e.end,{key:"endScope"}),e.end=YT(e.end,{joinWith:""})}}function ci(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function Li(e){ci(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),_i(e),Ci(e)}function ui(e){function t(n,R){return new RegExp(hE(n),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(R?"g":""))}class E{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(R,o){o.position=this.position++,this.matchIndexes[this.matchAt]=o,this.regexes.push([o,R]),this.matchAt+=aR(R)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const R=this.regexes.map(o=>o[1]);this.matcherRe=t(YT(R,{joinWith:"|"}),!0),this.lastIndex=0}exec(R){this.matcherRe.lastIndex=this.lastIndex;const o=this.matcherRe.exec(R);if(!o)return null;const i=o.findIndex((O,N)=>N>0&&O!==void 0),A=this.matchIndexes[i];return o.splice(0,i),Object.assign(o,A)}}class s{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 o=new E;return this.rules.slice(R).forEach(([i,A])=>o.addRule(i,A)),o.compile(),this.multiRegexes[R]=o,o}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(R,o){this.rules.push([R,o]),o.type==="begin"&&this.count++}exec(R){const o=this.getMatcher(this.regexIndex);o.lastIndex=this.lastIndex;let i=o.exec(R);if(this.resumingScanAtSamePosition()&&!(i&&i.index===this.lastIndex)){const A=this.getMatcher(0);A.lastIndex=this.lastIndex+1,i=A.exec(R)}return i&&(this.regexIndex+=i.position+1,this.regexIndex===this.count&&this.considerAll()),i}}function T(n){const R=new s;return n.contains.forEach(o=>R.addRule(o.begin,{rule:o,type:"begin"})),n.terminatorEnd&&R.addRule(n.terminatorEnd,{type:"end"}),n.illegal&&R.addRule(n.illegal,{type:"illegal"}),R}function r(n,R){const o=n;if(n.isCompiled)return o;[Ri,ii,Li,Oi].forEach(A=>A(n,R)),e.compilerExtensions.forEach(A=>A(n,R)),n.__beforeBegin=null,[oi,Ai,Si].forEach(A=>A(n,R)),n.isCompiled=!0;let i=null;return typeof n.keywords=="object"&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),i=n.keywords.$pattern,delete n.keywords.$pattern),i=i||/\w+/,n.keywords&&(n.keywords=CR(n.keywords,e.case_insensitive)),o.keywordPatternRe=t(i,!0),R&&(n.begin||(n.begin=/\B|\b/),o.beginRe=t(o.begin),!n.end&&!n.endsWithParent&&(n.end=/\B|\b/),n.end&&(o.endRe=t(o.end)),o.terminatorEnd=hE(o.end)||"",n.endsWithParent&&R.terminatorEnd&&(o.terminatorEnd+=(n.end?"|":"")+R.terminatorEnd)),n.illegal&&(o.illegalRe=t(n.illegal)),n.contains||(n.contains=[]),n.contains=[].concat(...n.contains.map(function(A){return fi(A==="self"?n:A)})),n.contains.forEach(function(A){r(A,o)}),n.starts&&r(n.starts,R),o.matcher=T(o),o}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=pt(e.classNameAliases||{}),r(e)}function LR(e){return e?e.endsWithParent||LR(e.starts):!1}function fi(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return pt(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:LR(e)?pt(e,{starts:e.starts?pt(e.starts):null}):Object.isFrozen(e)?pt(e):e}var pi="11.11.1";class Di extends Error{constructor(t,E){super(t),this.name="HTMLInjectionError",this.html=E}}const vs=iR,Mr=pt,Ur=Symbol("nomatch"),Pi=7,uR=function(e){const t=Object.create(null),E=Object.create(null),s=[];let T=!0;const r="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:FA};function o(L){return R.noHighlightRe.test(L)}function i(L){let G=L.className+" ";G+=L.parentNode?L.parentNode.className:"";const w=R.languageDetectRe.exec(G);if(w){const oe=$(w[1]);return oe||(dr(r.replace("{}",w[1])),dr("Falling back to no-highlight mode for this block.",L)),oe?w[1]:"no-highlight"}return G.split(/\s+/).find(oe=>o(oe)||$(oe))}function A(L,G,w){let oe="",Le="";typeof G=="object"?(oe=L,w=G.ignoreIllegals,Le=G.language):(kt("10.7.0","highlight(lang, code, ...args) has been deprecated."),kt("10.7.0",`Please use highlight(code, options) instead.
|
2
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),Le=L,oe=G),w===void 0&&(w=!0);const Pe={code:oe,language:Le};J("before:highlight",Pe);const de=Pe.result?Pe.result:O(Pe.language,Pe.code,w);return de.code=Pe.code,J("after:highlight",de),de}function O(L,G,w,oe){const Le=Object.create(null);function Pe(M,b){return M.keywords[b]}function de(){if(!D.keywords){m.addText(f);return}let M=0;D.keywordPatternRe.lastIndex=0;let b=D.keywordPatternRe.exec(f),V="";for(;b;){V+=f.substring(M,b.index);const se=U.case_insensitive?b[0].toLowerCase():b[0],Oe=Pe(D,se);if(Oe){const[De,qe]=Oe;if(m.addText(V),V="",Le[se]=(Le[se]||0)+1,Le[se]<=Pi&&(q+=qe),De.startsWith("_"))V+=b[0];else{const bt=U.classNameAliases[De]||De;ke(b[0],bt)}}else V+=b[0];M=D.keywordPatternRe.lastIndex,b=D.keywordPatternRe.exec(f)}V+=f.substring(M),m.addText(V)}function gt(){if(f==="")return;let M=null;if(typeof D.subLanguage=="string"){if(!t[D.subLanguage]){m.addText(f);return}M=O(D.subLanguage,f,!0,B[D.subLanguage]),B[D.subLanguage]=M._top}else M=l(f,D.subLanguage.length?D.subLanguage:null);D.relevance>0&&(q+=M.relevance),m.__addSublanguage(M._emitter,M.language)}function Ve(){D.subLanguage!=null?gt():de(),f=""}function ke(M,b){M!==""&&(m.startScope(b),m.addText(M),m.endScope())}function _t(M,b){let V=1;const se=b.length-1;for(;V<=se;){if(!M._emit[V]){V++;continue}const Oe=U.classNameAliases[M[V]]||M[V],De=b[V];Oe?ke(De,Oe):(f=De,de(),f=""),V++}}function mt(M,b){return M.scope&&typeof M.scope=="string"&&m.openNode(U.classNameAliases[M.scope]||M.scope),M.beginScope&&(M.beginScope._wrap?(ke(f,U.classNameAliases[M.beginScope._wrap]||M.beginScope._wrap),f=""):M.beginScope._multi&&(_t(M.beginScope,b),f="")),D=Object.create(M,{parent:{value:D}}),D}function Jt(M,b,V){let se=xA(M.endRe,V);if(se){if(M["on:end"]){const Oe=new fr(M);M["on:end"](b,Oe),Oe.isMatchIgnored&&(se=!1)}if(se){for(;M.endsParent&&M.parent;)M=M.parent;return M}}if(M.endsWithParent)return Jt(M.parent,b,V)}function wE(M){return D.matcher.regexIndex===0?(f+=M[0],1):(Z=!0,0)}function Ht(M){const b=M[0],V=M.rule,se=new fr(V),Oe=[V.__beforeBegin,V["on:begin"]];for(const De of Oe)if(De&&(De(M,se),se.isMatchIgnored))return wE(b);return V.skip?f+=b:(V.excludeBegin&&(f+=b),Ve(),!V.returnBegin&&!V.excludeBegin&&(f=b)),mt(V,M),V.returnBegin?0:b.length}function cr(M){const b=M[0],V=G.substring(M.index),se=Jt(D,M,V);if(!se)return Ur;const Oe=D;D.endScope&&D.endScope._wrap?(Ve(),ke(b,D.endScope._wrap)):D.endScope&&D.endScope._multi?(Ve(),_t(D.endScope,M)):Oe.skip?f+=b:(Oe.returnEnd||Oe.excludeEnd||(f+=b),Ve(),Oe.excludeEnd&&(f=b));do D.scope&&m.closeNode(),!D.skip&&!D.subLanguage&&(q+=D.relevance),D=D.parent;while(D!==se.parent);return se.starts&&mt(se.starts,M),Oe.returnEnd?0:b.length}function a(){const M=[];for(let b=D;b!==U;b=b.parent)b.scope&&M.unshift(b.scope);M.forEach(b=>m.openNode(b))}let I={};function c(M,b){const V=b&&b[0];if(f+=M,V==null)return Ve(),0;if(I.type==="begin"&&b.type==="end"&&I.index===b.index&&V===""){if(f+=G.slice(b.index,b.index+1),!T){const se=new Error(`0 width match regex (${L})`);throw se.languageName=L,se.badRule=I.rule,se}return 1}if(I=b,b.type==="begin")return Ht(b);if(b.type==="illegal"&&!w){const se=new Error('Illegal lexeme "'+V+'" for mode "'+(D.scope||"<unnamed>")+'"');throw se.mode=D,se}else if(b.type==="end"){const se=cr(b);if(se!==Ur)return se}if(b.type==="illegal"&&V==="")return f+=`
|
3
|
+
`,1;if(K>1e5&&K>b.index*3)throw new Error("potential infinite loop, way more iterations than matches");return f+=V,V.length}const U=$(L);if(!U)throw Yt(r.replace("{}",L)),new Error('Unknown language: "'+L+'"');const h=ui(U);let g="",D=oe||h;const B={},m=new R.__emitter(R);a();let f="",q=0,F=0,K=0,Z=!1;try{if(U.__emitTokens)U.__emitTokens(G,m);else{for(D.matcher.considerAll();;){K++,Z?Z=!1:D.matcher.considerAll(),D.matcher.lastIndex=F;const M=D.matcher.exec(G);if(!M)break;const b=G.substring(F,M.index),V=c(b,M);F=M.index+V}c(G.substring(F))}return m.finalize(),g=m.toHTML(),{language:L,value:g,relevance:q,illegal:!1,_emitter:m,_top:D}}catch(M){if(M.message&&M.message.includes("Illegal"))return{language:L,value:vs(G),illegal:!0,relevance:0,_illegalBy:{message:M.message,index:F,context:G.slice(F-100,F+100),mode:M.mode,resultSoFar:g},_emitter:m};if(T)return{language:L,value:vs(G),illegal:!1,relevance:0,errorRaised:M,_emitter:m,_top:D};throw M}}function N(L){const G={value:vs(L),illegal:!1,relevance:0,_top:n,_emitter:new R.__emitter(R)};return G._emitter.addText(L),G}function l(L,G){G=G||R.languages||Object.keys(t);const w=N(L),oe=G.filter($).filter(_).map(Ve=>O(Ve,L,!1));oe.unshift(w);const Le=oe.sort((Ve,ke)=>{if(Ve.relevance!==ke.relevance)return ke.relevance-Ve.relevance;if(Ve.language&&ke.language){if($(Ve.language).supersetOf===ke.language)return 1;if($(ke.language).supersetOf===Ve.language)return-1}return 0}),[Pe,de]=Le,gt=Pe;return gt.secondBest=de,gt}function C(L,G,w){const oe=G&&E[G]||w;L.classList.add("hljs"),L.classList.add(`language-${oe}`)}function H(L){let G=null;const w=i(L);if(o(w))return;if(J("before:highlightElement",{el:L,language:w}),L.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",L);return}if(L.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(L)),R.throwUnescapedHTML))throw new Di("One of your code blocks includes unescaped HTML.",L.innerHTML);G=L;const oe=G.textContent,Le=w?A(oe,{language:w,ignoreIllegals:!0}):l(oe);L.innerHTML=Le.value,L.dataset.highlighted="yes",C(L,w,Le.language),L.result={language:Le.language,re:Le.relevance,relevance:Le.relevance},Le.secondBest&&(L.secondBest={language:Le.secondBest.language,relevance:Le.secondBest.relevance}),J("after:highlightElement",{el:L,result:Le,text:oe})}function Q(L){R=Mr(R,L)}const W=()=>{x(),kt("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function j(){x(),kt("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let ee=!1;function x(){function L(){x()}if(document.readyState==="loading"){ee||window.addEventListener("DOMContentLoaded",L,!1),ee=!0;return}document.querySelectorAll(R.cssSelector).forEach(H)}function k(L,G){let w=null;try{w=G(e)}catch(oe){if(Yt("Language definition for '{}' could not be registered.".replace("{}",L)),T)Yt(oe);else throw oe;w=n}w.name||(w.name=L),t[L]=w,w.rawDefinition=G.bind(null,e),w.aliases&&X(w.aliases,{languageName:L})}function ae(L){delete t[L];for(const G of Object.keys(E))E[G]===L&&delete E[G]}function ie(){return Object.keys(t)}function $(L){return L=(L||"").toLowerCase(),t[L]||t[E[L]]}function X(L,{languageName:G}){typeof L=="string"&&(L=[L]),L.forEach(w=>{E[w.toLowerCase()]=G})}function _(L){const G=$(L);return G&&!G.disableAutodetect}function d(L){L["before:highlightBlock"]&&!L["before:highlightElement"]&&(L["before:highlightElement"]=G=>{L["before:highlightBlock"](Object.assign({block:G.el},G))}),L["after:highlightBlock"]&&!L["after:highlightElement"]&&(L["after:highlightElement"]=G=>{L["after:highlightBlock"](Object.assign({block:G.el},G))})}function p(L){d(L),s.push(L)}function Y(L){const G=s.indexOf(L);G!==-1&&s.splice(G,1)}function J(L,G){const w=L;s.forEach(function(oe){oe[w]&&oe[w](G)})}function Me(L){return kt("10.7.0","highlightBlock will be removed entirely in v12.0"),kt("10.7.0","Please use highlightElement now."),H(L)}Object.assign(e,{highlight:A,highlightAuto:l,highlightAll:x,highlightElement:H,highlightBlock:Me,configure:Q,initHighlighting:W,initHighlightingOnLoad:j,registerLanguage:k,unregisterLanguage:ae,listLanguages:ie,getLanguage:$,registerAliases:X,autoDetection:_,inherit:Mr,addPlugin:p,removePlugin:Y}),e.debugMode=function(){T=!1},e.safeMode=function(){T=!0},e.versionString=pi,e.regex={concat:Xt,lookahead:SR,either:vT,optional:YA,anyNumberOfTimes:vA};for(const L in WE)typeof WE[L]=="object"&&AR(WE[L]);return Object.assign(e,WE),e},nE=uR({});nE.newInstance=()=>uR({});var di=nE;nE.HighlightJS=nE;nE.default=nE;const cE=yT(di);function Mi(e){const t=e.regex,E=e.COMMENT("--","$"),s={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},T={begin:/"/,end:/"/,contains:[{match:/""/}]},r=["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"],o=["add","asc","collation","desc","final","first","last","view"],i=["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"],A=["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"],O=["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"],N=["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=A,C=[...i,...o].filter(k=>!A.includes(k)),H={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},Q={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},W={match:t.concat(/\b/,t.either(...l),/\s*\(/),relevance:0,keywords:{built_in:l}};function j(k){return t.concat(/\b/,t.either(...k.map(ae=>ae.replace(/\s+/,"\\s+"))),/\b/)}const ee={scope:"keyword",match:j(N),relevance:0};function x(k,{exceptions:ae,when:ie}={}){const $=ie;return ae=ae||[],k.map(X=>X.match(/\|\d+$/)||ae.includes(X)?X:$(X)?`${X}|0`:X)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:x(C,{when:k=>k.length<3}),literal:r,type:R,built_in:O},contains:[{scope:"type",match:j(n)},ee,W,H,s,T,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,E,Q]}}function Ui(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},E={match:/[{}[\],:]/,className:"punctuation",relevance:0},s=["true","false","null"],T={scope:"literal",beginKeywords:s.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:s},contains:[t,E,e.QUOTE_STRING_MODE,T,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}/**
|
4
4
|
* @vue/shared v3.5.13
|
5
5
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
6
6
|
* @license MIT
|
7
|
-
**//*! #__NO_SIDE_EFFECTS__ */function xT(e){const t=Object.create(null);for(const E of e.split(","))t[E]=1;return E=>E in t}const Ce={},tE=[],it=()=>{},hi=()=>!1,Cs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),wT=e=>e.startsWith("onUpdate:"),
|
7
|
+
**//*! #__NO_SIDE_EFFECTS__ */function xT(e){const t=Object.create(null);for(const E of e.split(","))t[E]=1;return E=>E in t}const Ce={},tE=[],it=()=>{},hi=()=>!1,Cs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),wT=e=>e.startsWith("onUpdate:"),ve=Object.assign,WT=(e,t)=>{const E=e.indexOf(t);E>-1&&e.splice(E,1)},Gi=Object.prototype.hasOwnProperty,Ie=(e,t)=>Gi.call(e,t),te=Array.isArray,EE=e=>cs(e)==="[object Map]",fR=e=>cs(e)==="[object Set]",re=e=>typeof e=="function",pe=e=>typeof e=="string",Nt=e=>typeof e=="symbol",ue=e=>e!==null&&typeof e=="object",pR=e=>(ue(e)||re(e))&&re(e.then)&&re(e.catch),DR=Object.prototype.toString,cs=e=>DR.call(e),gi=e=>cs(e).slice(8,-1),PR=e=>cs(e)==="[object Object]",XT=e=>pe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,LE=xT(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ls=e=>{const t=Object.create(null);return E=>t[E]||(t[E]=e(E))},mi=/-(\w)/g,ze=Ls(e=>e.replace(mi,(t,E)=>E?E.toUpperCase():"")),Hi=/\B([A-Z])/g,Kt=Ls(e=>e.replace(Hi,"-$1").toLowerCase()),us=Ls(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ys=Ls(e=>e?`on${us(e)}`:""),Dt=(e,t)=>!Object.is(e,t),Vs=(e,...t)=>{for(let E=0;E<e.length;E++)e[E](...t)},dR=(e,t,E,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:E})},bi=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let hr;const fs=()=>hr||(hr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ps(e){if(te(e)){const t={};for(let E=0;E<e.length;E++){const s=e[E],T=pe(s)?vi(s):ps(s);if(T)for(const r in T)t[r]=T[r]}return t}else if(pe(e)||ue(e))return e}const Bi=/;(?![^(]*\))/g,yi=/:([^]+)/,Fi=/\/\*[^]*?\*\//g;function vi(e){const t={};return e.replace(Fi,"").split(Bi).forEach(E=>{if(E){const s=E.split(yi);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function ge(e){let t="";if(pe(e))t=e;else if(te(e))for(let E=0;E<e.length;E++){const s=ge(e[E]);s&&(t+=s+" ")}else if(ue(e))for(const E in e)e[E]&&(t+=E+" ");return t.trim()}const Yi="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Vi=xT(Yi);function MR(e){return!!e||e===""}const UR=e=>!!(e&&e.__v_isRef===!0),ne=e=>pe(e)?e:e==null?"":te(e)||ue(e)&&(e.toString===DR||!re(e.toString))?UR(e)?ne(e.value):JSON.stringify(e,hR,2):String(e),hR=(e,t)=>UR(t)?hR(e,t.value):EE(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((E,[s,T],r)=>(E[xs(s,r)+" =>"]=T,E),{})}:fR(t)?{[`Set(${t.size})`]:[...t.values()].map(E=>xs(E))}:Nt(t)?xs(t):ue(t)&&!te(t)&&!PR(t)?String(t):t,xs=(e,t="")=>{var E;return Nt(e)?`Symbol(${(E=e.description)!=null?E:t})`:e};/**
|
8
8
|
* @vue/reactivity v3.5.13
|
9
9
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
10
10
|
* @license MIT
|
11
|
-
**/let We;class GR{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=We,!t&&We&&(this.index=(We.scopes||(We.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,E;if(this.scopes)for(t=0,E=this.scopes.length;t<E;t++)this.scopes[t].pause();for(t=0,E=this.effects.length;t<E;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,E;if(this.scopes)for(t=0,E=this.scopes.length;t<E;t++)this.scopes[t].resume();for(t=0,E=this.effects.length;t<E;t++)this.effects[t].resume()}}run(t){if(this._active){const E=We;try{return We=this,t()}finally{We=E}}}on(){We=this}off(){We=this.parent}stop(t){if(this._active){this._active=!1;let E,s;for(E=0,s=this.effects.length;E<s;E++)this.effects[E].stop();for(this.effects.length=0,E=0,s=this.cleanups.length;E<s;E++)this.cleanups[E]();if(this.cleanups.length=0,this.scopes){for(E=0,s=this.scopes.length;E<s;E++)this.scopes[E].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const T=this.parent.scopes.pop();T&&T!==this&&(this.parent.scopes[this.index]=T,T.index=this.index)}this.parent=void 0}}}function gR(e){return new GR(e)}function mR(){return We}function xi(e,t=!1){We&&We.cleanups.push(e)}let _e;const ws=new WeakSet;class HR{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,We&&We.active&&We.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ws.has(this)&&(ws.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||bR(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Gr(this),yR(this);const t=_e,E=Et;_e=this,Et=!0;try{return this.fn()}finally{vR(this),_e=t,Et=E,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)JT(t);this.deps=this.depsTail=void 0,Gr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ws.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){CT(this)&&this.run()}get dirty(){return CT(this)}}let BR=0,uE,pE;function bR(e,t=!1){if(e.flags|=8,t){e.next=pE,pE=e;return}e.next=uE,uE=e}function KT(){BR++}function $T(){if(--BR>0)return;if(pE){let t=pE;for(pE=void 0;t;){const E=t.next;t.next=void 0,t.flags&=-9,t=E}}let e;for(;uE;){let t=uE;for(uE=void 0;t;){const E=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=E}}if(e)throw e}function yR(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function vR(e){let t,E=e.depsTail,s=E;for(;s;){const T=s.prevDep;s.version===-1?(s===E&&(E=T),JT(s),wi(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=T}e.deps=t,e.depsTail=E}function CT(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(FR(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function FR(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===gE))return;e.globalVersion=gE;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!CT(e)){e.flags&=-3;return}const E=_e,s=Et;_e=e,Et=!0;try{yR(e);const T=e.fn(e._value);(t.version===0||Dt(T,e._value))&&(e._value=T,t.version++)}catch(T){throw t.version++,T}finally{_e=E,Et=s,vR(e),e.flags&=-3}}function JT(e,t=!1){const{dep:E,prevSub:s,nextSub:T}=e;if(s&&(s.nextSub=T,e.prevSub=void 0),T&&(T.prevSub=s,e.nextSub=void 0),E.subs===e&&(E.subs=s,!s&&E.computed)){E.computed.flags&=-5;for(let r=E.computed.deps;r;r=r.nextDep)JT(r,!0)}!t&&!--E.sc&&E.map&&E.map.delete(E.key)}function wi(e){const{prevDep:t,nextDep:E}=e;t&&(t.nextDep=E,e.prevDep=void 0),E&&(E.prevDep=t,e.nextDep=void 0)}let Et=!0;const YR=[];function Mt(){YR.push(Et),Et=!1}function Ut(){const e=YR.pop();Et=e===void 0?!0:e}function Gr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const E=_e;_e=void 0;try{t()}finally{_e=E}}}let gE=0;class Wi{constructor(t,E){this.sub=t,this.dep=E,this.version=E.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class kT{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!_e||!Et||_e===this.computed)return;let E=this.activeLink;if(E===void 0||E.sub!==_e)E=this.activeLink=new Wi(_e,this),_e.deps?(E.prevDep=_e.depsTail,_e.depsTail.nextDep=E,_e.depsTail=E):_e.deps=_e.depsTail=E,VR(E);else if(E.version===-1&&(E.version=this.version,E.nextDep)){const s=E.nextDep;s.prevDep=E.prevDep,E.prevDep&&(E.prevDep.nextDep=s),E.prevDep=_e.depsTail,E.nextDep=void 0,_e.depsTail.nextDep=E,_e.depsTail=E,_e.deps===E&&(_e.deps=s)}return E}trigger(t){this.version++,gE++,this.notify(t)}notify(t){KT();try{for(let E=this.subs;E;E=E.prevSub)E.sub.notify()&&E.sub.dep.notify()}finally{$T()}}}function VR(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)VR(s)}const E=e.dep.subs;E!==e&&(e.prevSub=E,E&&(E.nextSub=e)),e.dep.subs=e}}const ss=new WeakMap,Vt=Symbol(""),LT=Symbol(""),mE=Symbol("");function Be(e,t,E){if(Et&&_e){let s=ss.get(e);s||ss.set(e,s=new Map);let T=s.get(E);T||(s.set(E,T=new kT),T.map=s,T.key=E),T.track()}}function at(e,t,E,s,T,r){const n=ss.get(e);if(!n){gE++;return}const R=o=>{o&&o.trigger()};if(KT(),t==="clear")n.forEach(R);else{const o=te(e),i=o&&XT(E);if(o&&E==="length"){const A=Number(s);n.forEach((O,N)=>{(N==="length"||N===mE||!Nt(N)&&N>=A)&&R(O)})}else switch((E!==void 0||n.has(void 0))&&R(n.get(E)),i&&R(n.get(mE)),t){case"add":o?i&&R(n.get("length")):(R(n.get(Vt)),EE(e)&&R(n.get(LT)));break;case"delete":o||(R(n.get(Vt)),EE(e)&&R(n.get(LT)));break;case"set":EE(e)&&R(n.get(Vt));break}}$T()}function Xi(e,t){const E=ss.get(e);return E&&E.get(t)}function qt(e){const t=Se(e);return t===e?t:(Be(t,"iterate",mE),Ze(e)?t:t.map(be))}function Ds(e){return Be(e=Se(e),"iterate",mE),e}const Ki={__proto__:null,[Symbol.iterator](){return Ws(this,Symbol.iterator,be)},concat(...e){return qt(this).concat(...e.map(t=>te(t)?qt(t):t))},entries(){return Ws(this,"entries",e=>(e[1]=be(e[1]),e))},every(e,t){return Ot(this,"every",e,t,void 0,arguments)},filter(e,t){return Ot(this,"filter",e,t,E=>E.map(be),arguments)},find(e,t){return Ot(this,"find",e,t,be,arguments)},findIndex(e,t){return Ot(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ot(this,"findLast",e,t,be,arguments)},findLastIndex(e,t){return Ot(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ot(this,"forEach",e,t,void 0,arguments)},includes(...e){return Xs(this,"includes",e)},indexOf(...e){return Xs(this,"indexOf",e)},join(e){return qt(this).join(e)},lastIndexOf(...e){return Xs(this,"lastIndexOf",e)},map(e,t){return Ot(this,"map",e,t,void 0,arguments)},pop(){return NE(this,"pop")},push(...e){return NE(this,"push",e)},reduce(e,...t){return gr(this,"reduce",e,t)},reduceRight(e,...t){return gr(this,"reduceRight",e,t)},shift(){return NE(this,"shift")},some(e,t){return Ot(this,"some",e,t,void 0,arguments)},splice(...e){return NE(this,"splice",e)},toReversed(){return qt(this).toReversed()},toSorted(e){return qt(this).toSorted(e)},toSpliced(...e){return qt(this).toSpliced(...e)},unshift(...e){return NE(this,"unshift",e)},values(){return Ws(this,"values",be)}};function Ws(e,t,E){const s=Ds(e),T=s[t]();return s!==e&&!Ze(e)&&(T._next=T.next,T.next=()=>{const r=T._next();return r.value&&(r.value=E(r.value)),r}),T}const $i=Array.prototype;function Ot(e,t,E,s,T,r){const n=Ds(e),R=n!==e&&!Ze(e),o=n[t];if(o!==$i[t]){const O=o.apply(e,r);return R?be(O):O}let i=E;n!==e&&(R?i=function(O,N){return E.call(this,be(O),N,e)}:E.length>2&&(i=function(O,N){return E.call(this,O,N,e)}));const A=o.call(n,i,s);return R&&T?T(A):A}function gr(e,t,E,s){const T=Ds(e);let r=E;return T!==e&&(Ze(e)?E.length>3&&(r=function(n,R,o){return E.call(this,n,R,o,e)}):r=function(n,R,o){return E.call(this,n,be(R),o,e)}),T[t](r,...s)}function Xs(e,t,E){const s=Se(e);Be(s,"iterate",mE);const T=s[t](...E);return(T===-1||T===!1)&&QT(E[0])?(E[0]=Se(E[0]),s[t](...E)):T}function NE(e,t,E=[]){Mt(),KT();const s=Se(e)[t].apply(e,E);return $T(),Ut(),s}const Ji=xT("__proto__,__v_isRef,__isVue"),xR=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Nt));function ki(e){Nt(e)||(e=String(e));const t=Se(this);return Be(t,"has",e),t.hasOwnProperty(e)}class wR{constructor(t=!1,E=!1){this._isReadonly=t,this._isShallow=E}get(t,E,s){if(E==="__v_skip")return t.__v_skip;const T=this._isReadonly,r=this._isShallow;if(E==="__v_isReactive")return!T;if(E==="__v_isReadonly")return T;if(E==="__v_isShallow")return r;if(E==="__v_raw")return s===(T?r?TS:$R:r?KR:XR).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const n=te(t);if(!T){let o;if(n&&(o=Ki[E]))return o;if(E==="hasOwnProperty")return ki}const R=Reflect.get(t,E,pe(t)?t:s);return(Nt(E)?xR.has(E):Ji(E))||(T||Be(t,"get",E),r)?R:pe(R)?n&&XT(E)?R:R.value:ue(R)?T?JR(R):rt(R):R}}class WR extends wR{constructor(t=!1){super(!1,t)}set(t,E,s,T){let r=t[E];if(!this._isShallow){const o=wt(r);if(!Ze(s)&&!wt(s)&&(r=Se(r),s=Se(s)),!te(t)&&pe(r)&&!pe(s))return o?!1:(r.value=s,!0)}const n=te(t)&&XT(E)?Number(E)<t.length:ae(t,E),R=Reflect.set(t,E,s,pe(t)?t:T);return t===Se(T)&&(n?Dt(s,r)&&at(t,"set",E,s):at(t,"add",E,s)),R}deleteProperty(t,E){const s=ae(t,E);t[E];const T=Reflect.deleteProperty(t,E);return T&&s&&at(t,"delete",E,void 0),T}has(t,E){const s=Reflect.has(t,E);return(!Nt(E)||!xR.has(E))&&Be(t,"has",E),s}ownKeys(t){return Be(t,"iterate",te(t)?"length":Vt),Reflect.ownKeys(t)}}class qi extends wR{constructor(t=!1){super(!0,t)}set(t,E){return!0}deleteProperty(t,E){return!0}}const ji=new WR,Qi=new qi,Zi=new WR(!0);const cT=e=>e,XE=e=>Reflect.getPrototypeOf(e);function zi(e,t,E){return function(...s){const T=this.__v_raw,r=Se(T),n=EE(r),R=e==="entries"||e===Symbol.iterator&&n,o=e==="keys"&&n,i=T[e](...s),A=E?cT:t?uT:be;return!t&&Be(r,"iterate",o?LT:Vt),{next(){const{value:O,done:N}=i.next();return N?{value:O,done:N}:{value:R?[A(O[0]),A(O[1])]:A(O),done:N}},[Symbol.iterator](){return this}}}}function KE(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function eS(e,t){const E={get(T){const r=this.__v_raw,n=Se(r),R=Se(T);e||(Dt(T,R)&&Be(n,"get",T),Be(n,"get",R));const{has:o}=XE(n),i=t?cT:e?uT:be;if(o.call(n,T))return i(r.get(T));if(o.call(n,R))return i(r.get(R));r!==n&&r.get(T)},get size(){const T=this.__v_raw;return!e&&Be(Se(T),"iterate",Vt),Reflect.get(T,"size",T)},has(T){const r=this.__v_raw,n=Se(r),R=Se(T);return e||(Dt(T,R)&&Be(n,"has",T),Be(n,"has",R)),T===R?r.has(T):r.has(T)||r.has(R)},forEach(T,r){const n=this,R=n.__v_raw,o=Se(R),i=t?cT:e?uT:be;return!e&&Be(o,"iterate",Vt),R.forEach((A,O)=>T.call(r,i(A),i(O),n))}};return Fe(E,e?{add:KE("add"),set:KE("set"),delete:KE("delete"),clear:KE("clear")}:{add(T){!t&&!Ze(T)&&!wt(T)&&(T=Se(T));const r=Se(this);return XE(r).has.call(r,T)||(r.add(T),at(r,"add",T,T)),this},set(T,r){!t&&!Ze(r)&&!wt(r)&&(r=Se(r));const n=Se(this),{has:R,get:o}=XE(n);let i=R.call(n,T);i||(T=Se(T),i=R.call(n,T));const A=o.call(n,T);return n.set(T,r),i?Dt(r,A)&&at(n,"set",T,r):at(n,"add",T,r),this},delete(T){const r=Se(this),{has:n,get:R}=XE(r);let o=n.call(r,T);o||(T=Se(T),o=n.call(r,T)),R&&R.call(r,T);const i=r.delete(T);return o&&at(r,"delete",T,void 0),i},clear(){const T=Se(this),r=T.size!==0,n=T.clear();return r&&at(T,"clear",void 0,void 0),n}}),["keys","values","entries",Symbol.iterator].forEach(T=>{E[T]=zi(T,e,t)}),E}function qT(e,t){const E=eS(e,t);return(s,T,r)=>T==="__v_isReactive"?!e:T==="__v_isReadonly"?e:T==="__v_raw"?s:Reflect.get(ae(E,T)&&T in s?E:s,T,r)}const tS={get:qT(!1,!1)},ES={get:qT(!1,!0)},sS={get:qT(!0,!1)};const XR=new WeakMap,KR=new WeakMap,$R=new WeakMap,TS=new WeakMap;function rS(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function nS(e){return e.__v_skip||!Object.isExtensible(e)?0:rS(gi(e))}function rt(e){return wt(e)?e:jT(e,!1,ji,tS,XR)}function RS(e){return jT(e,!1,Zi,ES,KR)}function JR(e){return jT(e,!0,Qi,sS,$R)}function jT(e,t,E,s,T){if(!ue(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=T.get(e);if(r)return r;const n=nS(e);if(n===0)return e;const R=new Proxy(e,n===2?s:E);return T.set(e,R),R}function Pt(e){return wt(e)?Pt(e.__v_raw):!!(e&&e.__v_isReactive)}function wt(e){return!!(e&&e.__v_isReadonly)}function Ze(e){return!!(e&&e.__v_isShallow)}function QT(e){return e?!!e.__v_raw:!1}function Se(e){const t=e&&e.__v_raw;return t?Se(t):e}function ZT(e){return!ae(e,"__v_skip")&&Object.isExtensible(e)&&dR(e,"__v_skip",!0),e}const be=e=>ue(e)?rt(e):e,uT=e=>ue(e)?JR(e):e;function pe(e){return e?e.__v_isRef===!0:!1}function Qe(e){return oS(e,!1)}function oS(e,t){return pe(e)?e:new AS(e,t)}class AS{constructor(t,E){this.dep=new kT,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=E?t:Se(t),this._value=E?t:be(t),this.__v_isShallow=E}get value(){return this.dep.track(),this._value}set value(t){const E=this._rawValue,s=this.__v_isShallow||Ze(t)||wt(t);t=s?t:Se(t),Dt(t,E)&&(this._rawValue=t,this._value=s?t:be(t),this.dep.trigger())}}function Re(e){return pe(e)?e.value:e}const iS={get:(e,t,E)=>t==="__v_raw"?e:Re(Reflect.get(e,t,E)),set:(e,t,E,s)=>{const T=e[t];return pe(T)&&!pe(E)?(T.value=E,!0):Reflect.set(e,t,E,s)}};function kR(e){return Pt(e)?e:new Proxy(e,iS)}function SS(e){const t=te(e)?new Array(e.length):{};for(const E in e)t[E]=IS(e,E);return t}class OS{constructor(t,E,s){this._object=t,this._key=E,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Xi(Se(this._object),this._key)}}function IS(e,t,E){const s=e[t];return pe(s)?s:new OS(e,t,E)}class aS{constructor(t,E,s){this.fn=t,this.setter=E,this._value=void 0,this.dep=new kT(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=gE-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!E,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&_e!==this)return bR(this,!0),!0}get value(){const t=this.dep.track();return FR(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function NS(e,t,E=!1){let s,T;return re(e)?s=e:(s=e.get,T=e.set),new aS(s,T,E)}const $E={},Ts=new WeakMap;let Ft;function lS(e,t=!1,E=Ft){if(E){let s=Ts.get(E);s||Ts.set(E,s=[]),s.push(e)}}function _S(e,t,E=Ce){const{immediate:s,deep:T,once:r,scheduler:n,augmentJob:R,call:o}=E,i=x=>T?x:Ze(x)||T===!1||T===0?pt(x,1):pt(x);let A,O,N,l,C=!1,H=!1;if(pe(e)?(O=()=>e.value,C=Ze(e)):Pt(e)?(O=()=>i(e),C=!0):te(e)?(H=!0,C=e.some(x=>Pt(x)||Ze(x)),O=()=>e.map(x=>{if(pe(x))return x.value;if(Pt(x))return i(x);if(re(x))return o?o(x,2):x()})):re(e)?t?O=o?()=>o(e,2):e:O=()=>{if(N){Mt();try{N()}finally{Ut()}}const x=Ft;Ft=A;try{return o?o(e,3,[l]):e(l)}finally{Ft=x}}:O=it,t&&T){const x=O,k=T===!0?1/0:T;O=()=>pt(x(),k)}const Q=mR(),W=()=>{A.stop(),Q&&Q.active&&WT(Q.effects,A)};if(r&&t){const x=t;t=(...k)=>{x(...k),W()}}let j=H?new Array(e.length).fill($E):$E;const ee=x=>{if(!(!(A.flags&1)||!A.dirty&&!x))if(t){const k=A.run();if(T||C||(H?k.some((Ie,ie)=>Dt(Ie,j[ie])):Dt(k,j))){N&&N();const Ie=Ft;Ft=A;try{const ie=[k,j===$E?void 0:H&&j[0]===$E?[]:j,l];o?o(t,3,ie):t(...ie),j=k}finally{Ft=Ie}}}else A.run()};return R&&R(ee),A=new HR(O),A.scheduler=n?()=>n(ee,!1):ee,l=x=>lS(x,!1,A),N=A.onStop=()=>{const x=Ts.get(A);if(x){if(o)o(x,4);else for(const k of x)k();Ts.delete(A)}},t?s?ee(!0):j=A.run():n?n(ee.bind(null,!0),!0):A.run(),W.pause=A.pause.bind(A),W.resume=A.resume.bind(A),W.stop=W,W}function pt(e,t=1/0,E){if(t<=0||!ue(e)||e.__v_skip||(E=E||new Set,E.has(e)))return e;if(E.add(e),t--,pe(e))pt(e.value,t,E);else if(te(e))for(let s=0;s<e.length;s++)pt(e[s],t,E);else if(pR(e)||EE(e))e.forEach(s=>{pt(s,t,E)});else if(PR(e)){for(const s in e)pt(e[s],t,E);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&pt(e[s],t,E)}return e}/**
|
11
|
+
**/let We;class GR{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=We,!t&&We&&(this.index=(We.scopes||(We.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,E;if(this.scopes)for(t=0,E=this.scopes.length;t<E;t++)this.scopes[t].pause();for(t=0,E=this.effects.length;t<E;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,E;if(this.scopes)for(t=0,E=this.scopes.length;t<E;t++)this.scopes[t].resume();for(t=0,E=this.effects.length;t<E;t++)this.effects[t].resume()}}run(t){if(this._active){const E=We;try{return We=this,t()}finally{We=E}}}on(){We=this}off(){We=this.parent}stop(t){if(this._active){this._active=!1;let E,s;for(E=0,s=this.effects.length;E<s;E++)this.effects[E].stop();for(this.effects.length=0,E=0,s=this.cleanups.length;E<s;E++)this.cleanups[E]();if(this.cleanups.length=0,this.scopes){for(E=0,s=this.scopes.length;E<s;E++)this.scopes[E].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const T=this.parent.scopes.pop();T&&T!==this&&(this.parent.scopes[this.index]=T,T.index=this.index)}this.parent=void 0}}}function gR(e){return new GR(e)}function mR(){return We}function xi(e,t=!1){We&&We.cleanups.push(e)}let _e;const ws=new WeakSet;class HR{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,We&&We.active&&We.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ws.has(this)&&(ws.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||BR(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Gr(this),yR(this);const t=_e,E=Et;_e=this,Et=!0;try{return this.fn()}finally{FR(this),_e=t,Et=E,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)JT(t);this.deps=this.depsTail=void 0,Gr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ws.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){CT(this)&&this.run()}get dirty(){return CT(this)}}let bR=0,uE,fE;function BR(e,t=!1){if(e.flags|=8,t){e.next=fE,fE=e;return}e.next=uE,uE=e}function KT(){bR++}function $T(){if(--bR>0)return;if(fE){let t=fE;for(fE=void 0;t;){const E=t.next;t.next=void 0,t.flags&=-9,t=E}}let e;for(;uE;){let t=uE;for(uE=void 0;t;){const E=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=E}}if(e)throw e}function yR(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function FR(e){let t,E=e.depsTail,s=E;for(;s;){const T=s.prevDep;s.version===-1?(s===E&&(E=T),JT(s),wi(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=T}e.deps=t,e.depsTail=E}function CT(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(vR(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function vR(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===gE))return;e.globalVersion=gE;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!CT(e)){e.flags&=-3;return}const E=_e,s=Et;_e=e,Et=!0;try{yR(e);const T=e.fn(e._value);(t.version===0||Dt(T,e._value))&&(e._value=T,t.version++)}catch(T){throw t.version++,T}finally{_e=E,Et=s,FR(e),e.flags&=-3}}function JT(e,t=!1){const{dep:E,prevSub:s,nextSub:T}=e;if(s&&(s.nextSub=T,e.prevSub=void 0),T&&(T.prevSub=s,e.nextSub=void 0),E.subs===e&&(E.subs=s,!s&&E.computed)){E.computed.flags&=-5;for(let r=E.computed.deps;r;r=r.nextDep)JT(r,!0)}!t&&!--E.sc&&E.map&&E.map.delete(E.key)}function wi(e){const{prevDep:t,nextDep:E}=e;t&&(t.nextDep=E,e.prevDep=void 0),E&&(E.prevDep=t,e.nextDep=void 0)}let Et=!0;const YR=[];function Mt(){YR.push(Et),Et=!1}function Ut(){const e=YR.pop();Et=e===void 0?!0:e}function Gr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const E=_e;_e=void 0;try{t()}finally{_e=E}}}let gE=0;class Wi{constructor(t,E){this.sub=t,this.dep=E,this.version=E.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class kT{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!_e||!Et||_e===this.computed)return;let E=this.activeLink;if(E===void 0||E.sub!==_e)E=this.activeLink=new Wi(_e,this),_e.deps?(E.prevDep=_e.depsTail,_e.depsTail.nextDep=E,_e.depsTail=E):_e.deps=_e.depsTail=E,VR(E);else if(E.version===-1&&(E.version=this.version,E.nextDep)){const s=E.nextDep;s.prevDep=E.prevDep,E.prevDep&&(E.prevDep.nextDep=s),E.prevDep=_e.depsTail,E.nextDep=void 0,_e.depsTail.nextDep=E,_e.depsTail=E,_e.deps===E&&(_e.deps=s)}return E}trigger(t){this.version++,gE++,this.notify(t)}notify(t){KT();try{for(let E=this.subs;E;E=E.prevSub)E.sub.notify()&&E.sub.dep.notify()}finally{$T()}}}function VR(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)VR(s)}const E=e.dep.subs;E!==e&&(e.prevSub=E,E&&(E.nextSub=e)),e.dep.subs=e}}const ss=new WeakMap,Vt=Symbol(""),cT=Symbol(""),mE=Symbol("");function be(e,t,E){if(Et&&_e){let s=ss.get(e);s||ss.set(e,s=new Map);let T=s.get(E);T||(s.set(E,T=new kT),T.map=s,T.key=E),T.track()}}function It(e,t,E,s,T,r){const n=ss.get(e);if(!n){gE++;return}const R=o=>{o&&o.trigger()};if(KT(),t==="clear")n.forEach(R);else{const o=te(e),i=o&&XT(E);if(o&&E==="length"){const A=Number(s);n.forEach((O,N)=>{(N==="length"||N===mE||!Nt(N)&&N>=A)&&R(O)})}else switch((E!==void 0||n.has(void 0))&&R(n.get(E)),i&&R(n.get(mE)),t){case"add":o?i&&R(n.get("length")):(R(n.get(Vt)),EE(e)&&R(n.get(cT)));break;case"delete":o||(R(n.get(Vt)),EE(e)&&R(n.get(cT)));break;case"set":EE(e)&&R(n.get(Vt));break}}$T()}function Xi(e,t){const E=ss.get(e);return E&&E.get(t)}function qt(e){const t=Se(e);return t===e?t:(be(t,"iterate",mE),Ze(e)?t:t.map(Be))}function Ds(e){return be(e=Se(e),"iterate",mE),e}const Ki={__proto__:null,[Symbol.iterator](){return Ws(this,Symbol.iterator,Be)},concat(...e){return qt(this).concat(...e.map(t=>te(t)?qt(t):t))},entries(){return Ws(this,"entries",e=>(e[1]=Be(e[1]),e))},every(e,t){return Ot(this,"every",e,t,void 0,arguments)},filter(e,t){return Ot(this,"filter",e,t,E=>E.map(Be),arguments)},find(e,t){return Ot(this,"find",e,t,Be,arguments)},findIndex(e,t){return Ot(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ot(this,"findLast",e,t,Be,arguments)},findLastIndex(e,t){return Ot(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ot(this,"forEach",e,t,void 0,arguments)},includes(...e){return Xs(this,"includes",e)},indexOf(...e){return Xs(this,"indexOf",e)},join(e){return qt(this).join(e)},lastIndexOf(...e){return Xs(this,"lastIndexOf",e)},map(e,t){return Ot(this,"map",e,t,void 0,arguments)},pop(){return NE(this,"pop")},push(...e){return NE(this,"push",e)},reduce(e,...t){return gr(this,"reduce",e,t)},reduceRight(e,...t){return gr(this,"reduceRight",e,t)},shift(){return NE(this,"shift")},some(e,t){return Ot(this,"some",e,t,void 0,arguments)},splice(...e){return NE(this,"splice",e)},toReversed(){return qt(this).toReversed()},toSorted(e){return qt(this).toSorted(e)},toSpliced(...e){return qt(this).toSpliced(...e)},unshift(...e){return NE(this,"unshift",e)},values(){return Ws(this,"values",Be)}};function Ws(e,t,E){const s=Ds(e),T=s[t]();return s!==e&&!Ze(e)&&(T._next=T.next,T.next=()=>{const r=T._next();return r.value&&(r.value=E(r.value)),r}),T}const $i=Array.prototype;function Ot(e,t,E,s,T,r){const n=Ds(e),R=n!==e&&!Ze(e),o=n[t];if(o!==$i[t]){const O=o.apply(e,r);return R?Be(O):O}let i=E;n!==e&&(R?i=function(O,N){return E.call(this,Be(O),N,e)}:E.length>2&&(i=function(O,N){return E.call(this,O,N,e)}));const A=o.call(n,i,s);return R&&T?T(A):A}function gr(e,t,E,s){const T=Ds(e);let r=E;return T!==e&&(Ze(e)?E.length>3&&(r=function(n,R,o){return E.call(this,n,R,o,e)}):r=function(n,R,o){return E.call(this,n,Be(R),o,e)}),T[t](r,...s)}function Xs(e,t,E){const s=Se(e);be(s,"iterate",mE);const T=s[t](...E);return(T===-1||T===!1)&&QT(E[0])?(E[0]=Se(E[0]),s[t](...E)):T}function NE(e,t,E=[]){Mt(),KT();const s=Se(e)[t].apply(e,E);return $T(),Ut(),s}const Ji=xT("__proto__,__v_isRef,__isVue"),xR=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Nt));function ki(e){Nt(e)||(e=String(e));const t=Se(this);return be(t,"has",e),t.hasOwnProperty(e)}class wR{constructor(t=!1,E=!1){this._isReadonly=t,this._isShallow=E}get(t,E,s){if(E==="__v_skip")return t.__v_skip;const T=this._isReadonly,r=this._isShallow;if(E==="__v_isReactive")return!T;if(E==="__v_isReadonly")return T;if(E==="__v_isShallow")return r;if(E==="__v_raw")return s===(T?r?TS:$R:r?KR:XR).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const n=te(t);if(!T){let o;if(n&&(o=Ki[E]))return o;if(E==="hasOwnProperty")return ki}const R=Reflect.get(t,E,fe(t)?t:s);return(Nt(E)?xR.has(E):Ji(E))||(T||be(t,"get",E),r)?R:fe(R)?n&&XT(E)?R:R.value:ue(R)?T?JR(R):rt(R):R}}class WR extends wR{constructor(t=!1){super(!1,t)}set(t,E,s,T){let r=t[E];if(!this._isShallow){const o=wt(r);if(!Ze(s)&&!wt(s)&&(r=Se(r),s=Se(s)),!te(t)&&fe(r)&&!fe(s))return o?!1:(r.value=s,!0)}const n=te(t)&&XT(E)?Number(E)<t.length:Ie(t,E),R=Reflect.set(t,E,s,fe(t)?t:T);return t===Se(T)&&(n?Dt(s,r)&&It(t,"set",E,s):It(t,"add",E,s)),R}deleteProperty(t,E){const s=Ie(t,E);t[E];const T=Reflect.deleteProperty(t,E);return T&&s&&It(t,"delete",E,void 0),T}has(t,E){const s=Reflect.has(t,E);return(!Nt(E)||!xR.has(E))&&be(t,"has",E),s}ownKeys(t){return be(t,"iterate",te(t)?"length":Vt),Reflect.ownKeys(t)}}class qi extends wR{constructor(t=!1){super(!0,t)}set(t,E){return!0}deleteProperty(t,E){return!0}}const ji=new WR,Qi=new qi,Zi=new WR(!0);const LT=e=>e,XE=e=>Reflect.getPrototypeOf(e);function zi(e,t,E){return function(...s){const T=this.__v_raw,r=Se(T),n=EE(r),R=e==="entries"||e===Symbol.iterator&&n,o=e==="keys"&&n,i=T[e](...s),A=E?LT:t?uT:Be;return!t&&be(r,"iterate",o?cT:Vt),{next(){const{value:O,done:N}=i.next();return N?{value:O,done:N}:{value:R?[A(O[0]),A(O[1])]:A(O),done:N}},[Symbol.iterator](){return this}}}}function KE(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function eS(e,t){const E={get(T){const r=this.__v_raw,n=Se(r),R=Se(T);e||(Dt(T,R)&&be(n,"get",T),be(n,"get",R));const{has:o}=XE(n),i=t?LT:e?uT:Be;if(o.call(n,T))return i(r.get(T));if(o.call(n,R))return i(r.get(R));r!==n&&r.get(T)},get size(){const T=this.__v_raw;return!e&&be(Se(T),"iterate",Vt),Reflect.get(T,"size",T)},has(T){const r=this.__v_raw,n=Se(r),R=Se(T);return e||(Dt(T,R)&&be(n,"has",T),be(n,"has",R)),T===R?r.has(T):r.has(T)||r.has(R)},forEach(T,r){const n=this,R=n.__v_raw,o=Se(R),i=t?LT:e?uT:Be;return!e&&be(o,"iterate",Vt),R.forEach((A,O)=>T.call(r,i(A),i(O),n))}};return ve(E,e?{add:KE("add"),set:KE("set"),delete:KE("delete"),clear:KE("clear")}:{add(T){!t&&!Ze(T)&&!wt(T)&&(T=Se(T));const r=Se(this);return XE(r).has.call(r,T)||(r.add(T),It(r,"add",T,T)),this},set(T,r){!t&&!Ze(r)&&!wt(r)&&(r=Se(r));const n=Se(this),{has:R,get:o}=XE(n);let i=R.call(n,T);i||(T=Se(T),i=R.call(n,T));const A=o.call(n,T);return n.set(T,r),i?Dt(r,A)&&It(n,"set",T,r):It(n,"add",T,r),this},delete(T){const r=Se(this),{has:n,get:R}=XE(r);let o=n.call(r,T);o||(T=Se(T),o=n.call(r,T)),R&&R.call(r,T);const i=r.delete(T);return o&&It(r,"delete",T,void 0),i},clear(){const T=Se(this),r=T.size!==0,n=T.clear();return r&&It(T,"clear",void 0,void 0),n}}),["keys","values","entries",Symbol.iterator].forEach(T=>{E[T]=zi(T,e,t)}),E}function qT(e,t){const E=eS(e,t);return(s,T,r)=>T==="__v_isReactive"?!e:T==="__v_isReadonly"?e:T==="__v_raw"?s:Reflect.get(Ie(E,T)&&T in s?E:s,T,r)}const tS={get:qT(!1,!1)},ES={get:qT(!1,!0)},sS={get:qT(!0,!1)};const XR=new WeakMap,KR=new WeakMap,$R=new WeakMap,TS=new WeakMap;function rS(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function nS(e){return e.__v_skip||!Object.isExtensible(e)?0:rS(gi(e))}function rt(e){return wt(e)?e:jT(e,!1,ji,tS,XR)}function RS(e){return jT(e,!1,Zi,ES,KR)}function JR(e){return jT(e,!0,Qi,sS,$R)}function jT(e,t,E,s,T){if(!ue(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=T.get(e);if(r)return r;const n=nS(e);if(n===0)return e;const R=new Proxy(e,n===2?s:E);return T.set(e,R),R}function Pt(e){return wt(e)?Pt(e.__v_raw):!!(e&&e.__v_isReactive)}function wt(e){return!!(e&&e.__v_isReadonly)}function Ze(e){return!!(e&&e.__v_isShallow)}function QT(e){return e?!!e.__v_raw:!1}function Se(e){const t=e&&e.__v_raw;return t?Se(t):e}function ZT(e){return!Ie(e,"__v_skip")&&Object.isExtensible(e)&&dR(e,"__v_skip",!0),e}const Be=e=>ue(e)?rt(e):e,uT=e=>ue(e)?JR(e):e;function fe(e){return e?e.__v_isRef===!0:!1}function Qe(e){return oS(e,!1)}function oS(e,t){return fe(e)?e:new AS(e,t)}class AS{constructor(t,E){this.dep=new kT,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=E?t:Se(t),this._value=E?t:Be(t),this.__v_isShallow=E}get value(){return this.dep.track(),this._value}set value(t){const E=this._rawValue,s=this.__v_isShallow||Ze(t)||wt(t);t=s?t:Se(t),Dt(t,E)&&(this._rawValue=t,this._value=s?t:Be(t),this.dep.trigger())}}function Re(e){return fe(e)?e.value:e}const iS={get:(e,t,E)=>t==="__v_raw"?e:Re(Reflect.get(e,t,E)),set:(e,t,E,s)=>{const T=e[t];return fe(T)&&!fe(E)?(T.value=E,!0):Reflect.set(e,t,E,s)}};function kR(e){return Pt(e)?e:new Proxy(e,iS)}function SS(e){const t=te(e)?new Array(e.length):{};for(const E in e)t[E]=aS(e,E);return t}class OS{constructor(t,E,s){this._object=t,this._key=E,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Xi(Se(this._object),this._key)}}function aS(e,t,E){const s=e[t];return fe(s)?s:new OS(e,t,E)}class IS{constructor(t,E,s){this.fn=t,this.setter=E,this._value=void 0,this.dep=new kT(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=gE-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!E,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&_e!==this)return BR(this,!0),!0}get value(){const t=this.dep.track();return vR(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function NS(e,t,E=!1){let s,T;return re(e)?s=e:(s=e.get,T=e.set),new IS(s,T,E)}const $E={},Ts=new WeakMap;let vt;function lS(e,t=!1,E=vt){if(E){let s=Ts.get(E);s||Ts.set(E,s=[]),s.push(e)}}function _S(e,t,E=Ce){const{immediate:s,deep:T,once:r,scheduler:n,augmentJob:R,call:o}=E,i=x=>T?x:Ze(x)||T===!1||T===0?ft(x,1):ft(x);let A,O,N,l,C=!1,H=!1;if(fe(e)?(O=()=>e.value,C=Ze(e)):Pt(e)?(O=()=>i(e),C=!0):te(e)?(H=!0,C=e.some(x=>Pt(x)||Ze(x)),O=()=>e.map(x=>{if(fe(x))return x.value;if(Pt(x))return i(x);if(re(x))return o?o(x,2):x()})):re(e)?t?O=o?()=>o(e,2):e:O=()=>{if(N){Mt();try{N()}finally{Ut()}}const x=vt;vt=A;try{return o?o(e,3,[l]):e(l)}finally{vt=x}}:O=it,t&&T){const x=O,k=T===!0?1/0:T;O=()=>ft(x(),k)}const Q=mR(),W=()=>{A.stop(),Q&&Q.active&&WT(Q.effects,A)};if(r&&t){const x=t;t=(...k)=>{x(...k),W()}}let j=H?new Array(e.length).fill($E):$E;const ee=x=>{if(!(!(A.flags&1)||!A.dirty&&!x))if(t){const k=A.run();if(T||C||(H?k.some((ae,ie)=>Dt(ae,j[ie])):Dt(k,j))){N&&N();const ae=vt;vt=A;try{const ie=[k,j===$E?void 0:H&&j[0]===$E?[]:j,l];o?o(t,3,ie):t(...ie),j=k}finally{vt=ae}}}else A.run()};return R&&R(ee),A=new HR(O),A.scheduler=n?()=>n(ee,!1):ee,l=x=>lS(x,!1,A),N=A.onStop=()=>{const x=Ts.get(A);if(x){if(o)o(x,4);else for(const k of x)k();Ts.delete(A)}},t?s?ee(!0):j=A.run():n?n(ee.bind(null,!0),!0):A.run(),W.pause=A.pause.bind(A),W.resume=A.resume.bind(A),W.stop=W,W}function ft(e,t=1/0,E){if(t<=0||!ue(e)||e.__v_skip||(E=E||new Set,E.has(e)))return e;if(E.add(e),t--,fe(e))ft(e.value,t,E);else if(te(e))for(let s=0;s<e.length;s++)ft(e[s],t,E);else if(fR(e)||EE(e))e.forEach(s=>{ft(s,t,E)});else if(PR(e)){for(const s in e)ft(e[s],t,E);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&ft(e[s],t,E)}return e}/**
|
12
12
|
* @vue/runtime-core v3.5.13
|
13
13
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
14
14
|
* @license MIT
|
15
|
-
**/function YE(e,t,E,s){try{return s?e(...s):e()}catch(T){Ps(T,t,E)}}function St(e,t,E,s){if(re(e)){const T=YE(e,t,E,s);return T&&fR(T)&&T.catch(r=>{Ps(r,t,E)}),T}if(te(e)){const T=[];for(let r=0;r<e.length;r++)T.push(St(e[r],t,E,s));return T}}function Ps(e,t,E,s=!0){const T=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:n}=t&&t.appContext.config||Ce;if(t){let R=t.parent;const o=t.proxy,i=`https://vuejs.org/error-reference/#runtime-${E}`;for(;R;){const A=R.ec;if(A){for(let O=0;O<A.length;O++)if(A[O](e,o,i)===!1)return}R=R.parent}if(r){Mt(),YE(r,null,10,[e,o,i]),Ut();return}}CS(e,E,T,s,n)}function CS(e,t,E,s=!0,T=!1){if(T)throw e;console.error(e)}const Xe=[];let ot=-1;const sE=[];let ct=null,zt=0;const qR=Promise.resolve();let rs=null;function zT(e){const t=rs||qR;return e?t.then(this?e.bind(this):e):t}function LS(e){let t=ot+1,E=Xe.length;for(;t<E;){const s=t+E>>>1,T=Xe[s],r=HE(T);r<e||r===e&&T.flags&2?t=s+1:E=s}return t}function er(e){if(!(e.flags&1)){const t=HE(e),E=Xe[Xe.length-1];!E||!(e.flags&2)&&t>=HE(E)?Xe.push(e):Xe.splice(LS(t),0,e),e.flags|=1,jR()}}function jR(){rs||(rs=qR.then(ZR))}function cS(e){te(e)?sE.push(...e):ct&&e.id===-1?ct.splice(zt+1,0,e):e.flags&1||(sE.push(e),e.flags|=1),jR()}function mr(e,t,E=ot+1){for(;E<Xe.length;E++){const s=Xe[E];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Xe.splice(E,1),E--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function QR(e){if(sE.length){const t=[...new Set(sE)].sort((E,s)=>HE(E)-HE(s));if(sE.length=0,ct){ct.push(...t);return}for(ct=t,zt=0;zt<ct.length;zt++){const E=ct[zt];E.flags&4&&(E.flags&=-2),E.flags&8||E(),E.flags&=-2}ct=null,zt=0}}const HE=e=>e.id==null?e.flags&2?-1:1/0:e.id;function ZR(e){try{for(ot=0;ot<Xe.length;ot++){const t=Xe[ot];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),YE(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;ot<Xe.length;ot++){const t=Xe[ot];t&&(t.flags&=-2)}ot=-1,Xe.length=0,QR(),rs=null,(Xe.length||sE.length)&&ZR()}}let ve=null,zR=null;function ns(e){const t=ve;return ve=e,zR=e&&e.type.__scopeId||null,t}function Te(e,t=ve,E){if(!t||e._n)return e;const s=(...T)=>{s._d&&Kr(-1);const r=ns(t);let n;try{n=e(...T)}finally{ns(r),s._d&&Kr(1)}return n};return s._n=!0,s._c=!0,s._d=!0,s}function bt(e,t,E,s){const T=e.dirs,r=t&&t.dirs;for(let n=0;n<T.length;n++){const R=T[n];r&&(R.oldValue=r[n].value);let o=R.dir[s];o&&(Mt(),St(o,E,8,[e.el,R,e,t]),Ut())}}const eo=Symbol("_vte"),uS=e=>e.__isTeleport,fE=e=>e&&(e.disabled||e.disabled===""),Hr=e=>e&&(e.defer||e.defer===""),Br=e=>typeof SVGElement<"u"&&e instanceof SVGElement,br=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,pT=(e,t)=>{const E=e&&e.to;return fe(E)?t?t(E):null:E},to={name:"Teleport",__isTeleport:!0,process(e,t,E,s,T,r,n,R,o,i){const{mc:A,pc:O,pbc:N,o:{insert:l,querySelector:C,createText:H,createComment:Q}}=i,W=fE(t.props);let{shapeFlag:j,children:ee,dynamicChildren:x}=t;if(e==null){const k=t.el=H(""),Ie=t.anchor=H("");l(k,E,s),l(Ie,E,s);const ie=(X,_)=>{j&16&&(T&&T.isCE&&(T.ce._teleportTarget=X),A(ee,X,_,T,r,n,R,o))},$=()=>{const X=t.target=pT(t.props,C),_=Eo(X,t,H,l);X&&(n!=="svg"&&Br(X)?n="svg":n!=="mathml"&&br(X)&&(n="mathml"),W||(ie(X,_),kE(t,!1)))};W&&(ie(E,Ie),kE(t,!0)),Hr(t.props)?we(()=>{$(),t.el.__isMounted=!0},r):$()}else{if(Hr(t.props)&&!e.el.__isMounted){we(()=>{to.process(e,t,E,s,T,r,n,R,o,i),delete e.el.__isMounted},r);return}t.el=e.el,t.targetStart=e.targetStart;const k=t.anchor=e.anchor,Ie=t.target=e.target,ie=t.targetAnchor=e.targetAnchor,$=fE(e.props),X=$?E:Ie,_=$?k:ie;if(n==="svg"||Br(Ie)?n="svg":(n==="mathml"||br(Ie))&&(n="mathml"),x?(N(e.dynamicChildren,x,X,T,r,n,R),rr(e,t,!0)):o||O(e,t,X,_,T,r,n,R,!1),W)$?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):JE(t,E,k,i,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const d=t.target=pT(t.props,C);d&&JE(t,d,null,i,0)}else $&&JE(t,Ie,ie,i,1);kE(t,W)}},remove(e,t,E,{um:s,o:{remove:T}},r){const{shapeFlag:n,children:R,anchor:o,targetStart:i,targetAnchor:A,target:O,props:N}=e;if(O&&(T(i),T(A)),r&&T(o),n&16){const l=r||!fE(N);for(let C=0;C<R.length;C++){const H=R[C];s(H,t,E,l,!!H.dynamicChildren)}}},move:JE,hydrate:pS};function JE(e,t,E,{o:{insert:s},m:T},r=2){r===0&&s(e.targetAnchor,t,E);const{el:n,anchor:R,shapeFlag:o,children:i,props:A}=e,O=r===2;if(O&&s(n,t,E),(!O||fE(A))&&o&16)for(let N=0;N<i.length;N++)T(i[N],t,E,2);O&&s(R,t,E)}function pS(e,t,E,s,T,r,{o:{nextSibling:n,parentNode:R,querySelector:o,insert:i,createText:A}},O){const N=t.target=pT(t.props,o);if(N){const l=fE(t.props),C=N._lpa||N.firstChild;if(t.shapeFlag&16)if(l)t.anchor=O(n(e),t,R(e),E,s,T,r),t.targetStart=C,t.targetAnchor=C&&n(C);else{t.anchor=n(e);let H=C;for(;H;){if(H&&H.nodeType===8){if(H.data==="teleport start anchor")t.targetStart=H;else if(H.data==="teleport anchor"){t.targetAnchor=H,N._lpa=t.targetAnchor&&n(t.targetAnchor);break}}H=n(H)}t.targetAnchor||Eo(N,t,A,i),O(C&&n(C),t,N,E,s,T,r)}kE(t,l)}return t.anchor&&n(t.anchor)}const fS=to;function kE(e,t){const E=e.ctx;if(E&&E.ut){let s,T;for(t?(s=e.el,T=e.anchor):(s=e.targetStart,T=e.targetAnchor);s&&s!==T;)s.nodeType===1&&s.setAttribute("data-v-owner",E.uid),s=s.nextSibling;E.ut()}}function Eo(e,t,E,s){const T=t.targetStart=E(""),r=t.targetAnchor=E("");return T[eo]=r,e&&(s(T,e),s(r,e)),r}function tr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,tr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function Ne(e,t){return re(e)?Fe({name:e.name},t,{setup:e}):e}function so(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Rs(e,t,E,s,T=!1){if(te(e)){e.forEach((C,H)=>Rs(C,t&&(te(t)?t[H]:t),E,s,T));return}if(TE(s)&&!T){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Rs(e,t,E,s.component.subTree);return}const r=s.shapeFlag&4?Rr(s.component):s.el,n=T?null:r,{i:R,r:o}=e,i=t&&t.r,A=R.refs===Ce?R.refs={}:R.refs,O=R.setupState,N=Se(O),l=O===Ce?()=>!1:C=>ae(N,C);if(i!=null&&i!==o&&(fe(i)?(A[i]=null,l(i)&&(O[i]=null)):pe(i)&&(i.value=null)),re(o))YE(o,R,12,[n,A]);else{const C=fe(o),H=pe(o);if(C||H){const Q=()=>{if(e.f){const W=C?l(o)?O[o]:A[o]:o.value;T?te(W)&&WT(W,r):te(W)?W.includes(r)||W.push(r):C?(A[o]=[r],l(o)&&(O[o]=A[o])):(o.value=[r],e.k&&(A[e.k]=o.value))}else C?(A[o]=n,l(o)&&(O[o]=n)):H&&(o.value=n,e.k&&(A[e.k]=n))};n?(Q.id=-1,we(Q,E)):Q()}}}ps().requestIdleCallback;ps().cancelIdleCallback;const TE=e=>!!e.type.__asyncLoader,To=e=>e.type.__isKeepAlive;function DS(e,t){ro(e,"a",t)}function PS(e,t){ro(e,"da",t)}function ro(e,t,E=He){const s=e.__wdc||(e.__wdc=()=>{let T=E;for(;T;){if(T.isDeactivated)return;T=T.parent}return e()});if(ds(t,s,E),E){let T=E.parent;for(;T&&T.parent;)To(T.parent.vnode)&&dS(s,t,E,T),T=T.parent}}function dS(e,t,E,s){const T=ds(t,e,s,!0);Er(()=>{WT(s[t],T)},E)}function ds(e,t,E=He,s=!1){if(E){const T=E[e]||(E[e]=[]),r=t.__weh||(t.__weh=(...n)=>{Mt();const R=VE(E),o=St(t,E,e,n);return R(),Ut(),o});return s?T.unshift(r):T.push(r),r}}const lt=e=>(t,E=He)=>{(!yE||e==="sp")&&ds(e,(...s)=>t(...s),E)},no=lt("bm"),Ms=lt("m"),MS=lt("bu"),US=lt("u"),hS=lt("bum"),Er=lt("um"),GS=lt("sp"),gS=lt("rtg"),mS=lt("rtc");function HS(e,t=He){ds("ec",e,t)}const BS="components";function sr(e,t){return yS(BS,e,!0,t)||e}const bS=Symbol.for("v-ndc");function yS(e,t,E=!0,s=!1){const T=ve||He;if(T){const r=T.type;{const R=PO(r,!1);if(R&&(R===t||R===ze(t)||R===us(ze(t))))return r}const n=yr(T[e]||r[e],t)||yr(T.appContext[e],t);return!n&&s?r:n}}function yr(e,t){return e&&(e[t]||e[ze(t)]||e[us(ze(t))])}function Je(e,t,E,s){let T;const r=E,n=te(e);if(n||fe(e)){const R=n&&Pt(e);let o=!1;R&&(o=!Ze(e),e=Ds(e)),T=new Array(e.length);for(let i=0,A=e.length;i<A;i++)T[i]=t(o?be(e[i]):e[i],i,void 0,r)}else if(typeof e=="number"){T=new Array(e);for(let R=0;R<e;R++)T[R]=t(R+1,R,void 0,r)}else if(ue(e))if(e[Symbol.iterator])T=Array.from(e,(R,o)=>t(R,o,void 0,r));else{const R=Object.keys(e);T=new Array(R.length);for(let o=0,i=R.length;o<i;o++){const A=R[o];T[o]=t(e[A],A,o,r)}}else T=[];return T}function st(e,t,E={},s,T){if(ve.ce||ve.parent&&TE(ve.parent)&&ve.parent.ce)return t!=="default"&&(E.name=t),P(),Ae(le,null,[F("slot",E,s)],64);let r=e[t];r&&r._c&&(r._d=!1),P();const n=r&&Ro(r(E)),R=E.key||n&&n.key,o=Ae(le,{key:(R&&!Nt(R)?R:`_${t}`)+""},n||[],n&&e._===1?64:-2);return o.scopeId&&(o.slotScopeIds=[o.scopeId+"-s"]),r&&r._c&&(r._d=!0),o}function Ro(e){return e.some(t=>bE(t)?!(t.type===dt||t.type===le&&!Ro(t.children)):!0)?e:null}const fT=e=>e?Uo(e)?Rr(e):fT(e.parent):null,DE=Fe(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=>fT(e.parent),$root:e=>fT(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ao(e),$forceUpdate:e=>e.f||(e.f=()=>{er(e.update)}),$nextTick:e=>e.n||(e.n=zT.bind(e.proxy)),$watch:e=>rO.bind(e)}),Ks=(e,t)=>e!==Ce&&!e.__isScriptSetup&&ae(e,t),vS={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:E,setupState:s,data:T,props:r,accessCache:n,type:R,appContext:o}=e;let i;if(t[0]!=="$"){const l=n[t];if(l!==void 0)switch(l){case 1:return s[t];case 2:return T[t];case 4:return E[t];case 3:return r[t]}else{if(Ks(s,t))return n[t]=1,s[t];if(T!==Ce&&ae(T,t))return n[t]=2,T[t];if((i=e.propsOptions[0])&&ae(i,t))return n[t]=3,r[t];if(E!==Ce&&ae(E,t))return n[t]=4,E[t];DT&&(n[t]=0)}}const A=DE[t];let O,N;if(A)return t==="$attrs"&&Be(e.attrs,"get",""),A(e);if((O=R.__cssModules)&&(O=O[t]))return O;if(E!==Ce&&ae(E,t))return n[t]=4,E[t];if(N=o.config.globalProperties,ae(N,t))return N[t]},set({_:e},t,E){const{data:s,setupState:T,ctx:r}=e;return Ks(T,t)?(T[t]=E,!0):s!==Ce&&ae(s,t)?(s[t]=E,!0):ae(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=E,!0)},has({_:{data:e,setupState:t,accessCache:E,ctx:s,appContext:T,propsOptions:r}},n){let R;return!!E[n]||e!==Ce&&ae(e,n)||Ks(t,n)||(R=r[0])&&ae(R,n)||ae(s,n)||ae(DE,n)||ae(T.config.globalProperties,n)},defineProperty(e,t,E){return E.get!=null?e._.accessCache[t]=0:ae(E,"value")&&this.set(e,t,E.value,null),Reflect.defineProperty(e,t,E)}};function vr(e){return te(e)?e.reduce((t,E)=>(t[E]=null,t),{}):e}let DT=!0;function FS(e){const t=Ao(e),E=e.proxy,s=e.ctx;DT=!1,t.beforeCreate&&Fr(t.beforeCreate,e,"bc");const{data:T,computed:r,methods:n,watch:R,provide:o,inject:i,created:A,beforeMount:O,mounted:N,beforeUpdate:l,updated:C,activated:H,deactivated:Q,beforeDestroy:W,beforeUnmount:j,destroyed:ee,unmounted:x,render:k,renderTracked:Ie,renderTriggered:ie,errorCaptured:$,serverPrefetch:X,expose:_,inheritAttrs:d,components:f,directives:Y,filters:J}=t;if(i&&YS(i,s,null),n)for(const G in n){const w=n[G];re(w)&&(s[G]=w.bind(E))}if(T){const G=T.call(E,E);ue(G)&&(e.data=rt(G))}if(DT=!0,r)for(const G in r){const w=r[G],oe=re(w)?w.bind(E,E):re(w.get)?w.get.bind(E,E):it,ce=!re(w)&&re(w.set)?w.set.bind(E):it,Pe=tt({get:oe,set:ce});Object.defineProperty(s,G,{enumerable:!0,configurable:!0,get:()=>Pe.value,set:de=>Pe.value=de})}if(R)for(const G in R)oo(R[G],s,E,G);if(o){const G=re(o)?o.call(E):o;Reflect.ownKeys(G).forEach(w=>{KS(w,G[w])})}A&&Fr(A,e,"c");function c(G,w){te(w)?w.forEach(oe=>G(oe.bind(E))):w&&G(w.bind(E))}if(c(no,O),c(Ms,N),c(MS,l),c(US,C),c(DS,H),c(PS,Q),c(HS,$),c(mS,Ie),c(gS,ie),c(hS,j),c(Er,x),c(GS,X),te(_))if(_.length){const G=e.exposed||(e.exposed={});_.forEach(w=>{Object.defineProperty(G,w,{get:()=>E[w],set:oe=>E[w]=oe})})}else e.exposed||(e.exposed={});k&&e.render===it&&(e.render=k),d!=null&&(e.inheritAttrs=d),f&&(e.components=f),Y&&(e.directives=Y),X&&so(e)}function YS(e,t,E=it){te(e)&&(e=PT(e));for(const s in e){const T=e[s];let r;ue(T)?"default"in T?r=PE(T.from||s,T.default,!0):r=PE(T.from||s):r=PE(T),pe(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:n=>r.value=n}):t[s]=r}}function Fr(e,t,E){St(te(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,E)}function oo(e,t,E,s){let T=s.includes(".")?po(E,s):()=>E[s];if(fe(e)){const r=t[e];re(r)&&rE(T,r)}else if(re(e))rE(T,e.bind(E));else if(ue(e))if(te(e))e.forEach(r=>oo(r,t,E,s));else{const r=re(e.handler)?e.handler.bind(E):t[e.handler];re(r)&&rE(T,r,e)}}function Ao(e){const t=e.type,{mixins:E,extends:s}=t,{mixins:T,optionsCache:r,config:{optionMergeStrategies:n}}=e.appContext,R=r.get(t);let o;return R?o=R:!T.length&&!E&&!s?o=t:(o={},T.length&&T.forEach(i=>os(o,i,n,!0)),os(o,t,n)),ue(t)&&r.set(t,o),o}function os(e,t,E,s=!1){const{mixins:T,extends:r}=t;r&&os(e,r,E,!0),T&&T.forEach(n=>os(e,n,E,!0));for(const n in t)if(!(s&&n==="expose")){const R=VS[n]||E&&E[n];e[n]=R?R(e[n],t[n]):t[n]}return e}const VS={data:Yr,props:Vr,emits:Vr,methods:CE,computed:CE,beforeCreate:xe,created:xe,beforeMount:xe,mounted:xe,beforeUpdate:xe,updated:xe,beforeDestroy:xe,beforeUnmount:xe,destroyed:xe,unmounted:xe,activated:xe,deactivated:xe,errorCaptured:xe,serverPrefetch:xe,components:CE,directives:CE,watch:wS,provide:Yr,inject:xS};function Yr(e,t){return t?e?function(){return Fe(re(e)?e.call(this,this):e,re(t)?t.call(this,this):t)}:t:e}function xS(e,t){return CE(PT(e),PT(t))}function PT(e){if(te(e)){const t={};for(let E=0;E<e.length;E++)t[e[E]]=e[E];return t}return e}function xe(e,t){return e?[...new Set([].concat(e,t))]:t}function CE(e,t){return e?Fe(Object.create(null),e,t):t}function Vr(e,t){return e?te(e)&&te(t)?[...new Set([...e,...t])]:Fe(Object.create(null),vr(e),vr(t??{})):t}function wS(e,t){if(!e)return t;if(!t)return e;const E=Fe(Object.create(null),e);for(const s in t)E[s]=xe(e[s],t[s]);return E}function io(){return{app:null,config:{isNativeTag:hi,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 WS=0;function XS(e,t){return function(s,T=null){re(s)||(s=Fe({},s)),T!=null&&!ue(T)&&(T=null);const r=io(),n=new WeakSet,R=[];let o=!1;const i=r.app={_uid:WS++,_component:s,_props:T,_container:null,_context:r,_instance:null,version:MO,get config(){return r.config},set config(A){},use(A,...O){return n.has(A)||(A&&re(A.install)?(n.add(A),A.install(i,...O)):re(A)&&(n.add(A),A(i,...O))),i},mixin(A){return r.mixins.includes(A)||r.mixins.push(A),i},component(A,O){return O?(r.components[A]=O,i):r.components[A]},directive(A,O){return O?(r.directives[A]=O,i):r.directives[A]},mount(A,O,N){if(!o){const l=i._ceVNode||F(s,T);return l.appContext=r,N===!0?N="svg":N===!1&&(N=void 0),e(l,A,N),o=!0,i._container=A,A.__vue_app__=i,Rr(l.component)}},onUnmount(A){R.push(A)},unmount(){o&&(St(R,i._instance,16),e(null,i._container),delete i._container.__vue_app__)},provide(A,O){return r.provides[A]=O,i},runWithContext(A){const O=xt;xt=i;try{return A()}finally{xt=O}}};return i}}let xt=null;function KS(e,t){if(He){let E=He.provides;const s=He.parent&&He.parent.provides;s===E&&(E=He.provides=Object.create(s)),E[e]=t}}function PE(e,t,E=!1){const s=He||ve;if(s||xt){const T=xt?xt._context.provides:s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(T&&e in T)return T[e];if(arguments.length>1)return E&&re(t)?t.call(s&&s.proxy):t}}function $S(){return!!(He||ve||xt)}const So={},Oo=()=>Object.create(So),Io=e=>Object.getPrototypeOf(e)===So;function JS(e,t,E,s=!1){const T={},r=Oo();e.propsDefaults=Object.create(null),ao(e,t,T,r);for(const n in e.propsOptions[0])n in T||(T[n]=void 0);E?e.props=s?T:RS(T):e.type.props?e.props=T:e.props=r,e.attrs=r}function kS(e,t,E,s){const{props:T,attrs:r,vnode:{patchFlag:n}}=e,R=Se(T),[o]=e.propsOptions;let i=!1;if((s||n>0)&&!(n&16)){if(n&8){const A=e.vnode.dynamicProps;for(let O=0;O<A.length;O++){let N=A[O];if(Us(e.emitsOptions,N))continue;const l=t[N];if(o)if(ae(r,N))l!==r[N]&&(r[N]=l,i=!0);else{const C=ze(N);T[C]=dT(o,R,C,l,e,!1)}else l!==r[N]&&(r[N]=l,i=!0)}}}else{ao(e,t,T,r)&&(i=!0);let A;for(const O in R)(!t||!ae(t,O)&&((A=Kt(O))===O||!ae(t,A)))&&(o?E&&(E[O]!==void 0||E[A]!==void 0)&&(T[O]=dT(o,R,O,void 0,e,!0)):delete T[O]);if(r!==R)for(const O in r)(!t||!ae(t,O))&&(delete r[O],i=!0)}i&&at(e.attrs,"set","")}function ao(e,t,E,s){const[T,r]=e.propsOptions;let n=!1,R;if(t)for(let o in t){if(cE(o))continue;const i=t[o];let A;T&&ae(T,A=ze(o))?!r||!r.includes(A)?E[A]=i:(R||(R={}))[A]=i:Us(e.emitsOptions,o)||(!(o in s)||i!==s[o])&&(s[o]=i,n=!0)}if(r){const o=Se(E),i=R||Ce;for(let A=0;A<r.length;A++){const O=r[A];E[O]=dT(T,o,O,i[O],e,!ae(i,O))}}return n}function dT(e,t,E,s,T,r){const n=e[E];if(n!=null){const R=ae(n,"default");if(R&&s===void 0){const o=n.default;if(n.type!==Function&&!n.skipFactory&&re(o)){const{propsDefaults:i}=T;if(E in i)s=i[E];else{const A=VE(T);s=i[E]=o.call(null,t),A()}}else s=o;T.ce&&T.ce._setProp(E,s)}n[0]&&(r&&!R?s=!1:n[1]&&(s===""||s===Kt(E))&&(s=!0))}return s}const qS=new WeakMap;function No(e,t,E=!1){const s=E?qS:t.propsCache,T=s.get(e);if(T)return T;const r=e.props,n={},R=[];let o=!1;if(!re(e)){const A=O=>{o=!0;const[N,l]=No(O,t,!0);Fe(n,N),l&&R.push(...l)};!E&&t.mixins.length&&t.mixins.forEach(A),e.extends&&A(e.extends),e.mixins&&e.mixins.forEach(A)}if(!r&&!o)return ue(e)&&s.set(e,tE),tE;if(te(r))for(let A=0;A<r.length;A++){const O=ze(r[A]);xr(O)&&(n[O]=Ce)}else if(r)for(const A in r){const O=ze(A);if(xr(O)){const N=r[A],l=n[O]=te(N)||re(N)?{type:N}:Fe({},N),C=l.type;let H=!1,Q=!0;if(te(C))for(let W=0;W<C.length;++W){const j=C[W],ee=re(j)&&j.name;if(ee==="Boolean"){H=!0;break}else ee==="String"&&(Q=!1)}else H=re(C)&&C.name==="Boolean";l[0]=H,l[1]=Q,(H||ae(l,"default"))&&R.push(O)}}const i=[n,R];return ue(e)&&s.set(e,i),i}function xr(e){return e[0]!=="$"&&!cE(e)}const lo=e=>e[0]==="_"||e==="$stable",Tr=e=>te(e)?e.map(At):[At(e)],jS=(e,t,E)=>{if(t._n)return t;const s=Te((...T)=>Tr(t(...T)),E);return s._c=!1,s},_o=(e,t,E)=>{const s=e._ctx;for(const T in e){if(lo(T))continue;const r=e[T];if(re(r))t[T]=jS(T,r,s);else if(r!=null){const n=Tr(r);t[T]=()=>n}}},Co=(e,t)=>{const E=Tr(t);e.slots.default=()=>E},Lo=(e,t,E)=>{for(const s in t)(E||s!=="_")&&(e[s]=t[s])},QS=(e,t,E)=>{const s=e.slots=Oo();if(e.vnode.shapeFlag&32){const T=t._;T?(Lo(s,t,E),E&&dR(s,"_",T,!0)):_o(t,s)}else t&&Co(e,t)},ZS=(e,t,E)=>{const{vnode:s,slots:T}=e;let r=!0,n=Ce;if(s.shapeFlag&32){const R=t._;R?E&&R===1?r=!1:Lo(T,t,E):(r=!t.$stable,_o(t,T)),n=t}else t&&(Co(e,t),n={default:1});if(r)for(const R in T)!lo(R)&&n[R]==null&&delete T[R]},we=OO;function zS(e){return eO(e)}function eO(e,t){const E=ps();E.__VUE__=!0;const{insert:s,remove:T,patchProp:r,createElement:n,createText:R,createComment:o,setText:i,setElementText:A,parentNode:O,nextSibling:N,setScopeId:l=it,insertStaticContent:C}=e,H=(I,a,L,U=null,h=null,g=null,D=void 0,b=null,m=!!a.dynamicChildren)=>{if(I===a)return;I&&!lE(I,a)&&(U=mt(I),de(I,h,g,!0),I=null),a.patchFlag===-2&&(m=!1,a.dynamicChildren=null);const{type:p,ref:q,shapeFlag:v}=a;switch(p){case hs:Q(I,a,L,U);break;case dt:W(I,a,L,U);break;case qE:I==null&&j(a,L,U,D);break;case le:f(I,a,L,U,h,g,D,b,m);break;default:v&1?k(I,a,L,U,h,g,D,b,m):v&6?Y(I,a,L,U,h,g,D,b,m):(v&64||v&128)&&p.process(I,a,L,U,h,g,D,b,m,Ht)}q!=null&&h&&Rs(q,I&&I.ref,g,a||I,!a)},Q=(I,a,L,U)=>{if(I==null)s(a.el=R(a.children),L,U);else{const h=a.el=I.el;a.children!==I.children&&i(h,a.children)}},W=(I,a,L,U)=>{I==null?s(a.el=o(a.children||""),L,U):a.el=I.el},j=(I,a,L,U)=>{[I.el,I.anchor]=C(I.children,a,L,U,I.el,I.anchor)},ee=({el:I,anchor:a},L,U)=>{let h;for(;I&&I!==a;)h=N(I),s(I,L,U),I=h;s(a,L,U)},x=({el:I,anchor:a})=>{let L;for(;I&&I!==a;)L=N(I),T(I),I=L;T(a)},k=(I,a,L,U,h,g,D,b,m)=>{a.type==="svg"?D="svg":a.type==="math"&&(D="mathml"),I==null?Ie(a,L,U,h,g,D,b,m):X(I,a,h,g,D,b,m)},Ie=(I,a,L,U,h,g,D,b)=>{let m,p;const{props:q,shapeFlag:v,transition:K,dirs:Z}=I;if(m=I.el=n(I.type,g,q&&q.is,q),v&8?A(m,I.children):v&16&&$(I.children,m,null,U,h,$s(I,g),D,b),Z&&bt(I,null,U,"created"),ie(m,I,I.scopeId,D,U),q){for(const B in q)B!=="value"&&!cE(B)&&r(m,B,null,q[B],g,U);"value"in q&&r(m,"value",null,q.value,g),(p=q.onVnodeBeforeMount)&&Rt(p,U,I)}Z&&bt(I,null,U,"beforeMount");const M=tO(h,K);M&&K.beforeEnter(m),s(m,a,L),((p=q&&q.onVnodeMounted)||M||Z)&&we(()=>{p&&Rt(p,U,I),M&&K.enter(m),Z&&bt(I,null,U,"mounted")},h)},ie=(I,a,L,U,h)=>{if(L&&l(I,L),U)for(let g=0;g<U.length;g++)l(I,U[g]);if(h){let g=h.subTree;if(a===g||Do(g.type)&&(g.ssContent===a||g.ssFallback===a)){const D=h.vnode;ie(I,D,D.scopeId,D.slotScopeIds,h.parent)}}},$=(I,a,L,U,h,g,D,b,m=0)=>{for(let p=m;p<I.length;p++){const q=I[p]=b?ut(I[p]):At(I[p]);H(null,q,a,L,U,h,g,D,b)}},X=(I,a,L,U,h,g,D)=>{const b=a.el=I.el;let{patchFlag:m,dynamicChildren:p,dirs:q}=a;m|=I.patchFlag&16;const v=I.props||Ce,K=a.props||Ce;let Z;if(L&&yt(L,!1),(Z=K.onVnodeBeforeUpdate)&&Rt(Z,L,a,I),q&&bt(a,I,L,"beforeUpdate"),L&&yt(L,!0),(v.innerHTML&&K.innerHTML==null||v.textContent&&K.textContent==null)&&A(b,""),p?_(I.dynamicChildren,p,b,L,U,$s(a,h),g):D||w(I,a,b,null,L,U,$s(a,h),g,!1),m>0){if(m&16)d(b,v,K,L,h);else if(m&2&&v.class!==K.class&&r(b,"class",null,K.class,h),m&4&&r(b,"style",v.style,K.style,h),m&8){const M=a.dynamicProps;for(let B=0;B<M.length;B++){const V=M[B],se=v[V],Oe=K[V];(Oe!==se||V==="value")&&r(b,V,se,Oe,h,L)}}m&1&&I.children!==a.children&&A(b,a.children)}else!D&&p==null&&d(b,v,K,L,h);((Z=K.onVnodeUpdated)||q)&&we(()=>{Z&&Rt(Z,L,a,I),q&&bt(a,I,L,"updated")},U)},_=(I,a,L,U,h,g,D)=>{for(let b=0;b<a.length;b++){const m=I[b],p=a[b],q=m.el&&(m.type===le||!lE(m,p)||m.shapeFlag&70)?O(m.el):L;H(m,p,q,null,U,h,g,D,!0)}},d=(I,a,L,U,h)=>{if(a!==L){if(a!==Ce)for(const g in a)!cE(g)&&!(g in L)&&r(I,g,a[g],null,h,U);for(const g in L){if(cE(g))continue;const D=L[g],b=a[g];D!==b&&g!=="value"&&r(I,g,b,D,h,U)}"value"in L&&r(I,"value",a.value,L.value,h)}},f=(I,a,L,U,h,g,D,b,m)=>{const p=a.el=I?I.el:R(""),q=a.anchor=I?I.anchor:R("");let{patchFlag:v,dynamicChildren:K,slotScopeIds:Z}=a;Z&&(b=b?b.concat(Z):Z),I==null?(s(p,L,U),s(q,L,U),$(a.children||[],L,q,h,g,D,b,m)):v>0&&v&64&&K&&I.dynamicChildren?(_(I.dynamicChildren,K,L,h,g,D,b),(a.key!=null||h&&a===h.subTree)&&rr(I,a,!0)):w(I,a,L,q,h,g,D,b,m)},Y=(I,a,L,U,h,g,D,b,m)=>{a.slotScopeIds=b,I==null?a.shapeFlag&512?h.ctx.activate(a,L,U,D,m):J(a,L,U,h,g,D,m):Me(I,a,m)},J=(I,a,L,U,h,g,D)=>{const b=I.component=cO(I,U,h);if(To(I)&&(b.ctx.renderer=Ht),uO(b,!1,D),b.asyncDep){if(h&&h.registerDep(b,c,D),!I.el){const m=b.subTree=F(dt);W(null,m,a,L)}}else c(b,I,a,L,h,g,D)},Me=(I,a,L)=>{const U=a.component=I.component;if(iO(I,a,L))if(U.asyncDep&&!U.asyncResolved){G(U,a,L);return}else U.next=a,U.update();else a.el=I.el,U.vnode=a},c=(I,a,L,U,h,g,D)=>{const b=()=>{if(I.isMounted){let{next:v,bu:K,u:Z,parent:M,vnode:B}=I;{const qe=co(I);if(qe){v&&(v.el=B.el,G(I,v,D)),qe.asyncDep.then(()=>{I.isUnmounted||b()});return}}let V=v,se;yt(I,!1),v?(v.el=B.el,G(I,v,D)):v=B,K&&Vs(K),(se=v.props&&v.props.onVnodeBeforeUpdate)&&Rt(se,M,v,B),yt(I,!0);const Oe=Wr(I),De=I.subTree;I.subTree=Oe,H(De,Oe,O(De.el),mt(De),I,h,g),v.el=Oe.el,V===null&&SO(I,Oe.el),Z&&we(Z,h),(se=v.props&&v.props.onVnodeUpdated)&&we(()=>Rt(se,M,v,B),h)}else{let v;const{el:K,props:Z}=a,{bm:M,m:B,parent:V,root:se,type:Oe}=I,De=TE(a);yt(I,!1),M&&Vs(M),!De&&(v=Z&&Z.onVnodeBeforeMount)&&Rt(v,V,a),yt(I,!0);{se.ce&&se.ce._injectChildStyle(Oe);const qe=I.subTree=Wr(I);H(null,qe,L,U,I,h,g),a.el=qe.el}if(B&&we(B,h),!De&&(v=Z&&Z.onVnodeMounted)){const qe=a;we(()=>Rt(v,V,qe),h)}(a.shapeFlag&256||V&&TE(V.vnode)&&V.vnode.shapeFlag&256)&&I.a&&we(I.a,h),I.isMounted=!0,a=L=U=null}};I.scope.on();const m=I.effect=new HR(b);I.scope.off();const p=I.update=m.run.bind(m),q=I.job=m.runIfDirty.bind(m);q.i=I,q.id=I.uid,m.scheduler=()=>er(q),yt(I,!0),p()},G=(I,a,L)=>{a.component=I;const U=I.vnode.props;I.vnode=a,I.next=null,kS(I,a.props,U,L),ZS(I,a.children,L),Mt(),mr(I),Ut()},w=(I,a,L,U,h,g,D,b,m=!1)=>{const p=I&&I.children,q=I?I.shapeFlag:0,v=a.children,{patchFlag:K,shapeFlag:Z}=a;if(K>0){if(K&128){ce(p,v,L,U,h,g,D,b,m);return}else if(K&256){oe(p,v,L,U,h,g,D,b,m);return}}Z&8?(q&16&&_t(p,h,g),v!==p&&A(L,v)):q&16?Z&16?ce(p,v,L,U,h,g,D,b,m):_t(p,h,g,!0):(q&8&&A(L,""),Z&16&&$(v,L,U,h,g,D,b,m))},oe=(I,a,L,U,h,g,D,b,m)=>{I=I||tE,a=a||tE;const p=I.length,q=a.length,v=Math.min(p,q);let K;for(K=0;K<v;K++){const Z=a[K]=m?ut(a[K]):At(a[K]);H(I[K],Z,L,null,h,g,D,b,m)}p>q?_t(I,h,g,!0,!1,v):$(a,L,U,h,g,D,b,m,v)},ce=(I,a,L,U,h,g,D,b,m)=>{let p=0;const q=a.length;let v=I.length-1,K=q-1;for(;p<=v&&p<=K;){const Z=I[p],M=a[p]=m?ut(a[p]):At(a[p]);if(lE(Z,M))H(Z,M,L,null,h,g,D,b,m);else break;p++}for(;p<=v&&p<=K;){const Z=I[v],M=a[K]=m?ut(a[K]):At(a[K]);if(lE(Z,M))H(Z,M,L,null,h,g,D,b,m);else break;v--,K--}if(p>v){if(p<=K){const Z=K+1,M=Z<q?a[Z].el:U;for(;p<=K;)H(null,a[p]=m?ut(a[p]):At(a[p]),L,M,h,g,D,b,m),p++}}else if(p>K)for(;p<=v;)de(I[p],h,g,!0),p++;else{const Z=p,M=p,B=new Map;for(p=M;p<=K;p++){const Ke=a[p]=m?ut(a[p]):At(a[p]);Ke.key!=null&&B.set(Ke.key,p)}let V,se=0;const Oe=K-M+1;let De=!1,qe=0;const Bt=new Array(Oe);for(p=0;p<Oe;p++)Bt[p]=0;for(p=Z;p<=v;p++){const Ke=I[p];if(se>=Oe){de(Ke,h,g,!0);continue}let nt;if(Ke.key!=null)nt=B.get(Ke.key);else for(V=M;V<=K;V++)if(Bt[V-M]===0&&lE(Ke,a[V])){nt=V;break}nt===void 0?de(Ke,h,g,!0):(Bt[nt-M]=p+1,nt>=qe?qe=nt:De=!0,H(Ke,a[nt],L,null,h,g,D,b,m),se++)}const cr=De?EO(Bt):tE;for(V=cr.length-1,p=Oe-1;p>=0;p--){const Ke=M+p,nt=a[Ke],ur=Ke+1<q?a[Ke+1].el:U;Bt[p]===0?H(null,nt,L,ur,h,g,D,b,m):De&&(V<0||p!==cr[V]?Pe(nt,L,ur,2):V--)}}},Pe=(I,a,L,U,h=null)=>{const{el:g,type:D,transition:b,children:m,shapeFlag:p}=I;if(p&6){Pe(I.component.subTree,a,L,U);return}if(p&128){I.suspense.move(a,L,U);return}if(p&64){D.move(I,a,L,Ht);return}if(D===le){s(g,a,L);for(let v=0;v<m.length;v++)Pe(m[v],a,L,U);s(I.anchor,a,L);return}if(D===qE){ee(I,a,L);return}if(U!==2&&p&1&&b)if(U===0)b.beforeEnter(g),s(g,a,L),we(()=>b.enter(g),h);else{const{leave:v,delayLeave:K,afterLeave:Z}=b,M=()=>s(g,a,L),B=()=>{v(g,()=>{M(),Z&&Z()})};K?K(g,M,B):B()}else s(g,a,L)},de=(I,a,L,U=!1,h=!1)=>{const{type:g,props:D,ref:b,children:m,dynamicChildren:p,shapeFlag:q,patchFlag:v,dirs:K,cacheIndex:Z}=I;if(v===-2&&(h=!1),b!=null&&Rs(b,null,L,I,!0),Z!=null&&(a.renderCache[Z]=void 0),q&256){a.ctx.deactivate(I);return}const M=q&1&&K,B=!TE(I);let V;if(B&&(V=D&&D.onVnodeBeforeUnmount)&&Rt(V,a,I),q&6)ke(I.component,L,U);else{if(q&128){I.suspense.unmount(L,U);return}M&&bt(I,null,a,"beforeUnmount"),q&64?I.type.remove(I,a,L,Ht,U):p&&!p.hasOnce&&(g!==le||v>0&&v&64)?_t(p,a,L,!1,!0):(g===le&&v&384||!h&&q&16)&&_t(m,a,L),U&>(I)}(B&&(V=D&&D.onVnodeUnmounted)||M)&&we(()=>{V&&Rt(V,a,I),M&&bt(I,null,a,"unmounted")},L)},gt=I=>{const{type:a,el:L,anchor:U,transition:h}=I;if(a===le){Ve(L,U);return}if(a===qE){x(I);return}const g=()=>{T(L),h&&!h.persisted&&h.afterLeave&&h.afterLeave()};if(I.shapeFlag&1&&h&&!h.persisted){const{leave:D,delayLeave:b}=h,m=()=>D(L,g);b?b(I.el,g,m):m()}else g()},Ve=(I,a)=>{let L;for(;I!==a;)L=N(I),T(I),I=L;T(a)},ke=(I,a,L)=>{const{bum:U,scope:h,job:g,subTree:D,um:b,m,a:p}=I;wr(m),wr(p),U&&Vs(U),h.stop(),g&&(g.flags|=8,de(D,I,a,L)),b&&we(b,a),we(()=>{I.isUnmounted=!0},a),a&&a.pendingBranch&&!a.isUnmounted&&I.asyncDep&&!I.asyncResolved&&I.suspenseId===a.pendingId&&(a.deps--,a.deps===0&&a.resolve())},_t=(I,a,L,U=!1,h=!1,g=0)=>{for(let D=g;D<I.length;D++)de(I[D],a,L,U,h)},mt=I=>{if(I.shapeFlag&6)return mt(I.component.subTree);if(I.shapeFlag&128)return I.suspense.next();const a=N(I.anchor||I.el),L=a&&a[eo];return L?N(L):a};let Jt=!1;const wE=(I,a,L)=>{I==null?a._vnode&&de(a._vnode,null,null,!0):H(a._vnode||null,I,a,null,null,null,L),a._vnode=I,Jt||(Jt=!0,mr(),QR(),Jt=!1)},Ht={p:H,um:de,m:Pe,r:gt,mt:J,mc:$,pc:w,pbc:_,n:mt,o:e};return{render:wE,hydrate:void 0,createApp:XS(wE)}}function $s({type:e,props:t},E){return E==="svg"&&e==="foreignObject"||E==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:E}function yt({effect:e,job:t},E){E?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function tO(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function rr(e,t,E=!1){const s=e.children,T=t.children;if(te(s)&&te(T))for(let r=0;r<s.length;r++){const n=s[r];let R=T[r];R.shapeFlag&1&&!R.dynamicChildren&&((R.patchFlag<=0||R.patchFlag===32)&&(R=T[r]=ut(T[r]),R.el=n.el),!E&&R.patchFlag!==-2&&rr(n,R)),R.type===hs&&(R.el=n.el)}}function EO(e){const t=e.slice(),E=[0];let s,T,r,n,R;const o=e.length;for(s=0;s<o;s++){const i=e[s];if(i!==0){if(T=E[E.length-1],e[T]<i){t[s]=T,E.push(s);continue}for(r=0,n=E.length-1;r<n;)R=r+n>>1,e[E[R]]<i?r=R+1:n=R;i<e[E[r]]&&(r>0&&(t[s]=E[r-1]),E[r]=s)}}for(r=E.length,n=E[r-1];r-- >0;)E[r]=n,n=t[n];return E}function co(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:co(t)}function wr(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const sO=Symbol.for("v-scx"),TO=()=>PE(sO);function rE(e,t,E){return uo(e,t,E)}function uo(e,t,E=Ce){const{immediate:s,deep:T,flush:r,once:n}=E,R=Fe({},E),o=t&&s||!t&&r!=="post";let i;if(yE){if(r==="sync"){const l=TO();i=l.__watcherHandles||(l.__watcherHandles=[])}else if(!o){const l=()=>{};return l.stop=it,l.resume=it,l.pause=it,l}}const A=He;R.call=(l,C,H)=>St(l,A,C,H);let O=!1;r==="post"?R.scheduler=l=>{we(l,A&&A.suspense)}:r!=="sync"&&(O=!0,R.scheduler=(l,C)=>{C?l():er(l)}),R.augmentJob=l=>{t&&(l.flags|=4),O&&(l.flags|=2,A&&(l.id=A.uid,l.i=A))};const N=_S(e,t,R);return yE&&(i?i.push(N):o&&N()),N}function rO(e,t,E){const s=this.proxy,T=fe(e)?e.includes(".")?po(s,e):()=>s[e]:e.bind(s,s);let r;re(t)?r=t:(r=t.handler,E=t);const n=VE(this),R=uo(T,r.bind(s),E);return n(),R}function po(e,t){const E=t.split(".");return()=>{let s=e;for(let T=0;T<E.length&&s;T++)s=s[E[T]];return s}}const nO=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ze(t)}Modifiers`]||e[`${Kt(t)}Modifiers`];function RO(e,t,...E){if(e.isUnmounted)return;const s=e.vnode.props||Ce;let T=E;const r=t.startsWith("update:"),n=r&&nO(s,t.slice(7));n&&(n.trim&&(T=E.map(A=>fe(A)?A.trim():A)),n.number&&(T=E.map(Bi)));let R,o=s[R=Ys(t)]||s[R=Ys(ze(t))];!o&&r&&(o=s[R=Ys(Kt(t))]),o&&St(o,e,6,T);const i=s[R+"Once"];if(i){if(!e.emitted)e.emitted={};else if(e.emitted[R])return;e.emitted[R]=!0,St(i,e,6,T)}}function fo(e,t,E=!1){const s=t.emitsCache,T=s.get(e);if(T!==void 0)return T;const r=e.emits;let n={},R=!1;if(!re(e)){const o=i=>{const A=fo(i,t,!0);A&&(R=!0,Fe(n,A))};!E&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return!r&&!R?(ue(e)&&s.set(e,null),null):(te(r)?r.forEach(o=>n[o]=null):Fe(n,r),ue(e)&&s.set(e,n),n)}function Us(e,t){return!e||!Cs(t)?!1:(t=t.slice(2).replace(/Once$/,""),ae(e,t[0].toLowerCase()+t.slice(1))||ae(e,Kt(t))||ae(e,t))}function Wr(e){const{type:t,vnode:E,proxy:s,withProxy:T,propsOptions:[r],slots:n,attrs:R,emit:o,render:i,renderCache:A,props:O,data:N,setupState:l,ctx:C,inheritAttrs:H}=e,Q=ns(e);let W,j;try{if(E.shapeFlag&4){const x=T||s,k=x;W=At(i.call(k,x,A,O,l,N,C)),j=R}else{const x=t;W=At(x.length>1?x(O,{attrs:R,slots:n,emit:o}):x(O,null)),j=t.props?R:oO(R)}}catch(x){dE.length=0,Ps(x,e,1),W=F(dt)}let ee=W;if(j&&H!==!1){const x=Object.keys(j),{shapeFlag:k}=ee;x.length&&k&7&&(r&&x.some(wT)&&(j=AO(j,r)),ee=RE(ee,j,!1,!0))}return E.dirs&&(ee=RE(ee,null,!1,!0),ee.dirs=ee.dirs?ee.dirs.concat(E.dirs):E.dirs),E.transition&&tr(ee,E.transition),W=ee,ns(Q),W}const oO=e=>{let t;for(const E in e)(E==="class"||E==="style"||Cs(E))&&((t||(t={}))[E]=e[E]);return t},AO=(e,t)=>{const E={};for(const s in e)(!wT(s)||!(s.slice(9)in t))&&(E[s]=e[s]);return E};function iO(e,t,E){const{props:s,children:T,component:r}=e,{props:n,children:R,patchFlag:o}=t,i=r.emitsOptions;if(t.dirs||t.transition)return!0;if(E&&o>=0){if(o&1024)return!0;if(o&16)return s?Xr(s,n,i):!!n;if(o&8){const A=t.dynamicProps;for(let O=0;O<A.length;O++){const N=A[O];if(n[N]!==s[N]&&!Us(i,N))return!0}}}else return(T||R)&&(!R||!R.$stable)?!0:s===n?!1:s?n?Xr(s,n,i):!0:!!n;return!1}function Xr(e,t,E){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let T=0;T<s.length;T++){const r=s[T];if(t[r]!==e[r]&&!Us(E,r))return!0}return!1}function SO({vnode:e,parent:t},E){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=E,t=t.parent;else break}}const Do=e=>e.__isSuspense;function OO(e,t){t&&t.pendingBranch?te(e)?t.effects.push(...e):t.effects.push(e):cS(e)}const le=Symbol.for("v-fgt"),hs=Symbol.for("v-txt"),dt=Symbol.for("v-cmt"),qE=Symbol.for("v-stc"),dE=[];let $e=null;function P(e=!1){dE.push($e=e?null:[])}function IO(){dE.pop(),$e=dE[dE.length-1]||null}let BE=1;function Kr(e,t=!1){BE+=e,e<0&&$e&&t&&($e.hasOnce=!0)}function Po(e){return e.dynamicChildren=BE>0?$e||tE:null,IO(),BE>0&&$e&&$e.push(e),e}function y(e,t,E,s,T,r){return Po(S(e,t,E,s,T,r,!0))}function Ae(e,t,E,s,T){return Po(F(e,t,E,s,T,!0))}function bE(e){return e?e.__v_isVNode===!0:!1}function lE(e,t){return e.type===t.type&&e.key===t.key}const Mo=({key:e})=>e??null,jE=({ref:e,ref_key:t,ref_for:E})=>(typeof e=="number"&&(e=""+e),e!=null?fe(e)||pe(e)||re(e)?{i:ve,r:e,k:t,f:!!E}:e:null);function S(e,t=null,E=null,s=0,T=null,r=e===le?0:1,n=!1,R=!1){const o={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Mo(t),ref:t&&jE(t),scopeId:zR,slotScopeIds:null,children:E,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:T,dynamicChildren:null,appContext:null,ctx:ve};return R?(nr(o,E),r&128&&e.normalize(o)):E&&(o.shapeFlag|=fe(E)?8:16),BE>0&&!n&&$e&&(o.patchFlag>0||r&6)&&o.patchFlag!==32&&$e.push(o),o}const F=aO;function aO(e,t=null,E=null,s=0,T=null,r=!1){if((!e||e===bS)&&(e=dt),bE(e)){const R=RE(e,t,!0);return E&&nr(R,E),BE>0&&!r&&$e&&(R.shapeFlag&6?$e[$e.indexOf(e)]=R:$e.push(R)),R.patchFlag=-2,R}if(dO(e)&&(e=e.__vccOpts),t){t=NO(t);let{class:R,style:o}=t;R&&!fe(R)&&(t.class=ge(R)),ue(o)&&(QT(o)&&!te(o)&&(o=Fe({},o)),t.style=fs(o))}const n=fe(e)?1:Do(e)?128:uS(e)?64:ue(e)?4:re(e)?2:0;return S(e,t,E,s,T,n,r,!0)}function NO(e){return e?QT(e)||Io(e)?Fe({},e):e:null}function RE(e,t,E=!1,s=!1){const{props:T,ref:r,patchFlag:n,children:R,transition:o}=e,i=t?_O(T||{},t):T,A={__v_isVNode:!0,__v_skip:!0,type:e.type,props:i,key:i&&Mo(i),ref:t&&t.ref?E&&r?te(r)?r.concat(jE(t)):[r,jE(t)]:jE(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:R,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==le?n===-1?16:n|16:n,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:o,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&RE(e.ssContent),ssFallback:e.ssFallback&&RE(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return o&&s&&tr(A,o.clone(A)),A}function ye(e=" ",t=0){return F(hs,null,e,t)}function lO(e,t){const E=F(qE,null,e);return E.staticCount=t,E}function Ee(e="",t=!1){return t?(P(),Ae(dt,null,e)):F(dt,null,e)}function At(e){return e==null||typeof e=="boolean"?F(dt):te(e)?F(le,null,e.slice()):bE(e)?ut(e):F(hs,null,String(e))}function ut(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:RE(e)}function nr(e,t){let E=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(te(t))E=16;else if(typeof t=="object")if(s&65){const T=t.default;T&&(T._c&&(T._d=!1),nr(e,T()),T._c&&(T._d=!0));return}else{E=32;const T=t._;!T&&!Io(t)?t._ctx=ve:T===3&&ve&&(ve.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else re(t)?(t={default:t,_ctx:ve},E=32):(t=String(t),s&64?(E=16,t=[ye(t)]):E=8);e.children=t,e.shapeFlag|=E}function _O(...e){const t={};for(let E=0;E<e.length;E++){const s=e[E];for(const T in s)if(T==="class")t.class!==s.class&&(t.class=ge([t.class,s.class]));else if(T==="style")t.style=fs([t.style,s.style]);else if(Cs(T)){const r=t[T],n=s[T];n&&r!==n&&!(te(r)&&r.includes(n))&&(t[T]=r?[].concat(r,n):n)}else T!==""&&(t[T]=s[T])}return t}function Rt(e,t,E,s=null){St(e,t,7,[E,s])}const CO=io();let LO=0;function cO(e,t,E){const s=e.type,T=(t?t.appContext:e.appContext)||CO,r={uid:LO++,vnode:e,type:s,parent:t,appContext:T,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new GR(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(T.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:No(s,T),emitsOptions:fo(s,T),emit:null,emitted:null,propsDefaults:Ce,inheritAttrs:s.inheritAttrs,ctx:Ce,data:Ce,props:Ce,attrs:Ce,slots:Ce,refs:Ce,setupState:Ce,setupContext:null,suspense:E,suspenseId:E?E.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 r.ctx={_:r},r.root=t?t.root:r,r.emit=RO.bind(null,r),e.ce&&e.ce(r),r}let He=null,As,MT;{const e=ps(),t=(E,s)=>{let T;return(T=e[E])||(T=e[E]=[]),T.push(s),r=>{T.length>1?T.forEach(n=>n(r)):T[0](r)}};As=t("__VUE_INSTANCE_SETTERS__",E=>He=E),MT=t("__VUE_SSR_SETTERS__",E=>yE=E)}const VE=e=>{const t=He;return As(e),e.scope.on(),()=>{e.scope.off(),As(t)}},$r=()=>{He&&He.scope.off(),As(null)};function Uo(e){return e.vnode.shapeFlag&4}let yE=!1;function uO(e,t=!1,E=!1){t&&MT(t);const{props:s,children:T}=e.vnode,r=Uo(e);JS(e,s,r,t),QS(e,T,E);const n=r?pO(e,t):void 0;return t&&MT(!1),n}function pO(e,t){const E=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,vS);const{setup:s}=E;if(s){Mt();const T=e.setupContext=s.length>1?DO(e):null,r=VE(e),n=YE(s,e,0,[e.props,T]),R=fR(n);if(Ut(),r(),(R||e.sp)&&!TE(e)&&so(e),R){if(n.then($r,$r),t)return n.then(o=>{Jr(e,o)}).catch(o=>{Ps(o,e,0)});e.asyncDep=n}else Jr(e,n)}else ho(e)}function Jr(e,t,E){re(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ue(t)&&(e.setupState=kR(t)),ho(e)}function ho(e,t,E){const s=e.type;e.render||(e.render=s.render||it);{const T=VE(e);Mt();try{FS(e)}finally{Ut(),T()}}}const fO={get(e,t){return Be(e,"get",""),e[t]}};function DO(e){const t=E=>{e.exposed=E||{}};return{attrs:new Proxy(e.attrs,fO),slots:e.slots,emit:e.emit,expose:t}}function Rr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(kR(ZT(e.exposed)),{get(t,E){if(E in t)return t[E];if(E in DE)return DE[E](e)},has(t,E){return E in t||E in DE}})):e.proxy}function PO(e,t=!0){return re(e)?e.displayName||e.name:e.name||t&&e.__name}function dO(e){return re(e)&&"__vccOpts"in e}const tt=(e,t)=>NS(e,t,yE);function vE(e,t,E){const s=arguments.length;return s===2?ue(t)&&!te(t)?bE(t)?F(e,null,[t]):F(e,t):F(e,null,t):(s>3?E=Array.prototype.slice.call(arguments,2):s===3&&bE(E)&&(E=[E]),F(e,t,E))}const MO="3.5.13";/**
|
15
|
+
**/function YE(e,t,E,s){try{return s?e(...s):e()}catch(T){Ps(T,t,E)}}function St(e,t,E,s){if(re(e)){const T=YE(e,t,E,s);return T&&pR(T)&&T.catch(r=>{Ps(r,t,E)}),T}if(te(e)){const T=[];for(let r=0;r<e.length;r++)T.push(St(e[r],t,E,s));return T}}function Ps(e,t,E,s=!0){const T=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:n}=t&&t.appContext.config||Ce;if(t){let R=t.parent;const o=t.proxy,i=`https://vuejs.org/error-reference/#runtime-${E}`;for(;R;){const A=R.ec;if(A){for(let O=0;O<A.length;O++)if(A[O](e,o,i)===!1)return}R=R.parent}if(r){Mt(),YE(r,null,10,[e,o,i]),Ut();return}}CS(e,E,T,s,n)}function CS(e,t,E,s=!0,T=!1){if(T)throw e;console.error(e)}const Xe=[];let ot=-1;const sE=[];let Lt=null,zt=0;const qR=Promise.resolve();let rs=null;function zT(e){const t=rs||qR;return e?t.then(this?e.bind(this):e):t}function cS(e){let t=ot+1,E=Xe.length;for(;t<E;){const s=t+E>>>1,T=Xe[s],r=HE(T);r<e||r===e&&T.flags&2?t=s+1:E=s}return t}function er(e){if(!(e.flags&1)){const t=HE(e),E=Xe[Xe.length-1];!E||!(e.flags&2)&&t>=HE(E)?Xe.push(e):Xe.splice(cS(t),0,e),e.flags|=1,jR()}}function jR(){rs||(rs=qR.then(ZR))}function LS(e){te(e)?sE.push(...e):Lt&&e.id===-1?Lt.splice(zt+1,0,e):e.flags&1||(sE.push(e),e.flags|=1),jR()}function mr(e,t,E=ot+1){for(;E<Xe.length;E++){const s=Xe[E];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Xe.splice(E,1),E--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function QR(e){if(sE.length){const t=[...new Set(sE)].sort((E,s)=>HE(E)-HE(s));if(sE.length=0,Lt){Lt.push(...t);return}for(Lt=t,zt=0;zt<Lt.length;zt++){const E=Lt[zt];E.flags&4&&(E.flags&=-2),E.flags&8||E(),E.flags&=-2}Lt=null,zt=0}}const HE=e=>e.id==null?e.flags&2?-1:1/0:e.id;function ZR(e){try{for(ot=0;ot<Xe.length;ot++){const t=Xe[ot];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),YE(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;ot<Xe.length;ot++){const t=Xe[ot];t&&(t.flags&=-2)}ot=-1,Xe.length=0,QR(),rs=null,(Xe.length||sE.length)&&ZR()}}let Fe=null,zR=null;function ns(e){const t=Fe;return Fe=e,zR=e&&e.type.__scopeId||null,t}function Te(e,t=Fe,E){if(!t||e._n)return e;const s=(...T)=>{s._d&&Kr(-1);const r=ns(t);let n;try{n=e(...T)}finally{ns(r),s._d&&Kr(1)}return n};return s._n=!0,s._c=!0,s._d=!0,s}function Bt(e,t,E,s){const T=e.dirs,r=t&&t.dirs;for(let n=0;n<T.length;n++){const R=T[n];r&&(R.oldValue=r[n].value);let o=R.dir[s];o&&(Mt(),St(o,E,8,[e.el,R,e,t]),Ut())}}const eo=Symbol("_vte"),uS=e=>e.__isTeleport,pE=e=>e&&(e.disabled||e.disabled===""),Hr=e=>e&&(e.defer||e.defer===""),br=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Br=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,fT=(e,t)=>{const E=e&&e.to;return pe(E)?t?t(E):null:E},to={name:"Teleport",__isTeleport:!0,process(e,t,E,s,T,r,n,R,o,i){const{mc:A,pc:O,pbc:N,o:{insert:l,querySelector:C,createText:H,createComment:Q}}=i,W=pE(t.props);let{shapeFlag:j,children:ee,dynamicChildren:x}=t;if(e==null){const k=t.el=H(""),ae=t.anchor=H("");l(k,E,s),l(ae,E,s);const ie=(X,_)=>{j&16&&(T&&T.isCE&&(T.ce._teleportTarget=X),A(ee,X,_,T,r,n,R,o))},$=()=>{const X=t.target=fT(t.props,C),_=Eo(X,t,H,l);X&&(n!=="svg"&&br(X)?n="svg":n!=="mathml"&&Br(X)&&(n="mathml"),W||(ie(X,_),kE(t,!1)))};W&&(ie(E,ae),kE(t,!0)),Hr(t.props)?we(()=>{$(),t.el.__isMounted=!0},r):$()}else{if(Hr(t.props)&&!e.el.__isMounted){we(()=>{to.process(e,t,E,s,T,r,n,R,o,i),delete e.el.__isMounted},r);return}t.el=e.el,t.targetStart=e.targetStart;const k=t.anchor=e.anchor,ae=t.target=e.target,ie=t.targetAnchor=e.targetAnchor,$=pE(e.props),X=$?E:ae,_=$?k:ie;if(n==="svg"||br(ae)?n="svg":(n==="mathml"||Br(ae))&&(n="mathml"),x?(N(e.dynamicChildren,x,X,T,r,n,R),rr(e,t,!0)):o||O(e,t,X,_,T,r,n,R,!1),W)$?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):JE(t,E,k,i,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const d=t.target=fT(t.props,C);d&&JE(t,d,null,i,0)}else $&&JE(t,ae,ie,i,1);kE(t,W)}},remove(e,t,E,{um:s,o:{remove:T}},r){const{shapeFlag:n,children:R,anchor:o,targetStart:i,targetAnchor:A,target:O,props:N}=e;if(O&&(T(i),T(A)),r&&T(o),n&16){const l=r||!pE(N);for(let C=0;C<R.length;C++){const H=R[C];s(H,t,E,l,!!H.dynamicChildren)}}},move:JE,hydrate:fS};function JE(e,t,E,{o:{insert:s},m:T},r=2){r===0&&s(e.targetAnchor,t,E);const{el:n,anchor:R,shapeFlag:o,children:i,props:A}=e,O=r===2;if(O&&s(n,t,E),(!O||pE(A))&&o&16)for(let N=0;N<i.length;N++)T(i[N],t,E,2);O&&s(R,t,E)}function fS(e,t,E,s,T,r,{o:{nextSibling:n,parentNode:R,querySelector:o,insert:i,createText:A}},O){const N=t.target=fT(t.props,o);if(N){const l=pE(t.props),C=N._lpa||N.firstChild;if(t.shapeFlag&16)if(l)t.anchor=O(n(e),t,R(e),E,s,T,r),t.targetStart=C,t.targetAnchor=C&&n(C);else{t.anchor=n(e);let H=C;for(;H;){if(H&&H.nodeType===8){if(H.data==="teleport start anchor")t.targetStart=H;else if(H.data==="teleport anchor"){t.targetAnchor=H,N._lpa=t.targetAnchor&&n(t.targetAnchor);break}}H=n(H)}t.targetAnchor||Eo(N,t,A,i),O(C&&n(C),t,N,E,s,T,r)}kE(t,l)}return t.anchor&&n(t.anchor)}const pS=to;function kE(e,t){const E=e.ctx;if(E&&E.ut){let s,T;for(t?(s=e.el,T=e.anchor):(s=e.targetStart,T=e.targetAnchor);s&&s!==T;)s.nodeType===1&&s.setAttribute("data-v-owner",E.uid),s=s.nextSibling;E.ut()}}function Eo(e,t,E,s){const T=t.targetStart=E(""),r=t.targetAnchor=E("");return T[eo]=r,e&&(s(T,e),s(r,e)),r}function tr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,tr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function Ne(e,t){return re(e)?ve({name:e.name},t,{setup:e}):e}function so(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Rs(e,t,E,s,T=!1){if(te(e)){e.forEach((C,H)=>Rs(C,t&&(te(t)?t[H]:t),E,s,T));return}if(TE(s)&&!T){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Rs(e,t,E,s.component.subTree);return}const r=s.shapeFlag&4?Rr(s.component):s.el,n=T?null:r,{i:R,r:o}=e,i=t&&t.r,A=R.refs===Ce?R.refs={}:R.refs,O=R.setupState,N=Se(O),l=O===Ce?()=>!1:C=>Ie(N,C);if(i!=null&&i!==o&&(pe(i)?(A[i]=null,l(i)&&(O[i]=null)):fe(i)&&(i.value=null)),re(o))YE(o,R,12,[n,A]);else{const C=pe(o),H=fe(o);if(C||H){const Q=()=>{if(e.f){const W=C?l(o)?O[o]:A[o]:o.value;T?te(W)&&WT(W,r):te(W)?W.includes(r)||W.push(r):C?(A[o]=[r],l(o)&&(O[o]=A[o])):(o.value=[r],e.k&&(A[e.k]=o.value))}else C?(A[o]=n,l(o)&&(O[o]=n)):H&&(o.value=n,e.k&&(A[e.k]=n))};n?(Q.id=-1,we(Q,E)):Q()}}}fs().requestIdleCallback;fs().cancelIdleCallback;const TE=e=>!!e.type.__asyncLoader,To=e=>e.type.__isKeepAlive;function DS(e,t){ro(e,"a",t)}function PS(e,t){ro(e,"da",t)}function ro(e,t,E=He){const s=e.__wdc||(e.__wdc=()=>{let T=E;for(;T;){if(T.isDeactivated)return;T=T.parent}return e()});if(ds(t,s,E),E){let T=E.parent;for(;T&&T.parent;)To(T.parent.vnode)&&dS(s,t,E,T),T=T.parent}}function dS(e,t,E,s){const T=ds(t,e,s,!0);Er(()=>{WT(s[t],T)},E)}function ds(e,t,E=He,s=!1){if(E){const T=E[e]||(E[e]=[]),r=t.__weh||(t.__weh=(...n)=>{Mt();const R=VE(E),o=St(t,E,e,n);return R(),Ut(),o});return s?T.unshift(r):T.push(r),r}}const lt=e=>(t,E=He)=>{(!yE||e==="sp")&&ds(e,(...s)=>t(...s),E)},no=lt("bm"),Ms=lt("m"),MS=lt("bu"),US=lt("u"),hS=lt("bum"),Er=lt("um"),GS=lt("sp"),gS=lt("rtg"),mS=lt("rtc");function HS(e,t=He){ds("ec",e,t)}const bS="components";function sr(e,t){return yS(bS,e,!0,t)||e}const BS=Symbol.for("v-ndc");function yS(e,t,E=!0,s=!1){const T=Fe||He;if(T){const r=T.type;{const R=PO(r,!1);if(R&&(R===t||R===ze(t)||R===us(ze(t))))return r}const n=yr(T[e]||r[e],t)||yr(T.appContext[e],t);return!n&&s?r:n}}function yr(e,t){return e&&(e[t]||e[ze(t)]||e[us(ze(t))])}function Je(e,t,E,s){let T;const r=E,n=te(e);if(n||pe(e)){const R=n&&Pt(e);let o=!1;R&&(o=!Ze(e),e=Ds(e)),T=new Array(e.length);for(let i=0,A=e.length;i<A;i++)T[i]=t(o?Be(e[i]):e[i],i,void 0,r)}else if(typeof e=="number"){T=new Array(e);for(let R=0;R<e;R++)T[R]=t(R+1,R,void 0,r)}else if(ue(e))if(e[Symbol.iterator])T=Array.from(e,(R,o)=>t(R,o,void 0,r));else{const R=Object.keys(e);T=new Array(R.length);for(let o=0,i=R.length;o<i;o++){const A=R[o];T[o]=t(e[A],A,o,r)}}else T=[];return T}function st(e,t,E={},s,T){if(Fe.ce||Fe.parent&&TE(Fe.parent)&&Fe.parent.ce)return t!=="default"&&(E.name=t),P(),Ae(le,null,[v("slot",E,s)],64);let r=e[t];r&&r._c&&(r._d=!1),P();const n=r&&Ro(r(E)),R=E.key||n&&n.key,o=Ae(le,{key:(R&&!Nt(R)?R:`_${t}`)+""},n||[],n&&e._===1?64:-2);return o.scopeId&&(o.slotScopeIds=[o.scopeId+"-s"]),r&&r._c&&(r._d=!0),o}function Ro(e){return e.some(t=>BE(t)?!(t.type===dt||t.type===le&&!Ro(t.children)):!0)?e:null}const pT=e=>e?Uo(e)?Rr(e):pT(e.parent):null,DE=ve(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=>pT(e.parent),$root:e=>pT(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ao(e),$forceUpdate:e=>e.f||(e.f=()=>{er(e.update)}),$nextTick:e=>e.n||(e.n=zT.bind(e.proxy)),$watch:e=>rO.bind(e)}),Ks=(e,t)=>e!==Ce&&!e.__isScriptSetup&&Ie(e,t),FS={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:E,setupState:s,data:T,props:r,accessCache:n,type:R,appContext:o}=e;let i;if(t[0]!=="$"){const l=n[t];if(l!==void 0)switch(l){case 1:return s[t];case 2:return T[t];case 4:return E[t];case 3:return r[t]}else{if(Ks(s,t))return n[t]=1,s[t];if(T!==Ce&&Ie(T,t))return n[t]=2,T[t];if((i=e.propsOptions[0])&&Ie(i,t))return n[t]=3,r[t];if(E!==Ce&&Ie(E,t))return n[t]=4,E[t];DT&&(n[t]=0)}}const A=DE[t];let O,N;if(A)return t==="$attrs"&&be(e.attrs,"get",""),A(e);if((O=R.__cssModules)&&(O=O[t]))return O;if(E!==Ce&&Ie(E,t))return n[t]=4,E[t];if(N=o.config.globalProperties,Ie(N,t))return N[t]},set({_:e},t,E){const{data:s,setupState:T,ctx:r}=e;return Ks(T,t)?(T[t]=E,!0):s!==Ce&&Ie(s,t)?(s[t]=E,!0):Ie(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=E,!0)},has({_:{data:e,setupState:t,accessCache:E,ctx:s,appContext:T,propsOptions:r}},n){let R;return!!E[n]||e!==Ce&&Ie(e,n)||Ks(t,n)||(R=r[0])&&Ie(R,n)||Ie(s,n)||Ie(DE,n)||Ie(T.config.globalProperties,n)},defineProperty(e,t,E){return E.get!=null?e._.accessCache[t]=0:Ie(E,"value")&&this.set(e,t,E.value,null),Reflect.defineProperty(e,t,E)}};function Fr(e){return te(e)?e.reduce((t,E)=>(t[E]=null,t),{}):e}let DT=!0;function vS(e){const t=Ao(e),E=e.proxy,s=e.ctx;DT=!1,t.beforeCreate&&vr(t.beforeCreate,e,"bc");const{data:T,computed:r,methods:n,watch:R,provide:o,inject:i,created:A,beforeMount:O,mounted:N,beforeUpdate:l,updated:C,activated:H,deactivated:Q,beforeDestroy:W,beforeUnmount:j,destroyed:ee,unmounted:x,render:k,renderTracked:ae,renderTriggered:ie,errorCaptured:$,serverPrefetch:X,expose:_,inheritAttrs:d,components:p,directives:Y,filters:J}=t;if(i&&YS(i,s,null),n)for(const G in n){const w=n[G];re(w)&&(s[G]=w.bind(E))}if(T){const G=T.call(E,E);ue(G)&&(e.data=rt(G))}if(DT=!0,r)for(const G in r){const w=r[G],oe=re(w)?w.bind(E,E):re(w.get)?w.get.bind(E,E):it,Le=!re(w)&&re(w.set)?w.set.bind(E):it,Pe=tt({get:oe,set:Le});Object.defineProperty(s,G,{enumerable:!0,configurable:!0,get:()=>Pe.value,set:de=>Pe.value=de})}if(R)for(const G in R)oo(R[G],s,E,G);if(o){const G=re(o)?o.call(E):o;Reflect.ownKeys(G).forEach(w=>{KS(w,G[w])})}A&&vr(A,e,"c");function L(G,w){te(w)?w.forEach(oe=>G(oe.bind(E))):w&&G(w.bind(E))}if(L(no,O),L(Ms,N),L(MS,l),L(US,C),L(DS,H),L(PS,Q),L(HS,$),L(mS,ae),L(gS,ie),L(hS,j),L(Er,x),L(GS,X),te(_))if(_.length){const G=e.exposed||(e.exposed={});_.forEach(w=>{Object.defineProperty(G,w,{get:()=>E[w],set:oe=>E[w]=oe})})}else e.exposed||(e.exposed={});k&&e.render===it&&(e.render=k),d!=null&&(e.inheritAttrs=d),p&&(e.components=p),Y&&(e.directives=Y),X&&so(e)}function YS(e,t,E=it){te(e)&&(e=PT(e));for(const s in e){const T=e[s];let r;ue(T)?"default"in T?r=PE(T.from||s,T.default,!0):r=PE(T.from||s):r=PE(T),fe(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:n=>r.value=n}):t[s]=r}}function vr(e,t,E){St(te(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,E)}function oo(e,t,E,s){let T=s.includes(".")?fo(E,s):()=>E[s];if(pe(e)){const r=t[e];re(r)&&rE(T,r)}else if(re(e))rE(T,e.bind(E));else if(ue(e))if(te(e))e.forEach(r=>oo(r,t,E,s));else{const r=re(e.handler)?e.handler.bind(E):t[e.handler];re(r)&&rE(T,r,e)}}function Ao(e){const t=e.type,{mixins:E,extends:s}=t,{mixins:T,optionsCache:r,config:{optionMergeStrategies:n}}=e.appContext,R=r.get(t);let o;return R?o=R:!T.length&&!E&&!s?o=t:(o={},T.length&&T.forEach(i=>os(o,i,n,!0)),os(o,t,n)),ue(t)&&r.set(t,o),o}function os(e,t,E,s=!1){const{mixins:T,extends:r}=t;r&&os(e,r,E,!0),T&&T.forEach(n=>os(e,n,E,!0));for(const n in t)if(!(s&&n==="expose")){const R=VS[n]||E&&E[n];e[n]=R?R(e[n],t[n]):t[n]}return e}const VS={data:Yr,props:Vr,emits:Vr,methods:CE,computed:CE,beforeCreate:xe,created:xe,beforeMount:xe,mounted:xe,beforeUpdate:xe,updated:xe,beforeDestroy:xe,beforeUnmount:xe,destroyed:xe,unmounted:xe,activated:xe,deactivated:xe,errorCaptured:xe,serverPrefetch:xe,components:CE,directives:CE,watch:wS,provide:Yr,inject:xS};function Yr(e,t){return t?e?function(){return ve(re(e)?e.call(this,this):e,re(t)?t.call(this,this):t)}:t:e}function xS(e,t){return CE(PT(e),PT(t))}function PT(e){if(te(e)){const t={};for(let E=0;E<e.length;E++)t[e[E]]=e[E];return t}return e}function xe(e,t){return e?[...new Set([].concat(e,t))]:t}function CE(e,t){return e?ve(Object.create(null),e,t):t}function Vr(e,t){return e?te(e)&&te(t)?[...new Set([...e,...t])]:ve(Object.create(null),Fr(e),Fr(t??{})):t}function wS(e,t){if(!e)return t;if(!t)return e;const E=ve(Object.create(null),e);for(const s in t)E[s]=xe(e[s],t[s]);return E}function io(){return{app:null,config:{isNativeTag:hi,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 WS=0;function XS(e,t){return function(s,T=null){re(s)||(s=ve({},s)),T!=null&&!ue(T)&&(T=null);const r=io(),n=new WeakSet,R=[];let o=!1;const i=r.app={_uid:WS++,_component:s,_props:T,_container:null,_context:r,_instance:null,version:MO,get config(){return r.config},set config(A){},use(A,...O){return n.has(A)||(A&&re(A.install)?(n.add(A),A.install(i,...O)):re(A)&&(n.add(A),A(i,...O))),i},mixin(A){return r.mixins.includes(A)||r.mixins.push(A),i},component(A,O){return O?(r.components[A]=O,i):r.components[A]},directive(A,O){return O?(r.directives[A]=O,i):r.directives[A]},mount(A,O,N){if(!o){const l=i._ceVNode||v(s,T);return l.appContext=r,N===!0?N="svg":N===!1&&(N=void 0),e(l,A,N),o=!0,i._container=A,A.__vue_app__=i,Rr(l.component)}},onUnmount(A){R.push(A)},unmount(){o&&(St(R,i._instance,16),e(null,i._container),delete i._container.__vue_app__)},provide(A,O){return r.provides[A]=O,i},runWithContext(A){const O=xt;xt=i;try{return A()}finally{xt=O}}};return i}}let xt=null;function KS(e,t){if(He){let E=He.provides;const s=He.parent&&He.parent.provides;s===E&&(E=He.provides=Object.create(s)),E[e]=t}}function PE(e,t,E=!1){const s=He||Fe;if(s||xt){const T=xt?xt._context.provides:s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(T&&e in T)return T[e];if(arguments.length>1)return E&&re(t)?t.call(s&&s.proxy):t}}function $S(){return!!(He||Fe||xt)}const So={},Oo=()=>Object.create(So),ao=e=>Object.getPrototypeOf(e)===So;function JS(e,t,E,s=!1){const T={},r=Oo();e.propsDefaults=Object.create(null),Io(e,t,T,r);for(const n in e.propsOptions[0])n in T||(T[n]=void 0);E?e.props=s?T:RS(T):e.type.props?e.props=T:e.props=r,e.attrs=r}function kS(e,t,E,s){const{props:T,attrs:r,vnode:{patchFlag:n}}=e,R=Se(T),[o]=e.propsOptions;let i=!1;if((s||n>0)&&!(n&16)){if(n&8){const A=e.vnode.dynamicProps;for(let O=0;O<A.length;O++){let N=A[O];if(Us(e.emitsOptions,N))continue;const l=t[N];if(o)if(Ie(r,N))l!==r[N]&&(r[N]=l,i=!0);else{const C=ze(N);T[C]=dT(o,R,C,l,e,!1)}else l!==r[N]&&(r[N]=l,i=!0)}}}else{Io(e,t,T,r)&&(i=!0);let A;for(const O in R)(!t||!Ie(t,O)&&((A=Kt(O))===O||!Ie(t,A)))&&(o?E&&(E[O]!==void 0||E[A]!==void 0)&&(T[O]=dT(o,R,O,void 0,e,!0)):delete T[O]);if(r!==R)for(const O in r)(!t||!Ie(t,O))&&(delete r[O],i=!0)}i&&It(e.attrs,"set","")}function Io(e,t,E,s){const[T,r]=e.propsOptions;let n=!1,R;if(t)for(let o in t){if(LE(o))continue;const i=t[o];let A;T&&Ie(T,A=ze(o))?!r||!r.includes(A)?E[A]=i:(R||(R={}))[A]=i:Us(e.emitsOptions,o)||(!(o in s)||i!==s[o])&&(s[o]=i,n=!0)}if(r){const o=Se(E),i=R||Ce;for(let A=0;A<r.length;A++){const O=r[A];E[O]=dT(T,o,O,i[O],e,!Ie(i,O))}}return n}function dT(e,t,E,s,T,r){const n=e[E];if(n!=null){const R=Ie(n,"default");if(R&&s===void 0){const o=n.default;if(n.type!==Function&&!n.skipFactory&&re(o)){const{propsDefaults:i}=T;if(E in i)s=i[E];else{const A=VE(T);s=i[E]=o.call(null,t),A()}}else s=o;T.ce&&T.ce._setProp(E,s)}n[0]&&(r&&!R?s=!1:n[1]&&(s===""||s===Kt(E))&&(s=!0))}return s}const qS=new WeakMap;function No(e,t,E=!1){const s=E?qS:t.propsCache,T=s.get(e);if(T)return T;const r=e.props,n={},R=[];let o=!1;if(!re(e)){const A=O=>{o=!0;const[N,l]=No(O,t,!0);ve(n,N),l&&R.push(...l)};!E&&t.mixins.length&&t.mixins.forEach(A),e.extends&&A(e.extends),e.mixins&&e.mixins.forEach(A)}if(!r&&!o)return ue(e)&&s.set(e,tE),tE;if(te(r))for(let A=0;A<r.length;A++){const O=ze(r[A]);xr(O)&&(n[O]=Ce)}else if(r)for(const A in r){const O=ze(A);if(xr(O)){const N=r[A],l=n[O]=te(N)||re(N)?{type:N}:ve({},N),C=l.type;let H=!1,Q=!0;if(te(C))for(let W=0;W<C.length;++W){const j=C[W],ee=re(j)&&j.name;if(ee==="Boolean"){H=!0;break}else ee==="String"&&(Q=!1)}else H=re(C)&&C.name==="Boolean";l[0]=H,l[1]=Q,(H||Ie(l,"default"))&&R.push(O)}}const i=[n,R];return ue(e)&&s.set(e,i),i}function xr(e){return e[0]!=="$"&&!LE(e)}const lo=e=>e[0]==="_"||e==="$stable",Tr=e=>te(e)?e.map(At):[At(e)],jS=(e,t,E)=>{if(t._n)return t;const s=Te((...T)=>Tr(t(...T)),E);return s._c=!1,s},_o=(e,t,E)=>{const s=e._ctx;for(const T in e){if(lo(T))continue;const r=e[T];if(re(r))t[T]=jS(T,r,s);else if(r!=null){const n=Tr(r);t[T]=()=>n}}},Co=(e,t)=>{const E=Tr(t);e.slots.default=()=>E},co=(e,t,E)=>{for(const s in t)(E||s!=="_")&&(e[s]=t[s])},QS=(e,t,E)=>{const s=e.slots=Oo();if(e.vnode.shapeFlag&32){const T=t._;T?(co(s,t,E),E&&dR(s,"_",T,!0)):_o(t,s)}else t&&Co(e,t)},ZS=(e,t,E)=>{const{vnode:s,slots:T}=e;let r=!0,n=Ce;if(s.shapeFlag&32){const R=t._;R?E&&R===1?r=!1:co(T,t,E):(r=!t.$stable,_o(t,T)),n=t}else t&&(Co(e,t),n={default:1});if(r)for(const R in T)!lo(R)&&n[R]==null&&delete T[R]},we=OO;function zS(e){return eO(e)}function eO(e,t){const E=fs();E.__VUE__=!0;const{insert:s,remove:T,patchProp:r,createElement:n,createText:R,createComment:o,setText:i,setElementText:A,parentNode:O,nextSibling:N,setScopeId:l=it,insertStaticContent:C}=e,H=(a,I,c,U=null,h=null,g=null,D=void 0,B=null,m=!!I.dynamicChildren)=>{if(a===I)return;a&&!lE(a,I)&&(U=mt(a),de(a,h,g,!0),a=null),I.patchFlag===-2&&(m=!1,I.dynamicChildren=null);const{type:f,ref:q,shapeFlag:F}=I;switch(f){case hs:Q(a,I,c,U);break;case dt:W(a,I,c,U);break;case qE:a==null&&j(I,c,U,D);break;case le:p(a,I,c,U,h,g,D,B,m);break;default:F&1?k(a,I,c,U,h,g,D,B,m):F&6?Y(a,I,c,U,h,g,D,B,m):(F&64||F&128)&&f.process(a,I,c,U,h,g,D,B,m,Ht)}q!=null&&h&&Rs(q,a&&a.ref,g,I||a,!I)},Q=(a,I,c,U)=>{if(a==null)s(I.el=R(I.children),c,U);else{const h=I.el=a.el;I.children!==a.children&&i(h,I.children)}},W=(a,I,c,U)=>{a==null?s(I.el=o(I.children||""),c,U):I.el=a.el},j=(a,I,c,U)=>{[a.el,a.anchor]=C(a.children,I,c,U,a.el,a.anchor)},ee=({el:a,anchor:I},c,U)=>{let h;for(;a&&a!==I;)h=N(a),s(a,c,U),a=h;s(I,c,U)},x=({el:a,anchor:I})=>{let c;for(;a&&a!==I;)c=N(a),T(a),a=c;T(I)},k=(a,I,c,U,h,g,D,B,m)=>{I.type==="svg"?D="svg":I.type==="math"&&(D="mathml"),a==null?ae(I,c,U,h,g,D,B,m):X(a,I,h,g,D,B,m)},ae=(a,I,c,U,h,g,D,B)=>{let m,f;const{props:q,shapeFlag:F,transition:K,dirs:Z}=a;if(m=a.el=n(a.type,g,q&&q.is,q),F&8?A(m,a.children):F&16&&$(a.children,m,null,U,h,$s(a,g),D,B),Z&&Bt(a,null,U,"created"),ie(m,a,a.scopeId,D,U),q){for(const b in q)b!=="value"&&!LE(b)&&r(m,b,null,q[b],g,U);"value"in q&&r(m,"value",null,q.value,g),(f=q.onVnodeBeforeMount)&&Rt(f,U,a)}Z&&Bt(a,null,U,"beforeMount");const M=tO(h,K);M&&K.beforeEnter(m),s(m,I,c),((f=q&&q.onVnodeMounted)||M||Z)&&we(()=>{f&&Rt(f,U,a),M&&K.enter(m),Z&&Bt(a,null,U,"mounted")},h)},ie=(a,I,c,U,h)=>{if(c&&l(a,c),U)for(let g=0;g<U.length;g++)l(a,U[g]);if(h){let g=h.subTree;if(I===g||Do(g.type)&&(g.ssContent===I||g.ssFallback===I)){const D=h.vnode;ie(a,D,D.scopeId,D.slotScopeIds,h.parent)}}},$=(a,I,c,U,h,g,D,B,m=0)=>{for(let f=m;f<a.length;f++){const q=a[f]=B?ut(a[f]):At(a[f]);H(null,q,I,c,U,h,g,D,B)}},X=(a,I,c,U,h,g,D)=>{const B=I.el=a.el;let{patchFlag:m,dynamicChildren:f,dirs:q}=I;m|=a.patchFlag&16;const F=a.props||Ce,K=I.props||Ce;let Z;if(c&&yt(c,!1),(Z=K.onVnodeBeforeUpdate)&&Rt(Z,c,I,a),q&&Bt(I,a,c,"beforeUpdate"),c&&yt(c,!0),(F.innerHTML&&K.innerHTML==null||F.textContent&&K.textContent==null)&&A(B,""),f?_(a.dynamicChildren,f,B,c,U,$s(I,h),g):D||w(a,I,B,null,c,U,$s(I,h),g,!1),m>0){if(m&16)d(B,F,K,c,h);else if(m&2&&F.class!==K.class&&r(B,"class",null,K.class,h),m&4&&r(B,"style",F.style,K.style,h),m&8){const M=I.dynamicProps;for(let b=0;b<M.length;b++){const V=M[b],se=F[V],Oe=K[V];(Oe!==se||V==="value")&&r(B,V,se,Oe,h,c)}}m&1&&a.children!==I.children&&A(B,I.children)}else!D&&f==null&&d(B,F,K,c,h);((Z=K.onVnodeUpdated)||q)&&we(()=>{Z&&Rt(Z,c,I,a),q&&Bt(I,a,c,"updated")},U)},_=(a,I,c,U,h,g,D)=>{for(let B=0;B<I.length;B++){const m=a[B],f=I[B],q=m.el&&(m.type===le||!lE(m,f)||m.shapeFlag&70)?O(m.el):c;H(m,f,q,null,U,h,g,D,!0)}},d=(a,I,c,U,h)=>{if(I!==c){if(I!==Ce)for(const g in I)!LE(g)&&!(g in c)&&r(a,g,I[g],null,h,U);for(const g in c){if(LE(g))continue;const D=c[g],B=I[g];D!==B&&g!=="value"&&r(a,g,B,D,h,U)}"value"in c&&r(a,"value",I.value,c.value,h)}},p=(a,I,c,U,h,g,D,B,m)=>{const f=I.el=a?a.el:R(""),q=I.anchor=a?a.anchor:R("");let{patchFlag:F,dynamicChildren:K,slotScopeIds:Z}=I;Z&&(B=B?B.concat(Z):Z),a==null?(s(f,c,U),s(q,c,U),$(I.children||[],c,q,h,g,D,B,m)):F>0&&F&64&&K&&a.dynamicChildren?(_(a.dynamicChildren,K,c,h,g,D,B),(I.key!=null||h&&I===h.subTree)&&rr(a,I,!0)):w(a,I,c,q,h,g,D,B,m)},Y=(a,I,c,U,h,g,D,B,m)=>{I.slotScopeIds=B,a==null?I.shapeFlag&512?h.ctx.activate(I,c,U,D,m):J(I,c,U,h,g,D,m):Me(a,I,m)},J=(a,I,c,U,h,g,D)=>{const B=a.component=LO(a,U,h);if(To(a)&&(B.ctx.renderer=Ht),uO(B,!1,D),B.asyncDep){if(h&&h.registerDep(B,L,D),!a.el){const m=B.subTree=v(dt);W(null,m,I,c)}}else L(B,a,I,c,h,g,D)},Me=(a,I,c)=>{const U=I.component=a.component;if(iO(a,I,c))if(U.asyncDep&&!U.asyncResolved){G(U,I,c);return}else U.next=I,U.update();else I.el=a.el,U.vnode=I},L=(a,I,c,U,h,g,D)=>{const B=()=>{if(a.isMounted){let{next:F,bu:K,u:Z,parent:M,vnode:b}=a;{const qe=Lo(a);if(qe){F&&(F.el=b.el,G(a,F,D)),qe.asyncDep.then(()=>{a.isUnmounted||B()});return}}let V=F,se;yt(a,!1),F?(F.el=b.el,G(a,F,D)):F=b,K&&Vs(K),(se=F.props&&F.props.onVnodeBeforeUpdate)&&Rt(se,M,F,b),yt(a,!0);const Oe=Wr(a),De=a.subTree;a.subTree=Oe,H(De,Oe,O(De.el),mt(De),a,h,g),F.el=Oe.el,V===null&&SO(a,Oe.el),Z&&we(Z,h),(se=F.props&&F.props.onVnodeUpdated)&&we(()=>Rt(se,M,F,b),h)}else{let F;const{el:K,props:Z}=I,{bm:M,m:b,parent:V,root:se,type:Oe}=a,De=TE(I);yt(a,!1),M&&Vs(M),!De&&(F=Z&&Z.onVnodeBeforeMount)&&Rt(F,V,I),yt(a,!0);{se.ce&&se.ce._injectChildStyle(Oe);const qe=a.subTree=Wr(a);H(null,qe,c,U,a,h,g),I.el=qe.el}if(b&&we(b,h),!De&&(F=Z&&Z.onVnodeMounted)){const qe=I;we(()=>Rt(F,V,qe),h)}(I.shapeFlag&256||V&&TE(V.vnode)&&V.vnode.shapeFlag&256)&&a.a&&we(a.a,h),a.isMounted=!0,I=c=U=null}};a.scope.on();const m=a.effect=new HR(B);a.scope.off();const f=a.update=m.run.bind(m),q=a.job=m.runIfDirty.bind(m);q.i=a,q.id=a.uid,m.scheduler=()=>er(q),yt(a,!0),f()},G=(a,I,c)=>{I.component=a;const U=a.vnode.props;a.vnode=I,a.next=null,kS(a,I.props,U,c),ZS(a,I.children,c),Mt(),mr(a),Ut()},w=(a,I,c,U,h,g,D,B,m=!1)=>{const f=a&&a.children,q=a?a.shapeFlag:0,F=I.children,{patchFlag:K,shapeFlag:Z}=I;if(K>0){if(K&128){Le(f,F,c,U,h,g,D,B,m);return}else if(K&256){oe(f,F,c,U,h,g,D,B,m);return}}Z&8?(q&16&&_t(f,h,g),F!==f&&A(c,F)):q&16?Z&16?Le(f,F,c,U,h,g,D,B,m):_t(f,h,g,!0):(q&8&&A(c,""),Z&16&&$(F,c,U,h,g,D,B,m))},oe=(a,I,c,U,h,g,D,B,m)=>{a=a||tE,I=I||tE;const f=a.length,q=I.length,F=Math.min(f,q);let K;for(K=0;K<F;K++){const Z=I[K]=m?ut(I[K]):At(I[K]);H(a[K],Z,c,null,h,g,D,B,m)}f>q?_t(a,h,g,!0,!1,F):$(I,c,U,h,g,D,B,m,F)},Le=(a,I,c,U,h,g,D,B,m)=>{let f=0;const q=I.length;let F=a.length-1,K=q-1;for(;f<=F&&f<=K;){const Z=a[f],M=I[f]=m?ut(I[f]):At(I[f]);if(lE(Z,M))H(Z,M,c,null,h,g,D,B,m);else break;f++}for(;f<=F&&f<=K;){const Z=a[F],M=I[K]=m?ut(I[K]):At(I[K]);if(lE(Z,M))H(Z,M,c,null,h,g,D,B,m);else break;F--,K--}if(f>F){if(f<=K){const Z=K+1,M=Z<q?I[Z].el:U;for(;f<=K;)H(null,I[f]=m?ut(I[f]):At(I[f]),c,M,h,g,D,B,m),f++}}else if(f>K)for(;f<=F;)de(a[f],h,g,!0),f++;else{const Z=f,M=f,b=new Map;for(f=M;f<=K;f++){const Ke=I[f]=m?ut(I[f]):At(I[f]);Ke.key!=null&&b.set(Ke.key,f)}let V,se=0;const Oe=K-M+1;let De=!1,qe=0;const bt=new Array(Oe);for(f=0;f<Oe;f++)bt[f]=0;for(f=Z;f<=F;f++){const Ke=a[f];if(se>=Oe){de(Ke,h,g,!0);continue}let nt;if(Ke.key!=null)nt=b.get(Ke.key);else for(V=M;V<=K;V++)if(bt[V-M]===0&&lE(Ke,I[V])){nt=V;break}nt===void 0?de(Ke,h,g,!0):(bt[nt-M]=f+1,nt>=qe?qe=nt:De=!0,H(Ke,I[nt],c,null,h,g,D,B,m),se++)}const Lr=De?EO(bt):tE;for(V=Lr.length-1,f=Oe-1;f>=0;f--){const Ke=M+f,nt=I[Ke],ur=Ke+1<q?I[Ke+1].el:U;bt[f]===0?H(null,nt,c,ur,h,g,D,B,m):De&&(V<0||f!==Lr[V]?Pe(nt,c,ur,2):V--)}}},Pe=(a,I,c,U,h=null)=>{const{el:g,type:D,transition:B,children:m,shapeFlag:f}=a;if(f&6){Pe(a.component.subTree,I,c,U);return}if(f&128){a.suspense.move(I,c,U);return}if(f&64){D.move(a,I,c,Ht);return}if(D===le){s(g,I,c);for(let F=0;F<m.length;F++)Pe(m[F],I,c,U);s(a.anchor,I,c);return}if(D===qE){ee(a,I,c);return}if(U!==2&&f&1&&B)if(U===0)B.beforeEnter(g),s(g,I,c),we(()=>B.enter(g),h);else{const{leave:F,delayLeave:K,afterLeave:Z}=B,M=()=>s(g,I,c),b=()=>{F(g,()=>{M(),Z&&Z()})};K?K(g,M,b):b()}else s(g,I,c)},de=(a,I,c,U=!1,h=!1)=>{const{type:g,props:D,ref:B,children:m,dynamicChildren:f,shapeFlag:q,patchFlag:F,dirs:K,cacheIndex:Z}=a;if(F===-2&&(h=!1),B!=null&&Rs(B,null,c,a,!0),Z!=null&&(I.renderCache[Z]=void 0),q&256){I.ctx.deactivate(a);return}const M=q&1&&K,b=!TE(a);let V;if(b&&(V=D&&D.onVnodeBeforeUnmount)&&Rt(V,I,a),q&6)ke(a.component,c,U);else{if(q&128){a.suspense.unmount(c,U);return}M&&Bt(a,null,I,"beforeUnmount"),q&64?a.type.remove(a,I,c,Ht,U):f&&!f.hasOnce&&(g!==le||F>0&&F&64)?_t(f,I,c,!1,!0):(g===le&&F&384||!h&&q&16)&&_t(m,I,c),U&>(a)}(b&&(V=D&&D.onVnodeUnmounted)||M)&&we(()=>{V&&Rt(V,I,a),M&&Bt(a,null,I,"unmounted")},c)},gt=a=>{const{type:I,el:c,anchor:U,transition:h}=a;if(I===le){Ve(c,U);return}if(I===qE){x(a);return}const g=()=>{T(c),h&&!h.persisted&&h.afterLeave&&h.afterLeave()};if(a.shapeFlag&1&&h&&!h.persisted){const{leave:D,delayLeave:B}=h,m=()=>D(c,g);B?B(a.el,g,m):m()}else g()},Ve=(a,I)=>{let c;for(;a!==I;)c=N(a),T(a),a=c;T(I)},ke=(a,I,c)=>{const{bum:U,scope:h,job:g,subTree:D,um:B,m,a:f}=a;wr(m),wr(f),U&&Vs(U),h.stop(),g&&(g.flags|=8,de(D,a,I,c)),B&&we(B,I),we(()=>{a.isUnmounted=!0},I),I&&I.pendingBranch&&!I.isUnmounted&&a.asyncDep&&!a.asyncResolved&&a.suspenseId===I.pendingId&&(I.deps--,I.deps===0&&I.resolve())},_t=(a,I,c,U=!1,h=!1,g=0)=>{for(let D=g;D<a.length;D++)de(a[D],I,c,U,h)},mt=a=>{if(a.shapeFlag&6)return mt(a.component.subTree);if(a.shapeFlag&128)return a.suspense.next();const I=N(a.anchor||a.el),c=I&&I[eo];return c?N(c):I};let Jt=!1;const wE=(a,I,c)=>{a==null?I._vnode&&de(I._vnode,null,null,!0):H(I._vnode||null,a,I,null,null,null,c),I._vnode=a,Jt||(Jt=!0,mr(),QR(),Jt=!1)},Ht={p:H,um:de,m:Pe,r:gt,mt:J,mc:$,pc:w,pbc:_,n:mt,o:e};return{render:wE,hydrate:void 0,createApp:XS(wE)}}function $s({type:e,props:t},E){return E==="svg"&&e==="foreignObject"||E==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:E}function yt({effect:e,job:t},E){E?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function tO(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function rr(e,t,E=!1){const s=e.children,T=t.children;if(te(s)&&te(T))for(let r=0;r<s.length;r++){const n=s[r];let R=T[r];R.shapeFlag&1&&!R.dynamicChildren&&((R.patchFlag<=0||R.patchFlag===32)&&(R=T[r]=ut(T[r]),R.el=n.el),!E&&R.patchFlag!==-2&&rr(n,R)),R.type===hs&&(R.el=n.el)}}function EO(e){const t=e.slice(),E=[0];let s,T,r,n,R;const o=e.length;for(s=0;s<o;s++){const i=e[s];if(i!==0){if(T=E[E.length-1],e[T]<i){t[s]=T,E.push(s);continue}for(r=0,n=E.length-1;r<n;)R=r+n>>1,e[E[R]]<i?r=R+1:n=R;i<e[E[r]]&&(r>0&&(t[s]=E[r-1]),E[r]=s)}}for(r=E.length,n=E[r-1];r-- >0;)E[r]=n,n=t[n];return E}function Lo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Lo(t)}function wr(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const sO=Symbol.for("v-scx"),TO=()=>PE(sO);function rE(e,t,E){return uo(e,t,E)}function uo(e,t,E=Ce){const{immediate:s,deep:T,flush:r,once:n}=E,R=ve({},E),o=t&&s||!t&&r!=="post";let i;if(yE){if(r==="sync"){const l=TO();i=l.__watcherHandles||(l.__watcherHandles=[])}else if(!o){const l=()=>{};return l.stop=it,l.resume=it,l.pause=it,l}}const A=He;R.call=(l,C,H)=>St(l,A,C,H);let O=!1;r==="post"?R.scheduler=l=>{we(l,A&&A.suspense)}:r!=="sync"&&(O=!0,R.scheduler=(l,C)=>{C?l():er(l)}),R.augmentJob=l=>{t&&(l.flags|=4),O&&(l.flags|=2,A&&(l.id=A.uid,l.i=A))};const N=_S(e,t,R);return yE&&(i?i.push(N):o&&N()),N}function rO(e,t,E){const s=this.proxy,T=pe(e)?e.includes(".")?fo(s,e):()=>s[e]:e.bind(s,s);let r;re(t)?r=t:(r=t.handler,E=t);const n=VE(this),R=uo(T,r.bind(s),E);return n(),R}function fo(e,t){const E=t.split(".");return()=>{let s=e;for(let T=0;T<E.length&&s;T++)s=s[E[T]];return s}}const nO=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ze(t)}Modifiers`]||e[`${Kt(t)}Modifiers`];function RO(e,t,...E){if(e.isUnmounted)return;const s=e.vnode.props||Ce;let T=E;const r=t.startsWith("update:"),n=r&&nO(s,t.slice(7));n&&(n.trim&&(T=E.map(A=>pe(A)?A.trim():A)),n.number&&(T=E.map(bi)));let R,o=s[R=Ys(t)]||s[R=Ys(ze(t))];!o&&r&&(o=s[R=Ys(Kt(t))]),o&&St(o,e,6,T);const i=s[R+"Once"];if(i){if(!e.emitted)e.emitted={};else if(e.emitted[R])return;e.emitted[R]=!0,St(i,e,6,T)}}function po(e,t,E=!1){const s=t.emitsCache,T=s.get(e);if(T!==void 0)return T;const r=e.emits;let n={},R=!1;if(!re(e)){const o=i=>{const A=po(i,t,!0);A&&(R=!0,ve(n,A))};!E&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return!r&&!R?(ue(e)&&s.set(e,null),null):(te(r)?r.forEach(o=>n[o]=null):ve(n,r),ue(e)&&s.set(e,n),n)}function Us(e,t){return!e||!Cs(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ie(e,t[0].toLowerCase()+t.slice(1))||Ie(e,Kt(t))||Ie(e,t))}function Wr(e){const{type:t,vnode:E,proxy:s,withProxy:T,propsOptions:[r],slots:n,attrs:R,emit:o,render:i,renderCache:A,props:O,data:N,setupState:l,ctx:C,inheritAttrs:H}=e,Q=ns(e);let W,j;try{if(E.shapeFlag&4){const x=T||s,k=x;W=At(i.call(k,x,A,O,l,N,C)),j=R}else{const x=t;W=At(x.length>1?x(O,{attrs:R,slots:n,emit:o}):x(O,null)),j=t.props?R:oO(R)}}catch(x){dE.length=0,Ps(x,e,1),W=v(dt)}let ee=W;if(j&&H!==!1){const x=Object.keys(j),{shapeFlag:k}=ee;x.length&&k&7&&(r&&x.some(wT)&&(j=AO(j,r)),ee=RE(ee,j,!1,!0))}return E.dirs&&(ee=RE(ee,null,!1,!0),ee.dirs=ee.dirs?ee.dirs.concat(E.dirs):E.dirs),E.transition&&tr(ee,E.transition),W=ee,ns(Q),W}const oO=e=>{let t;for(const E in e)(E==="class"||E==="style"||Cs(E))&&((t||(t={}))[E]=e[E]);return t},AO=(e,t)=>{const E={};for(const s in e)(!wT(s)||!(s.slice(9)in t))&&(E[s]=e[s]);return E};function iO(e,t,E){const{props:s,children:T,component:r}=e,{props:n,children:R,patchFlag:o}=t,i=r.emitsOptions;if(t.dirs||t.transition)return!0;if(E&&o>=0){if(o&1024)return!0;if(o&16)return s?Xr(s,n,i):!!n;if(o&8){const A=t.dynamicProps;for(let O=0;O<A.length;O++){const N=A[O];if(n[N]!==s[N]&&!Us(i,N))return!0}}}else return(T||R)&&(!R||!R.$stable)?!0:s===n?!1:s?n?Xr(s,n,i):!0:!!n;return!1}function Xr(e,t,E){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let T=0;T<s.length;T++){const r=s[T];if(t[r]!==e[r]&&!Us(E,r))return!0}return!1}function SO({vnode:e,parent:t},E){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=E,t=t.parent;else break}}const Do=e=>e.__isSuspense;function OO(e,t){t&&t.pendingBranch?te(e)?t.effects.push(...e):t.effects.push(e):LS(e)}const le=Symbol.for("v-fgt"),hs=Symbol.for("v-txt"),dt=Symbol.for("v-cmt"),qE=Symbol.for("v-stc"),dE=[];let $e=null;function P(e=!1){dE.push($e=e?null:[])}function aO(){dE.pop(),$e=dE[dE.length-1]||null}let bE=1;function Kr(e,t=!1){bE+=e,e<0&&$e&&t&&($e.hasOnce=!0)}function Po(e){return e.dynamicChildren=bE>0?$e||tE:null,aO(),bE>0&&$e&&$e.push(e),e}function y(e,t,E,s,T,r){return Po(S(e,t,E,s,T,r,!0))}function Ae(e,t,E,s,T){return Po(v(e,t,E,s,T,!0))}function BE(e){return e?e.__v_isVNode===!0:!1}function lE(e,t){return e.type===t.type&&e.key===t.key}const Mo=({key:e})=>e??null,jE=({ref:e,ref_key:t,ref_for:E})=>(typeof e=="number"&&(e=""+e),e!=null?pe(e)||fe(e)||re(e)?{i:Fe,r:e,k:t,f:!!E}:e:null);function S(e,t=null,E=null,s=0,T=null,r=e===le?0:1,n=!1,R=!1){const o={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Mo(t),ref:t&&jE(t),scopeId:zR,slotScopeIds:null,children:E,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:T,dynamicChildren:null,appContext:null,ctx:Fe};return R?(nr(o,E),r&128&&e.normalize(o)):E&&(o.shapeFlag|=pe(E)?8:16),bE>0&&!n&&$e&&(o.patchFlag>0||r&6)&&o.patchFlag!==32&&$e.push(o),o}const v=IO;function IO(e,t=null,E=null,s=0,T=null,r=!1){if((!e||e===BS)&&(e=dt),BE(e)){const R=RE(e,t,!0);return E&&nr(R,E),bE>0&&!r&&$e&&(R.shapeFlag&6?$e[$e.indexOf(e)]=R:$e.push(R)),R.patchFlag=-2,R}if(dO(e)&&(e=e.__vccOpts),t){t=NO(t);let{class:R,style:o}=t;R&&!pe(R)&&(t.class=ge(R)),ue(o)&&(QT(o)&&!te(o)&&(o=ve({},o)),t.style=ps(o))}const n=pe(e)?1:Do(e)?128:uS(e)?64:ue(e)?4:re(e)?2:0;return S(e,t,E,s,T,n,r,!0)}function NO(e){return e?QT(e)||ao(e)?ve({},e):e:null}function RE(e,t,E=!1,s=!1){const{props:T,ref:r,patchFlag:n,children:R,transition:o}=e,i=t?_O(T||{},t):T,A={__v_isVNode:!0,__v_skip:!0,type:e.type,props:i,key:i&&Mo(i),ref:t&&t.ref?E&&r?te(r)?r.concat(jE(t)):[r,jE(t)]:jE(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:R,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==le?n===-1?16:n|16:n,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:o,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&RE(e.ssContent),ssFallback:e.ssFallback&&RE(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return o&&s&&tr(A,o.clone(A)),A}function ye(e=" ",t=0){return v(hs,null,e,t)}function lO(e,t){const E=v(qE,null,e);return E.staticCount=t,E}function Ee(e="",t=!1){return t?(P(),Ae(dt,null,e)):v(dt,null,e)}function At(e){return e==null||typeof e=="boolean"?v(dt):te(e)?v(le,null,e.slice()):BE(e)?ut(e):v(hs,null,String(e))}function ut(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:RE(e)}function nr(e,t){let E=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(te(t))E=16;else if(typeof t=="object")if(s&65){const T=t.default;T&&(T._c&&(T._d=!1),nr(e,T()),T._c&&(T._d=!0));return}else{E=32;const T=t._;!T&&!ao(t)?t._ctx=Fe:T===3&&Fe&&(Fe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else re(t)?(t={default:t,_ctx:Fe},E=32):(t=String(t),s&64?(E=16,t=[ye(t)]):E=8);e.children=t,e.shapeFlag|=E}function _O(...e){const t={};for(let E=0;E<e.length;E++){const s=e[E];for(const T in s)if(T==="class")t.class!==s.class&&(t.class=ge([t.class,s.class]));else if(T==="style")t.style=ps([t.style,s.style]);else if(Cs(T)){const r=t[T],n=s[T];n&&r!==n&&!(te(r)&&r.includes(n))&&(t[T]=r?[].concat(r,n):n)}else T!==""&&(t[T]=s[T])}return t}function Rt(e,t,E,s=null){St(e,t,7,[E,s])}const CO=io();let cO=0;function LO(e,t,E){const s=e.type,T=(t?t.appContext:e.appContext)||CO,r={uid:cO++,vnode:e,type:s,parent:t,appContext:T,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new GR(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(T.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:No(s,T),emitsOptions:po(s,T),emit:null,emitted:null,propsDefaults:Ce,inheritAttrs:s.inheritAttrs,ctx:Ce,data:Ce,props:Ce,attrs:Ce,slots:Ce,refs:Ce,setupState:Ce,setupContext:null,suspense:E,suspenseId:E?E.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 r.ctx={_:r},r.root=t?t.root:r,r.emit=RO.bind(null,r),e.ce&&e.ce(r),r}let He=null,As,MT;{const e=fs(),t=(E,s)=>{let T;return(T=e[E])||(T=e[E]=[]),T.push(s),r=>{T.length>1?T.forEach(n=>n(r)):T[0](r)}};As=t("__VUE_INSTANCE_SETTERS__",E=>He=E),MT=t("__VUE_SSR_SETTERS__",E=>yE=E)}const VE=e=>{const t=He;return As(e),e.scope.on(),()=>{e.scope.off(),As(t)}},$r=()=>{He&&He.scope.off(),As(null)};function Uo(e){return e.vnode.shapeFlag&4}let yE=!1;function uO(e,t=!1,E=!1){t&&MT(t);const{props:s,children:T}=e.vnode,r=Uo(e);JS(e,s,r,t),QS(e,T,E);const n=r?fO(e,t):void 0;return t&&MT(!1),n}function fO(e,t){const E=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,FS);const{setup:s}=E;if(s){Mt();const T=e.setupContext=s.length>1?DO(e):null,r=VE(e),n=YE(s,e,0,[e.props,T]),R=pR(n);if(Ut(),r(),(R||e.sp)&&!TE(e)&&so(e),R){if(n.then($r,$r),t)return n.then(o=>{Jr(e,o)}).catch(o=>{Ps(o,e,0)});e.asyncDep=n}else Jr(e,n)}else ho(e)}function Jr(e,t,E){re(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ue(t)&&(e.setupState=kR(t)),ho(e)}function ho(e,t,E){const s=e.type;e.render||(e.render=s.render||it);{const T=VE(e);Mt();try{vS(e)}finally{Ut(),T()}}}const pO={get(e,t){return be(e,"get",""),e[t]}};function DO(e){const t=E=>{e.exposed=E||{}};return{attrs:new Proxy(e.attrs,pO),slots:e.slots,emit:e.emit,expose:t}}function Rr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(kR(ZT(e.exposed)),{get(t,E){if(E in t)return t[E];if(E in DE)return DE[E](e)},has(t,E){return E in t||E in DE}})):e.proxy}function PO(e,t=!0){return re(e)?e.displayName||e.name:e.name||t&&e.__name}function dO(e){return re(e)&&"__vccOpts"in e}const tt=(e,t)=>NS(e,t,yE);function FE(e,t,E){const s=arguments.length;return s===2?ue(t)&&!te(t)?BE(t)?v(e,null,[t]):v(e,t):v(e,null,t):(s>3?E=Array.prototype.slice.call(arguments,2):s===3&&BE(E)&&(E=[E]),v(e,t,E))}const MO="3.5.13";/**
|
16
16
|
* @vue/runtime-dom v3.5.13
|
17
17
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
18
18
|
* @license MIT
|
19
|
-
**/let UT;const kr=typeof window<"u"&&window.trustedTypes;if(kr)try{UT=kr.createPolicy("vue",{createHTML:e=>e})}catch{}const Go=UT?e=>UT.createHTML(e):e=>e,UO="http://www.w3.org/2000/svg",hO="http://www.w3.org/1998/Math/MathML",
|
19
|
+
**/let UT;const kr=typeof window<"u"&&window.trustedTypes;if(kr)try{UT=kr.createPolicy("vue",{createHTML:e=>e})}catch{}const Go=UT?e=>UT.createHTML(e):e=>e,UO="http://www.w3.org/2000/svg",hO="http://www.w3.org/1998/Math/MathML",at=typeof document<"u"?document:null,qr=at&&at.createElement("template"),GO={insert:(e,t,E)=>{t.insertBefore(e,E||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,E,s)=>{const T=t==="svg"?at.createElementNS(UO,e):t==="mathml"?at.createElementNS(hO,e):E?at.createElement(e,{is:E}):at.createElement(e);return e==="select"&&s&&s.multiple!=null&&T.setAttribute("multiple",s.multiple),T},createText:e=>at.createTextNode(e),createComment:e=>at.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>at.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,E,s,T,r){const n=E?E.previousSibling:t.lastChild;if(T&&(T===r||T.nextSibling))for(;t.insertBefore(T.cloneNode(!0),E),!(T===r||!(T=T.nextSibling)););else{qr.innerHTML=Go(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const R=qr.content;if(s==="svg"||s==="mathml"){const o=R.firstChild;for(;o.firstChild;)R.appendChild(o.firstChild);R.removeChild(o)}t.insertBefore(R,E)}return[n?n.nextSibling:t.firstChild,E?E.previousSibling:t.lastChild]}},gO=Symbol("_vtc");function mO(e,t,E){const s=e[gO];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):E?e.setAttribute("class",t):e.className=t}const jr=Symbol("_vod"),HO=Symbol("_vsh"),bO=Symbol(""),BO=/(^|;)\s*display\s*:/;function yO(e,t,E){const s=e.style,T=pe(E);let r=!1;if(E&&!T){if(t)if(pe(t))for(const n of t.split(";")){const R=n.slice(0,n.indexOf(":")).trim();E[R]==null&&QE(s,R,"")}else for(const n in t)E[n]==null&&QE(s,n,"");for(const n in E)n==="display"&&(r=!0),QE(s,n,E[n])}else if(T){if(t!==E){const n=s[bO];n&&(E+=";"+n),s.cssText=E,r=BO.test(E)}}else t&&e.removeAttribute("style");jr in e&&(e[jr]=r?s.display:"",e[HO]&&(s.display="none"))}const Qr=/\s*!important$/;function QE(e,t,E){if(te(E))E.forEach(s=>QE(e,t,s));else if(E==null&&(E=""),t.startsWith("--"))e.setProperty(t,E);else{const s=FO(e,t);Qr.test(E)?e.setProperty(Kt(s),E.replace(Qr,""),"important"):e[s]=E}}const Zr=["Webkit","Moz","ms"],Js={};function FO(e,t){const E=Js[t];if(E)return E;let s=ze(t);if(s!=="filter"&&s in e)return Js[t]=s;s=us(s);for(let T=0;T<Zr.length;T++){const r=Zr[T]+s;if(r in e)return Js[t]=r}return t}const zr="http://www.w3.org/1999/xlink";function en(e,t,E,s,T,r=Vi(t)){s&&t.startsWith("xlink:")?E==null?e.removeAttributeNS(zr,t.slice(6,t.length)):e.setAttributeNS(zr,t,E):E==null||r&&!MR(E)?e.removeAttribute(t):e.setAttribute(t,r?"":Nt(E)?String(E):E)}function tn(e,t,E,s,T){if(t==="innerHTML"||t==="textContent"){E!=null&&(e[t]=t==="innerHTML"?Go(E):E);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const R=r==="OPTION"?e.getAttribute("value")||"":e.value,o=E==null?e.type==="checkbox"?"on":"":String(E);(R!==o||!("_value"in e))&&(e.value=o),E==null&&e.removeAttribute(t),e._value=E;return}let n=!1;if(E===""||E==null){const R=typeof e[t];R==="boolean"?E=MR(E):E==null&&R==="string"?(E="",n=!0):R==="number"&&(E=0,n=!0)}try{e[t]=E}catch{}n&&e.removeAttribute(T||t)}function vO(e,t,E,s){e.addEventListener(t,E,s)}function YO(e,t,E,s){e.removeEventListener(t,E,s)}const En=Symbol("_vei");function VO(e,t,E,s,T=null){const r=e[En]||(e[En]={}),n=r[t];if(s&&n)n.value=s;else{const[R,o]=xO(t);if(s){const i=r[t]=XO(s,T);vO(e,R,i,o)}else n&&(YO(e,R,n,o),r[t]=void 0)}}const sn=/(?:Once|Passive|Capture)$/;function xO(e){let t;if(sn.test(e)){t={};let s;for(;s=e.match(sn);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Kt(e.slice(2)),t]}let ks=0;const wO=Promise.resolve(),WO=()=>ks||(wO.then(()=>ks=0),ks=Date.now());function XO(e,t){const E=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=E.attached)return;St(KO(s,E.value),t,5,[s])};return E.value=e,E.attached=WO(),E}function KO(e,t){if(te(t)){const E=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{E.call(e),e._stopped=!0},t.map(s=>T=>!T._stopped&&s&&s(T))}else return t}const Tn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,$O=(e,t,E,s,T,r)=>{const n=T==="svg";t==="class"?mO(e,s,n):t==="style"?yO(e,E,s):Cs(t)?wT(t)||VO(e,t,E,s,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):JO(e,t,s,n))?(tn(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&en(e,t,s,n,r,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!pe(s))?tn(e,ze(t),s,r,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),en(e,t,s,n))};function JO(e,t,E,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Tn(t)&&re(E));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const T=e.tagName;if(T==="IMG"||T==="VIDEO"||T==="CANVAS"||T==="SOURCE")return!1}return Tn(t)&&pe(E)?!1:t in e}const kO=ve({patchProp:$O},GO);let rn;function qO(){return rn||(rn=zS(kO))}const jO=(...e)=>{const t=qO().createApp(...e),{mount:E}=t;return t.mount=s=>{const T=ZO(s);if(!T)return;const r=t._component;!re(r)&&!r.render&&!r.template&&(r.template=T.innerHTML),T.nodeType===1&&(T.textContent="");const n=E(T,!1,QO(T));return T instanceof Element&&(T.removeAttribute("v-cloak"),T.setAttribute("data-v-app","")),n},t};function QO(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ZO(e){return pe(e)?document.querySelector(e):e}var nn=Ne({props:{code:{type:String,required:!0},language:{type:String,default:""},autodetect:{type:Boolean,default:!0},ignoreIllegals:{type:Boolean,default:!0}},setup:function(e){var t=Qe(e.language);rE(function(){return e.language},function(T){t.value=T});var E=tt(function(){return e.autodetect||!t.value}),s=tt(function(){return!E.value&&!cE.getLanguage(t.value)});return{className:tt(function(){return s.value?"":"hljs "+t.value}),highlightedCode:tt(function(){var T;if(s.value)return console.warn('The language "'+t.value+'" you specified could not be found.'),e.code.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'");if(E.value){var r=cE.highlightAuto(e.code);return t.value=(T=r.language)!==null&&T!==void 0?T:"",r.value}return(r=cE.highlight(e.code,{language:t.value,ignoreIllegals:e.ignoreIllegals})).value})}},render:function(){return FE("pre",{},[FE("code",{class:this.className,innerHTML:this.highlightedCode})])}}),zO={install:function(e){e.component("highlightjs",nn)},component:nn};/*!
|
20
20
|
* pinia v2.3.0
|
21
21
|
* (c) 2024 Eduardo San Martin Morote
|
22
22
|
* @license MIT
|
23
|
-
*/let go;const Gs=e=>go=e,mo=Symbol();function hT(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var ME;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(ME||(ME={}));function tI(){const e=gR(!0),t=e.run(()=>Qe({}));let E=[],s=[];const T=ZT({install(r){Gs(T),T._a=r,r.provide(mo,T),r.config.globalProperties.$pinia=T,s.forEach(n=>E.push(n)),s=[]},use(r){return!this._a&&!eI?s.push(r):E.push(r),this},_p:E,_a:null,_e:e,_s:new Map,state:t});return T}const Ho=()=>{};function Rn(e,t,E,s=Ho){e.push(t);const T=()=>{const r=e.indexOf(t);r>-1&&(e.splice(r,1),s())};return!E&&mR()&&xi(T),T}function jt(e,...t){e.slice().forEach(E=>{E(...t)})}const EI=e=>e(),on=Symbol(),qs=Symbol();function GT(e,t){e instanceof Map&&t instanceof Map?t.forEach((E,s)=>e.set(s,E)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const E in t){if(!t.hasOwnProperty(E))continue;const s=t[E],T=e[E];hT(T)&&hT(s)&&e.hasOwnProperty(E)&&!pe(s)&&!Pt(s)?e[E]=GT(T,s):e[E]=s}return e}const sI=Symbol();function TI(e){return!hT(e)||!e.hasOwnProperty(sI)}const{assign:Lt}=Object;function rI(e){return!!(pe(e)&&e.effect)}function nI(e,t,E,s){const{state:T,actions:r,getters:n}=t,R=E.state.value[e];let o;function i(){R||(E.state.value[e]=T?T():{});const A=SS(E.state.value[e]);return Lt(A,r,Object.keys(n||{}).reduce((O,N)=>(O[N]=ZT(tt(()=>{Gs(E);const l=E._s.get(e);return n[N].call(l,l)})),O),{}))}return o=Bo(e,i,t,E,s,!0),o}function Bo(e,t,E={},s,T,r){let n;const R=Lt({actions:{}},E),o={deep:!0};let i,A,O=[],N=[],l;const C=s.state.value[e];!r&&!C&&(s.state.value[e]={}),Qe({});let H;function Q($){let X;i=A=!1,typeof $=="function"?($(s.state.value[e]),X={type:ME.patchFunction,storeId:e,events:l}):(GT(s.state.value[e],$),X={type:ME.patchObject,payload:$,storeId:e,events:l});const _=H=Symbol();zT().then(()=>{H===_&&(i=!0)}),A=!0,jt(O,X,s.state.value[e])}const W=r?function(){const{state:X}=E,_=X?X():{};this.$patch(d=>{Lt(d,_)})}:Ho;function j(){n.stop(),O=[],N=[],s._s.delete(e)}const ee=($,X="")=>{if(on in $)return $[qs]=X,$;const _=function(){Gs(s);const d=Array.from(arguments),f=[],Y=[];function J(G){f.push(G)}function Me(G){Y.push(G)}jt(N,{args:d,name:_[qs],store:k,after:J,onError:Me});let c;try{c=$.apply(this&&this.$id===e?this:k,d)}catch(G){throw jt(Y,G),G}return c instanceof Promise?c.then(G=>(jt(f,G),G)).catch(G=>(jt(Y,G),Promise.reject(G))):(jt(f,c),c)};return _[on]=!0,_[qs]=X,_},x={_p:s,$id:e,$onAction:Rn.bind(null,N),$patch:Q,$reset:W,$subscribe($,X={}){const _=Rn(O,$,X.detached,()=>d()),d=n.run(()=>rE(()=>s.state.value[e],f=>{(X.flush==="sync"?A:i)&&$({storeId:e,type:ME.direct,events:l},f)},Lt({},o,X)));return _},$dispose:j},k=rt(x);s._s.set(e,k);const ie=(s._a&&s._a.runWithContext||EI)(()=>s._e.run(()=>(n=gR()).run(()=>t({action:ee}))));for(const $ in ie){const X=ie[$];if(pe(X)&&!rI(X)||Pt(X))r||(C&&TI(X)&&(pe(X)?X.value=C[$]:GT(X,C[$])),s.state.value[e][$]=X);else if(typeof X=="function"){const _=ee(X,$);ie[$]=_,R.actions[$]=X}}return Lt(k,ie),Lt(Se(k),ie),Object.defineProperty(k,"$state",{get:()=>s.state.value[e],set:$=>{Q(X=>{Lt(X,$)})}}),s._p.forEach($=>{Lt(k,n.run(()=>$({store:k,app:s._a,pinia:s,options:R})))}),C&&r&&E.hydrate&&E.hydrate(k.$state,C),i=!0,A=!0,k}/*! #__NO_SIDE_EFFECTS__ */function bo(e,t,E){let s,T;const r=typeof t=="function";typeof e=="string"?(s=e,T=r?E:t):(T=e,s=e.id);function n(R,o){const i=$S();return R=R||(i?PE(mo,null):null),R&&Gs(R),R=go,R._s.has(s)||(r?Bo(s,t,T,R):nI(s,T,R)),R._s.get(s)}return n.$id=s,n}function RI(e,t){return gT(e,e.childNodes,t)}function gT(e,t,{mode:E="open",delegatesFocus:s=!1}={mode:"open"}){try{const T=e.shadowRoot;if(T!=null){console.error("[shadow] Attach shadow multiple times",e,t,T);return}else{const r=e.attachShadow({mode:E,delegatesFocus:s});return t&&oI(r,t),r}}catch(T){console.error("[shadow] make shadow-root failed",e,t),console.error(T)}}function oI(e,t){const E=document.createDocumentFragment();for(const s of t)E.appendChild(s);e.appendChild(E)}const AI=document.createDocumentFragment(),is=Ne({props:{media:String,nonce:String},setup(e,{slots:t}){return()=>{var E;return vE("style",{media:e.media,nonce:e.nonce},(E=t.default)==null?void 0:E.call(t))}}}),Ss=iI()(Ne({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:t,expose:E,emit:s}){const T=Qe(!1),r=Qe(),n=Qe(),R=Qe(),o=tt(()=>R.value??AI),i=rt({shadow_root:R});return E(i),no(()=>{T.value=e.abstract}),Ms(()=>{var A;try{T.value?n.value.parentElement.shadowRoot?R.value=n.value.parentElement.shadowRoot:R.value=gT(n.value.parentElement,void 0,{mode:e.mode,delegatesFocus:e.delegatesFocus}):R.value=gT(r.value,void 0,{mode:e.mode,delegatesFocus:e.delegatesFocus}),(A=R.value)==null||A.styleSheets}catch(O){console.error(O),s("error",O)}}),rE([R,()=>e.adoptedStyleSheets],([A,O])=>{if(!(!A||!O))try{A.adoptedStyleSheets=O}catch(N){console.error(N),s("error",N)}}),()=>{var O;const A=vE(fS,{ref:n,to:o.value},[(O=t.default)==null?void 0:O.call(t)]);return T.value?A:vE(e.tag,{ref:r},A)}},install:yo,Style:is}));function iI(){return e=>e}function yo(e){e.component("shadow-root",Ss),e.directive("shadow",{beforeMount(t){console.warn("[VueShadowDom] Deprecated v-shadow directive, use <shadow-root> component"),RI(t)}})}var SI={ShadowRoot:Ss,ShadowStyle:is,shadow_root:Ss,shadow_style:is,install:yo},mT={exports:{}};(function(e,t){(function(E,s){s(t)})(eE,function(E){var s={logger:self.console,WebSocket:self.WebSocket},T={log:function(){if(this.enabled){for(var d,f=arguments.length,Y=Array(f),J=0;J<f;J++)Y[J]=arguments[J];Y.push(Date.now()),(d=s.logger).log.apply(d,["[ActionCable]"].concat(Y))}}},r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},n=function(_,d){if(!(_ instanceof d))throw new TypeError("Cannot call a class as a function")},R=function(){function _(d,f){for(var Y=0;Y<f.length;Y++){var J=f[Y];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(d,J.key,J)}}return function(d,f,Y){return f&&_(d.prototype,f),Y&&_(d,Y),d}}(),o=function(){return new Date().getTime()},i=function(d){return(o()-d)/1e3},A=function(d,f,Y){return Math.max(f,Math.min(Y,d))},O=function(){function _(d){n(this,_),this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=d,this.reconnectAttempts=0}return _.prototype.start=function(){this.isRunning()||(this.startedAt=o(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),T.log("ConnectionMonitor started. pollInterval = "+this.getPollInterval()+" ms"))},_.prototype.stop=function(){this.isRunning()&&(this.stoppedAt=o(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),T.log("ConnectionMonitor stopped"))},_.prototype.isRunning=function(){return this.startedAt&&!this.stoppedAt},_.prototype.recordPing=function(){this.pingedAt=o()},_.prototype.recordConnect=function(){this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,T.log("ConnectionMonitor recorded connect")},_.prototype.recordDisconnect=function(){this.disconnectedAt=o(),T.log("ConnectionMonitor recorded disconnect")},_.prototype.startPolling=function(){this.stopPolling(),this.poll()},_.prototype.stopPolling=function(){clearTimeout(this.pollTimeout)},_.prototype.poll=function(){var f=this;this.pollTimeout=setTimeout(function(){f.reconnectIfStale(),f.poll()},this.getPollInterval())},_.prototype.getPollInterval=function(){var f=this.constructor.pollInterval,Y=f.min,J=f.max,Me=f.multiplier,c=Me*Math.log(this.reconnectAttempts+1);return Math.round(A(c,Y,J)*1e3)},_.prototype.reconnectIfStale=function(){this.connectionIsStale()&&(T.log("ConnectionMonitor detected stale connection. reconnectAttempts = "+this.reconnectAttempts+", pollInterval = "+this.getPollInterval()+" ms, time disconnected = "+i(this.disconnectedAt)+" s, stale threshold = "+this.constructor.staleThreshold+" s"),this.reconnectAttempts++,this.disconnectedRecently()?T.log("ConnectionMonitor skipping reopening recent disconnect"):(T.log("ConnectionMonitor reopening"),this.connection.reopen()))},_.prototype.connectionIsStale=function(){return i(this.pingedAt?this.pingedAt:this.startedAt)>this.constructor.staleThreshold},_.prototype.disconnectedRecently=function(){return this.disconnectedAt&&i(this.disconnectedAt)<this.constructor.staleThreshold},_.prototype.visibilityDidChange=function(){var f=this;document.visibilityState==="visible"&&setTimeout(function(){(f.connectionIsStale()||!f.connection.isOpen())&&(T.log("ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = "+document.visibilityState),f.connection.reopen())},200)},_}();O.pollInterval={min:3,max:30,multiplier:5},O.staleThreshold=6;var N={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=N.message_types,C=N.protocols,H=C.slice(0,C.length-1),Q=[].indexOf,W=function(){function _(d){n(this,_),this.open=this.open.bind(this),this.consumer=d,this.subscriptions=this.consumer.subscriptions,this.monitor=new O(this),this.disconnected=!0}return _.prototype.send=function(f){return this.isOpen()?(this.webSocket.send(JSON.stringify(f)),!0):!1},_.prototype.open=function(){return this.isActive()?(T.log("Attempted to open WebSocket, but existing socket is "+this.getState()),!1):(T.log("Opening WebSocket, current state is "+this.getState()+", subprotocols: "+C),this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new s.WebSocket(this.consumer.url,C),this.installEventHandlers(),this.monitor.start(),!0)},_.prototype.close=function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{allowReconnect:!0},Y=f.allowReconnect;if(Y||this.monitor.stop(),this.isActive())return this.webSocket.close()},_.prototype.reopen=function(){if(T.log("Reopening WebSocket, current state is "+this.getState()),this.isActive())try{return this.close()}catch(f){T.log("Failed to reopen WebSocket",f)}finally{T.log("Reopening WebSocket in "+this.constructor.reopenDelay+"ms"),setTimeout(this.open,this.constructor.reopenDelay)}else return this.open()},_.prototype.getProtocol=function(){if(this.webSocket)return this.webSocket.protocol},_.prototype.isOpen=function(){return this.isState("open")},_.prototype.isActive=function(){return this.isState("open","connecting")},_.prototype.isProtocolSupported=function(){return Q.call(H,this.getProtocol())>=0},_.prototype.isState=function(){for(var f=arguments.length,Y=Array(f),J=0;J<f;J++)Y[J]=arguments[J];return Q.call(Y,this.getState())>=0},_.prototype.getState=function(){if(this.webSocket){for(var f in s.WebSocket)if(s.WebSocket[f]===this.webSocket.readyState)return f.toLowerCase()}return null},_.prototype.installEventHandlers=function(){for(var f in this.events){var Y=this.events[f].bind(this);this.webSocket["on"+f]=Y}},_.prototype.uninstallEventHandlers=function(){for(var f in this.events)this.webSocket["on"+f]=function(){}},_}();W.reopenDelay=500,W.prototype.events={message:function(d){if(this.isProtocolSupported()){var f=JSON.parse(d.data),Y=f.identifier,J=f.message,Me=f.reason,c=f.reconnect,G=f.type;switch(G){case l.welcome:return this.monitor.recordConnect(),this.subscriptions.reload();case l.disconnect:return T.log("Disconnecting. Reason: "+Me),this.close({allowReconnect:c});case l.ping:return this.monitor.recordPing();case l.confirmation:return this.subscriptions.confirmSubscription(Y),this.subscriptions.notify(Y,"connected");case l.rejection:return this.subscriptions.reject(Y);default:return this.subscriptions.notify(Y,"received",J)}}},open:function(){if(T.log("WebSocket onopen event, using '"+this.getProtocol()+"' subprotocol"),this.disconnected=!1,!this.isProtocolSupported())return T.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close:function(d){if(T.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error:function(){T.log("WebSocket onerror event")}};var j=function(d,f){if(f!=null)for(var Y in f){var J=f[Y];d[Y]=J}return d},ee=function(){function _(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=arguments[2];n(this,_),this.consumer=d,this.identifier=JSON.stringify(f),j(this,Y)}return _.prototype.perform=function(f){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Y.action=f,this.send(Y)},_.prototype.send=function(f){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(f)})},_.prototype.unsubscribe=function(){return this.consumer.subscriptions.remove(this)},_}(),x=function(){function _(d){n(this,_),this.subscriptions=d,this.pendingSubscriptions=[]}return _.prototype.guarantee=function(f){this.pendingSubscriptions.indexOf(f)==-1?(T.log("SubscriptionGuarantor guaranteeing "+f.identifier),this.pendingSubscriptions.push(f)):T.log("SubscriptionGuarantor already guaranteeing "+f.identifier),this.startGuaranteeing()},_.prototype.forget=function(f){T.log("SubscriptionGuarantor forgetting "+f.identifier),this.pendingSubscriptions=this.pendingSubscriptions.filter(function(Y){return Y!==f})},_.prototype.startGuaranteeing=function(){this.stopGuaranteeing(),this.retrySubscribing()},_.prototype.stopGuaranteeing=function(){clearTimeout(this.retryTimeout)},_.prototype.retrySubscribing=function(){var f=this;this.retryTimeout=setTimeout(function(){f.subscriptions&&typeof f.subscriptions.subscribe=="function"&&f.pendingSubscriptions.map(function(Y){T.log("SubscriptionGuarantor resubscribing "+Y.identifier),f.subscriptions.subscribe(Y)})},500)},_}(),k=function(){function _(d){n(this,_),this.consumer=d,this.guarantor=new x(this),this.subscriptions=[]}return _.prototype.create=function(f,Y){var J=f,Me=(typeof J>"u"?"undefined":r(J))==="object"?J:{channel:J},c=new ee(this.consumer,Me,Y);return this.add(c)},_.prototype.add=function(f){return this.subscriptions.push(f),this.consumer.ensureActiveConnection(),this.notify(f,"initialized"),this.subscribe(f),f},_.prototype.remove=function(f){return this.forget(f),this.findAll(f.identifier).length||this.sendCommand(f,"unsubscribe"),f},_.prototype.reject=function(f){var Y=this;return this.findAll(f).map(function(J){return Y.forget(J),Y.notify(J,"rejected"),J})},_.prototype.forget=function(f){return this.guarantor.forget(f),this.subscriptions=this.subscriptions.filter(function(Y){return Y!==f}),f},_.prototype.findAll=function(f){return this.subscriptions.filter(function(Y){return Y.identifier===f})},_.prototype.reload=function(){var f=this;return this.subscriptions.map(function(Y){return f.subscribe(Y)})},_.prototype.notifyAll=function(f){for(var Y=this,J=arguments.length,Me=Array(J>1?J-1:0),c=1;c<J;c++)Me[c-1]=arguments[c];return this.subscriptions.map(function(G){return Y.notify.apply(Y,[G,f].concat(Me))})},_.prototype.notify=function(f,Y){for(var J=arguments.length,Me=Array(J>2?J-2:0),c=2;c<J;c++)Me[c-2]=arguments[c];var G=void 0;return typeof f=="string"?G=this.findAll(f):G=[f],G.map(function(w){return typeof w[Y]=="function"?w[Y].apply(w,Me):void 0})},_.prototype.subscribe=function(f){this.sendCommand(f,"subscribe")&&this.guarantor.guarantee(f)},_.prototype.confirmSubscription=function(f){var Y=this;T.log("Subscription confirmed "+f),this.findAll(f).map(function(J){return Y.guarantor.forget(J)})},_.prototype.sendCommand=function(f,Y){var J=f.identifier;return this.consumer.send({command:Y,identifier:J})},_}(),Ie=function(){function _(d){n(this,_),this._url=d,this.subscriptions=new k(this),this.connection=new W(this)}return _.prototype.send=function(f){return this.connection.send(f)},_.prototype.connect=function(){return this.connection.open()},_.prototype.disconnect=function(){return this.connection.close({allowReconnect:!1})},_.prototype.ensureActiveConnection=function(){if(!this.connection.isActive())return this.connection.open()},R(_,[{key:"url",get:function(){return ie(this._url)}}]),_}();function ie(_){if(typeof _=="function"&&(_=_()),_&&!/^wss?:/i.test(_)){var d=document.createElement("a");return d.href=_,d.href=d.href,d.protocol=d.protocol.replace("http","ws"),d.href}else return _}function $(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:X("url")||N.default_mount_path;return new Ie(_)}function X(_){var d=document.head.querySelector("meta[name='action-cable-"+_+"']");if(d)return d.getAttribute("content")}E.Connection=W,E.ConnectionMonitor=O,E.Consumer=Ie,E.INTERNAL=N,E.Subscription=ee,E.Subscriptions=k,E.SubscriptionGuarantor=x,E.adapters=s,E.createWebSocketURL=ie,E.logger=T,E.createConsumer=$,E.getConfig=X,Object.defineProperty(E,"__esModule",{value:!0})})})(mT,mT.exports);var OI=mT.exports;function An(e,t){return P(),y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[S("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 II(e,t){return P(),y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[S("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 or(e,t){return P(),y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[S("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 aI(e,t){return P(),y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[S("path",{"fill-rule":"evenodd",d:"M5.22 10.22a.75.75 0 0 1 1.06 0L8 11.94l1.72-1.72a.75.75 0 1 1 1.06 1.06l-2.25 2.25a.75.75 0 0 1-1.06 0l-2.25-2.25a.75.75 0 0 1 0-1.06ZM10.78 5.78a.75.75 0 0 1-1.06 0L8 4.06 6.28 5.78a.75.75 0 0 1-1.06-1.06l2.25-2.25a.75.75 0 0 1 1.06 0l2.25 2.25a.75.75 0 0 1 0 1.06Z","clip-rule":"evenodd"})])}function vo(e,t){return P(),y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[S("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"}),S("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"}),S("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 NI(e,t){return P(),y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[S("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 lI(e,t){return P(),y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[S("path",{d:"M6 6v4h4V6H6Z"}),S("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 Sn(e,t){return P(),y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[S("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 On(e,t){return P(),y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[S("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 _I(e,t){return P(),y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[S("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 CI(e,t){return P(),y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[S("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"})])}class LI{constructor(t){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");je(this,"httpCalls");var E;this.id=(t==null?void 0:t.id)||"null",this.meta=(t==null?void 0:t.meta)||{},this.request={...t==null?void 0:t.request,url:(E=t==null?void 0:t.request)!=null&&E.url?new URL(t==null?void 0:t.request.url):new URL("http://localhost")},this.response=(t==null?void 0:t.response)||{},this.models=(t==null?void 0:t.models)||{},this.queries=(t==null?void 0:t.queries)||[],this.jobs=(t==null?void 0:t.jobs)||[],this.messages=(t==null?void 0:t.messages)||[],this.cache=(t==null?void 0:t.cache)||[],this.logs=(t==null?void 0:t.logs)||[],this.httpCalls=((t==null?void 0:t.http_calls)||[]).map(s=>{var T;return{...s,request:{...s.request,url:(T=s.request)!=null&&T.url?new URL(s.request.url):new URL("http://localhost")}}})}get modelsCount(){return Object.values(this.models).reduce((t,E)=>t+E,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((t,E)=>(t.indexOf(E.transaction_id)===-1&&t.push(E.transaction_id),t),[]).length}get httpCount(){return this.httpCalls.length}get routeAlias(){return`${this.meta.controller}#${this.meta.action}`}get dataForTabs(){const t={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&&(t.logs={label:"Logs"}),this.httpCalls.length>0&&(t.http={label:"Http",count:this.httpCount}),t}}function cI(e,t,E){switch(E.length){case 0:return e.call(t);case 1:return e.call(t,E[0]);case 2:return e.call(t,E[0],E[1]);case 3:return e.call(t,E[0],E[1],E[2])}return e.apply(t,E)}var Fo=cI;function uI(e){return e}var Yo=uI,pI=Fo,In=Math.max;function fI(e,t,E){return t=In(t===void 0?e.length-1:t,0),function(){for(var s=arguments,T=-1,r=In(s.length-t,0),n=Array(r);++T<r;)n[T]=s[t+T];T=-1;for(var R=Array(t+1);++T<t;)R[T]=s[T];return R[t]=E(n),pI(e,this,R)}}var DI=fI;function PI(e){return function(){return e}}var dI=PI,MI=typeof eE=="object"&&eE&&eE.Object===Object&&eE,Vo=MI,UI=Vo,hI=typeof self=="object"&&self&&self.Object===Object&&self,GI=UI||hI||Function("return this")(),AE=GI,gI=AE,mI=gI.Symbol,xo=mI,an=xo,wo=Object.prototype,HI=wo.hasOwnProperty,BI=wo.toString,_E=an?an.toStringTag:void 0;function bI(e){var t=HI.call(e,_E),E=e[_E];try{e[_E]=void 0;var s=!0}catch{}var T=BI.call(e);return s&&(t?e[_E]=E:delete e[_E]),T}var yI=bI,vI=Object.prototype,FI=vI.toString;function YI(e){return FI.call(e)}var VI=YI,Nn=xo,xI=yI,wI=VI,WI="[object Null]",XI="[object Undefined]",ln=Nn?Nn.toStringTag:void 0;function KI(e){return e==null?e===void 0?XI:WI:ln&&ln in Object(e)?xI(e):wI(e)}var gs=KI;function $I(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ht=$I,JI=gs,kI=ht,qI="[object AsyncFunction]",jI="[object Function]",QI="[object GeneratorFunction]",ZI="[object Proxy]";function zI(e){if(!kI(e))return!1;var t=JI(e);return t==jI||t==QI||t==qI||t==ZI}var Ar=zI,ea=AE,ta=ea["__core-js_shared__"],Ea=ta,js=Ea,_n=function(){var e=/[^.]+$/.exec(js&&js.keys&&js.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function sa(e){return!!_n&&_n in e}var Ta=sa,ra=Function.prototype,na=ra.toString;function Ra(e){if(e!=null){try{return na.call(e)}catch{}try{return e+""}catch{}}return""}var oa=Ra,Aa=Ar,ia=Ta,Sa=ht,Oa=oa,Ia=/[\\^$.*+?()[\]{}|]/g,aa=/^\[object .+?Constructor\]$/,Na=Function.prototype,la=Object.prototype,_a=Na.toString,Ca=la.hasOwnProperty,La=RegExp("^"+_a.call(Ca).replace(Ia,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ca(e){if(!Sa(e)||ia(e))return!1;var t=Aa(e)?La:aa;return t.test(Oa(e))}var ua=ca;function pa(e,t){return e==null?void 0:e[t]}var fa=pa,Da=ua,Pa=fa;function da(e,t){var E=Pa(e,t);return Da(E)?E:void 0}var ir=da,Ma=ir,Ua=function(){try{var e=Ma(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Wo=Ua,ha=dI,Cn=Wo,Ga=Yo,ga=Cn?function(e,t){return Cn(e,"toString",{configurable:!0,enumerable:!1,value:ha(t),writable:!0})}:Ga,ma=ga,Ha=800,Ba=16,ba=Date.now;function ya(e){var t=0,E=0;return function(){var s=ba(),T=Ba-(s-E);if(E=s,T>0){if(++t>=Ha)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var va=ya,Fa=ma,Ya=va,Va=Ya(Fa),xa=Va,wa=Yo,Wa=DI,Xa=xa;function Ka(e,t){return Xa(Wa(e,t,wa),e+"")}var Xo=Ka;function $a(){this.__data__=[],this.size=0}var Ja=$a;function ka(e,t){return e===t||e!==e&&t!==t}var ms=ka,qa=ms;function ja(e,t){for(var E=e.length;E--;)if(qa(e[E][0],t))return E;return-1}var Hs=ja,Qa=Hs,Za=Array.prototype,za=Za.splice;function eN(e){var t=this.__data__,E=Qa(t,e);if(E<0)return!1;var s=t.length-1;return E==s?t.pop():za.call(t,E,1),--this.size,!0}var tN=eN,EN=Hs;function sN(e){var t=this.__data__,E=EN(t,e);return E<0?void 0:t[E][1]}var TN=sN,rN=Hs;function nN(e){return rN(this.__data__,e)>-1}var RN=nN,oN=Hs;function AN(e,t){var E=this.__data__,s=oN(E,e);return s<0?(++this.size,E.push([e,t])):E[s][1]=t,this}var iN=AN,SN=Ja,ON=tN,IN=TN,aN=RN,NN=iN;function iE(e){var t=-1,E=e==null?0:e.length;for(this.clear();++t<E;){var s=e[t];this.set(s[0],s[1])}}iE.prototype.clear=SN;iE.prototype.delete=ON;iE.prototype.get=IN;iE.prototype.has=aN;iE.prototype.set=NN;var Bs=iE,lN=Bs;function _N(){this.__data__=new lN,this.size=0}var CN=_N;function LN(e){var t=this.__data__,E=t.delete(e);return this.size=t.size,E}var cN=LN;function uN(e){return this.__data__.get(e)}var pN=uN;function fN(e){return this.__data__.has(e)}var DN=fN,PN=ir,dN=AE,MN=PN(dN,"Map"),Ko=MN,UN=ir,hN=UN(Object,"create"),bs=hN,Ln=bs;function GN(){this.__data__=Ln?Ln(null):{},this.size=0}var gN=GN;function mN(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var HN=mN,BN=bs,bN="__lodash_hash_undefined__",yN=Object.prototype,vN=yN.hasOwnProperty;function FN(e){var t=this.__data__;if(BN){var E=t[e];return E===bN?void 0:E}return vN.call(t,e)?t[e]:void 0}var YN=FN,VN=bs,xN=Object.prototype,wN=xN.hasOwnProperty;function WN(e){var t=this.__data__;return VN?t[e]!==void 0:wN.call(t,e)}var XN=WN,KN=bs,$N="__lodash_hash_undefined__";function JN(e,t){var E=this.__data__;return this.size+=this.has(e)?0:1,E[e]=KN&&t===void 0?$N:t,this}var kN=JN,qN=gN,jN=HN,QN=YN,ZN=XN,zN=kN;function SE(e){var t=-1,E=e==null?0:e.length;for(this.clear();++t<E;){var s=e[t];this.set(s[0],s[1])}}SE.prototype.clear=qN;SE.prototype.delete=jN;SE.prototype.get=QN;SE.prototype.has=ZN;SE.prototype.set=zN;var el=SE,cn=el,tl=Bs,El=Ko;function sl(){this.size=0,this.__data__={hash:new cn,map:new(El||tl),string:new cn}}var Tl=sl;function rl(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var nl=rl,Rl=nl;function ol(e,t){var E=e.__data__;return Rl(t)?E[typeof t=="string"?"string":"hash"]:E.map}var ys=ol,Al=ys;function il(e){var t=Al(this,e).delete(e);return this.size-=t?1:0,t}var Sl=il,Ol=ys;function Il(e){return Ol(this,e).get(e)}var al=Il,Nl=ys;function ll(e){return Nl(this,e).has(e)}var _l=ll,Cl=ys;function Ll(e,t){var E=Cl(this,e),s=E.size;return E.set(e,t),this.size+=E.size==s?0:1,this}var cl=Ll,ul=Tl,pl=Sl,fl=al,Dl=_l,Pl=cl;function OE(e){var t=-1,E=e==null?0:e.length;for(this.clear();++t<E;){var s=e[t];this.set(s[0],s[1])}}OE.prototype.clear=ul;OE.prototype.delete=pl;OE.prototype.get=fl;OE.prototype.has=Dl;OE.prototype.set=Pl;var dl=OE,Ml=Bs,Ul=Ko,hl=dl,Gl=200;function gl(e,t){var E=this.__data__;if(E instanceof Ml){var s=E.__data__;if(!Ul||s.length<Gl-1)return s.push([e,t]),this.size=++E.size,this;E=this.__data__=new hl(s)}return E.set(e,t),this.size=E.size,this}var ml=gl,Hl=Bs,Bl=CN,bl=cN,yl=pN,vl=DN,Fl=ml;function IE(e){var t=this.__data__=new Hl(e);this.size=t.size}IE.prototype.clear=Bl;IE.prototype.delete=bl;IE.prototype.get=yl;IE.prototype.has=vl;IE.prototype.set=Fl;var Yl=IE,un=Wo;function Vl(e,t,E){t=="__proto__"&&un?un(e,t,{configurable:!0,enumerable:!0,value:E,writable:!0}):e[t]=E}var Sr=Vl,xl=Sr,wl=ms;function Wl(e,t,E){(E!==void 0&&!wl(e[t],E)||E===void 0&&!(t in e))&&xl(e,t,E)}var $o=Wl;function Xl(e){return function(t,E,s){for(var T=-1,r=Object(t),n=s(t),R=n.length;R--;){var o=n[e?R:++T];if(E(r[o],o,r)===!1)break}return t}}var Kl=Xl,$l=Kl,Jl=$l(),kl=Jl,Os={exports:{}};Os.exports;(function(e,t){var E=AE,s=t&&!t.nodeType&&t,T=s&&!0&&e&&!e.nodeType&&e,r=T&&T.exports===s,n=r?E.Buffer:void 0,R=n?n.allocUnsafe:void 0;function o(i,A){if(A)return i.slice();var O=i.length,N=R?R(O):new i.constructor(O);return i.copy(N),N}e.exports=o})(Os,Os.exports);var ql=Os.exports,jl=AE,Ql=jl.Uint8Array,Zl=Ql,pn=Zl;function zl(e){var t=new e.constructor(e.byteLength);return new pn(t).set(new pn(e)),t}var e_=zl,t_=e_;function E_(e,t){var E=t?t_(e.buffer):e.buffer;return new e.constructor(E,e.byteOffset,e.length)}var s_=E_;function T_(e,t){var E=-1,s=e.length;for(t||(t=Array(s));++E<s;)t[E]=e[E];return t}var r_=T_,n_=ht,fn=Object.create,R_=function(){function e(){}return function(t){if(!n_(t))return{};if(fn)return fn(t);e.prototype=t;var E=new e;return e.prototype=void 0,E}}(),o_=R_;function A_(e,t){return function(E){return e(t(E))}}var i_=A_,S_=i_,O_=S_(Object.getPrototypeOf,Object),Jo=O_,I_=Object.prototype;function a_(e){var t=e&&e.constructor,E=typeof t=="function"&&t.prototype||I_;return e===E}var ko=a_,N_=o_,l_=Jo,__=ko;function C_(e){return typeof e.constructor=="function"&&!__(e)?N_(l_(e)):{}}var L_=C_;function c_(e){return e!=null&&typeof e=="object"}var xE=c_,u_=gs,p_=xE,f_="[object Arguments]";function D_(e){return p_(e)&&u_(e)==f_}var P_=D_,Dn=P_,d_=xE,qo=Object.prototype,M_=qo.hasOwnProperty,U_=qo.propertyIsEnumerable,h_=Dn(function(){return arguments}())?Dn:function(e){return d_(e)&&M_.call(e,"callee")&&!U_.call(e,"callee")},jo=h_,G_=Array.isArray,Qo=G_,g_=9007199254740991;function m_(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=g_}var Zo=m_,H_=Ar,B_=Zo;function b_(e){return e!=null&&B_(e.length)&&!H_(e)}var Or=b_,y_=Or,v_=xE;function F_(e){return v_(e)&&y_(e)}var Y_=F_,Is={exports:{}};function V_(){return!1}var x_=V_;Is.exports;(function(e,t){var E=AE,s=x_,T=t&&!t.nodeType&&t,r=T&&!0&&e&&!e.nodeType&&e,n=r&&r.exports===T,R=n?E.Buffer:void 0,o=R?R.isBuffer:void 0,i=o||s;e.exports=i})(Is,Is.exports);var zo=Is.exports,w_=gs,W_=Jo,X_=xE,K_="[object Object]",$_=Function.prototype,J_=Object.prototype,eA=$_.toString,k_=J_.hasOwnProperty,q_=eA.call(Object);function j_(e){if(!X_(e)||w_(e)!=K_)return!1;var t=W_(e);if(t===null)return!0;var E=k_.call(t,"constructor")&&t.constructor;return typeof E=="function"&&E instanceof E&&eA.call(E)==q_}var Q_=j_,Z_=gs,z_=Zo,eC=xE,tC="[object Arguments]",EC="[object Array]",sC="[object Boolean]",TC="[object Date]",rC="[object Error]",nC="[object Function]",RC="[object Map]",oC="[object Number]",AC="[object Object]",iC="[object RegExp]",SC="[object Set]",OC="[object String]",IC="[object WeakMap]",aC="[object ArrayBuffer]",NC="[object DataView]",lC="[object Float32Array]",_C="[object Float64Array]",CC="[object Int8Array]",LC="[object Int16Array]",cC="[object Int32Array]",uC="[object Uint8Array]",pC="[object Uint8ClampedArray]",fC="[object Uint16Array]",DC="[object Uint32Array]",Le={};Le[lC]=Le[_C]=Le[CC]=Le[LC]=Le[cC]=Le[uC]=Le[pC]=Le[fC]=Le[DC]=!0;Le[tC]=Le[EC]=Le[aC]=Le[sC]=Le[NC]=Le[TC]=Le[rC]=Le[nC]=Le[RC]=Le[oC]=Le[AC]=Le[iC]=Le[SC]=Le[OC]=Le[IC]=!1;function PC(e){return eC(e)&&z_(e.length)&&!!Le[Z_(e)]}var dC=PC;function MC(e){return function(t){return e(t)}}var UC=MC,as={exports:{}};as.exports;(function(e,t){var E=Vo,s=t&&!t.nodeType&&t,T=s&&!0&&e&&!e.nodeType&&e,r=T&&T.exports===s,n=r&&E.process,R=function(){try{var o=T&&T.require&&T.require("util").types;return o||n&&n.binding&&n.binding("util")}catch{}}();e.exports=R})(as,as.exports);var hC=as.exports,GC=dC,gC=UC,Pn=hC,dn=Pn&&Pn.isTypedArray,mC=dn?gC(dn):GC,tA=mC;function HC(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var EA=HC,BC=Sr,bC=ms,yC=Object.prototype,vC=yC.hasOwnProperty;function FC(e,t,E){var s=e[t];(!(vC.call(e,t)&&bC(s,E))||E===void 0&&!(t in e))&&BC(e,t,E)}var YC=FC,VC=YC,xC=Sr;function wC(e,t,E,s){var T=!E;E||(E={});for(var r=-1,n=t.length;++r<n;){var R=t[r],o=s?s(E[R],e[R],R,E,e):void 0;o===void 0&&(o=e[R]),T?xC(E,R,o):VC(E,R,o)}return E}var WC=wC;function XC(e,t){for(var E=-1,s=Array(e);++E<e;)s[E]=t(E);return s}var KC=XC,$C=9007199254740991,JC=/^(?:0|[1-9]\d*)$/;function kC(e,t){var E=typeof e;return t=t??$C,!!t&&(E=="number"||E!="symbol"&&JC.test(e))&&e>-1&&e%1==0&&e<t}var sA=kC,qC=KC,jC=jo,QC=Qo,ZC=zo,zC=sA,eL=tA,tL=Object.prototype,EL=tL.hasOwnProperty;function sL(e,t){var E=QC(e),s=!E&&jC(e),T=!E&&!s&&ZC(e),r=!E&&!s&&!T&&eL(e),n=E||s||T||r,R=n?qC(e.length,String):[],o=R.length;for(var i in e)(t||EL.call(e,i))&&!(n&&(i=="length"||T&&(i=="offset"||i=="parent")||r&&(i=="buffer"||i=="byteLength"||i=="byteOffset")||zC(i,o)))&&R.push(i);return R}var TL=sL;function rL(e){var t=[];if(e!=null)for(var E in Object(e))t.push(E);return t}var nL=rL,RL=ht,oL=ko,AL=nL,iL=Object.prototype,SL=iL.hasOwnProperty;function OL(e){if(!RL(e))return AL(e);var t=oL(e),E=[];for(var s in e)s=="constructor"&&(t||!SL.call(e,s))||E.push(s);return E}var IL=OL,aL=TL,NL=IL,lL=Or;function _L(e){return lL(e)?aL(e,!0):NL(e)}var TA=_L,CL=WC,LL=TA;function cL(e){return CL(e,LL(e))}var uL=cL,Mn=$o,pL=ql,fL=s_,DL=r_,PL=L_,Un=jo,hn=Qo,dL=Y_,ML=zo,UL=Ar,hL=ht,GL=Q_,gL=tA,Gn=EA,mL=uL;function HL(e,t,E,s,T,r,n){var R=Gn(e,E),o=Gn(t,E),i=n.get(o);if(i){Mn(e,E,i);return}var A=r?r(R,o,E+"",e,t,n):void 0,O=A===void 0;if(O){var N=hn(o),l=!N&&ML(o),C=!N&&!l&&gL(o);A=o,N||l||C?hn(R)?A=R:dL(R)?A=DL(R):l?(O=!1,A=pL(o,!0)):C?(O=!1,A=fL(o,!0)):A=[]:GL(o)||Un(o)?(A=R,Un(R)?A=mL(R):(!hL(R)||UL(R))&&(A=PL(o))):O=!1}O&&(n.set(o,A),T(A,o,s,r,n),n.delete(o)),Mn(e,E,A)}var BL=HL,bL=Yl,yL=$o,vL=kl,FL=BL,YL=ht,VL=TA,xL=EA;function rA(e,t,E,s,T){e!==t&&vL(t,function(r,n){if(T||(T=new bL),YL(r))FL(e,t,n,E,rA,s,T);else{var R=s?s(xL(e,n),r,n+"",e,t,T):void 0;R===void 0&&(R=r),yL(e,n,R)}},VL)}var nA=rA,wL=nA,gn=ht;function RA(e,t,E,s,T,r){return gn(e)&&gn(t)&&(r.set(t,e),wL(e,t,void 0,RA,r),r.delete(t)),e}var WL=RA,XL=ms,KL=Or,$L=sA,JL=ht;function kL(e,t,E){if(!JL(E))return!1;var s=typeof t;return(s=="number"?KL(E)&&$L(t,E.length):s=="string"&&t in E)?XL(E[t],e):!1}var qL=kL,jL=Xo,QL=qL;function ZL(e){return jL(function(t,E){var s=-1,T=E.length,r=T>1?E[T-1]:void 0,n=T>2?E[2]:void 0;for(r=e.length>3&&typeof r=="function"?(T--,r):void 0,n&&QL(E[0],E[1],n)&&(r=T<3?void 0:r,T=1),t=Object(t);++s<T;){var R=E[s];R&&e(t,R,s,r)}return t})}var zL=ZL,ec=nA,tc=zL,Ec=tc(function(e,t,E,s){ec(e,t,E,s)}),sc=Ec,Tc=Fo,rc=Xo,nc=WL,Rc=sc,oc=rc(function(e){return e.push(void 0,nc),Tc(Rc,void 0,e)}),Ac=oc;const ic=yT(Ac);function Sc(e){return/mysql|triology/.test(e)?"mysql":/pg|postgres/.test(e)?"postgresql":/sqlite/.test(e)?"sqlite":"sql"}function Oc(e){const t=ic(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 t.actionCableUrl=`${t.cable.url}${t.prefix}/cable`,t.pollUrl=`${t.poll.url}${t.prefix}/poll`,t.sqlDialect=Sc(t.activeRecord.adapter),t}let Ir=bo("config",{state:()=>({config:Oc(window._debugbarConfigOptions)})}),Ic=bo("requests",{state:()=>({requests:[],currentRequest:null}),getters:{requestCount(e){return e.requests.length}},actions:{addRequests(e){const t=[];for(e.forEach(E=>{this.requests.find(s=>s.id===E.id)||this.requests.push(new LI(E)),t.push(E.id)});this.requests.length>Ir().config.maxRequests;)this.requests.shift();return t},setCurrentRequestById(e){this.currentRequest=this.requests.find(t=>t.id===e)},clearRequests(){this.requests=[],this.currentRequest=null}}});const ar=(e,t)=>{const E=e.__vccOpts||e;for(const[s,T]of t)E[s]=T;return E},ac={},Nc={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"};function lc(e,t){return P(),y("svg",Nc,t[0]||(t[0]=[S("metadata",{id:"metadata3320"},[S("rdf:RDF",null,[S("cc:Work",{"rdf:about":""},[S("dc:format",null,"image/svg+xml"),S("dc:type",{"rdf:resource":"http://purl.org/dc/dcmitype/StillImage"})])])],-1),S("defs",{id:"defs3489"},[S("linearGradient",{id:"XMLID_17_-9",gradientUnits:"userSpaceOnUse",x1:"174.0737",y1:"215.5488",x2:"132.27631",y2:"141.7533"},[S("stop",{offset:"0",style:{"stop-color":"#fb7655"},id:"stop3272-4"}),S("stop",{offset:"0",style:{"stop-color":"#fb7655"},id:"stop3274-5"}),S("stop",{offset:"0.41",style:{"stop-color":"#e42b1e"},id:"stop3276-1"}),S("stop",{offset:"0.99",style:{"stop-color":"#990000"},id:"stop3278-0"}),S("stop",{offset:"1",style:{"stop-color":"#990000"},id:"stop3280-3"})]),S("linearGradient",{id:"XMLID_18_-7",gradientUnits:"userSpaceOnUse",x1:"194.895",y1:"153.5576",x2:"141.0276",y2:"117.4093"},[S("stop",{offset:"0",style:{"stop-color":"#871101"},id:"stop3285-8"}),S("stop",{offset:"0",style:{"stop-color":"#871101"},id:"stop3287-8"}),S("stop",{offset:"0.99",style:{"stop-color":"#911209"},id:"stop3289-6"}),S("stop",{offset:"1",style:{"stop-color":"#911209"},id:"stop3291-0"})]),S("linearGradient",{id:"XMLID_19_-4",gradientUnits:"userSpaceOnUse",x1:"151.79539",y1:"217.7852",x2:"97.929703",y2:"181.638"},[S("stop",{offset:"0",style:{"stop-color":"#871101"},id:"stop3296-6"}),S("stop",{offset:"0",style:{"stop-color":"#871101"},id:"stop3298-7"}),S("stop",{offset:"0.99",style:{"stop-color":"#911209"},id:"stop3300-6"}),S("stop",{offset:"1",style:{"stop-color":"#911209"},id:"stop3302-0"})]),S("linearGradient",{id:"XMLID_20_-9",gradientUnits:"userSpaceOnUse",x1:"38.696301",y1:"127.3906",x2:"47.046902",y2:"181.66141"},[S("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3307-7"}),S("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3309-5"}),S("stop",{offset:"0.23",style:{"stop-color":"#e57252"},id:"stop3311-9"}),S("stop",{offset:"0.46",style:{"stop-color":"#de3b20"},id:"stop3313-7"}),S("stop",{offset:"0.99",style:{"stop-color":"#a60003"},id:"stop3315-8"}),S("stop",{offset:"1",style:{"stop-color":"#a60003"},id:"stop3317-5"})]),S("linearGradient",{id:"XMLID_21_-3",gradientUnits:"userSpaceOnUse",x1:"96.132797",y1:"76.715302",x2:"99.209602",y2:"132.1021"},[S("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3322-3"}),S("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3324-8"}),S("stop",{offset:"0.23",style:{"stop-color":"#e4714e"},id:"stop3326-3"}),S("stop",{offset:"0.56",style:{"stop-color":"#be1a0d"},id:"stop3328-7"}),S("stop",{offset:"0.99",style:{"stop-color":"#a80d00"},id:"stop3330-9"}),S("stop",{offset:"1",style:{"stop-color":"#a80d00"},id:"stop3332-3"})]),S("linearGradient",{id:"XMLID_22_-7",gradientUnits:"userSpaceOnUse",x1:"147.103",y1:"25.521",x2:"156.3141",y2:"65.216202"},[S("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3337-8"}),S("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3339-7"}),S("stop",{offset:"0.18",style:{"stop-color":"#e46342"},id:"stop3341-4"}),S("stop",{offset:"0.4",style:{"stop-color":"#c82410"},id:"stop3343-1"}),S("stop",{offset:"0.99",style:{"stop-color":"#a80d00"},id:"stop3345-9"}),S("stop",{offset:"1",style:{"stop-color":"#a80d00"},id:"stop3347-0"})]),S("linearGradient",{id:"XMLID_23_-9",gradientUnits:"userSpaceOnUse",x1:"118.9761",y1:"11.5415",x2:"158.66859",y2:"-8.3048"},[S("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3352-8"}),S("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3354-8"}),S("stop",{offset:"0.54",style:{"stop-color":"#c81f11"},id:"stop3356-5"}),S("stop",{offset:"0.99",style:{"stop-color":"#bf0905"},id:"stop3358-8"}),S("stop",{offset:"1",style:{"stop-color":"#bf0905"},id:"stop3360-4"})]),S("linearGradient",{id:"XMLID_24_-3",gradientUnits:"userSpaceOnUse",x1:"3.9033",y1:"113.5547",x2:"7.1701999",y2:"146.2628"},[S("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3365-7"}),S("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3367-1"}),S("stop",{offset:"0.31",style:{"stop-color":"#de4024"},id:"stop3369-3"}),S("stop",{offset:"0.99",style:{"stop-color":"#bf190b"},id:"stop3371-8"}),S("stop",{offset:"1",style:{"stop-color":"#bf190b"},id:"stop3373-0"})]),S("linearGradient",{id:"XMLID_25_-9",gradientUnits:"userSpaceOnUse",x1:"-18.5557",y1:"155.10451",x2:"135.0152",y2:"-2.8092999"},[S("stop",{offset:"0",style:{"stop-color":"#bd0012"},id:"stop3380-7"}),S("stop",{offset:"0",style:{"stop-color":"#bd0012"},id:"stop3382-9"}),S("stop",{offset:"0.07",style:{"stop-color":"#ffffff"},id:"stop3384-9"}),S("stop",{offset:"0.17",style:{"stop-color":"#ffffff"},id:"stop3386-3"}),S("stop",{offset:"0.27",style:{"stop-color":"#c82f1c"},id:"stop3388-2"}),S("stop",{offset:"0.33",style:{"stop-color":"#820c01"},id:"stop3390-4"}),S("stop",{offset:"0.46",style:{"stop-color":"#a31601"},id:"stop3392-3"}),S("stop",{offset:"0.72",style:{"stop-color":"#b31301"},id:"stop3394-7"}),S("stop",{offset:"0.99",style:{"stop-color":"#e82609"},id:"stop3396-1"}),S("stop",{offset:"1",style:{"stop-color":"#e82609"},id:"stop3398-2"})]),S("linearGradient",{id:"XMLID_26_-2",gradientUnits:"userSpaceOnUse",x1:"99.074699",y1:"171.0332",x2:"52.817699",y2:"159.61659"},[S("stop",{offset:"0",style:{"stop-color":"#8c0c01"},id:"stop3403-0"}),S("stop",{offset:"0",style:{"stop-color":"#8c0c01"},id:"stop3405-2"}),S("stop",{offset:"0.54",style:{"stop-color":"#990c00"},id:"stop3407-1"}),S("stop",{offset:"0.99",style:{"stop-color":"#a80d0e"},id:"stop3409-7"}),S("stop",{offset:"1",style:{"stop-color":"#a80d0e"},id:"stop3411-5"})]),S("linearGradient",{id:"XMLID_27_-1",gradientUnits:"userSpaceOnUse",x1:"178.52589",y1:"115.5146",x2:"137.43269",y2:"78.683998"},[S("stop",{offset:"0",style:{"stop-color":"#7e110b"},id:"stop3416-7"}),S("stop",{offset:"0",style:{"stop-color":"#7e110b"},id:"stop3418-4"}),S("stop",{offset:"0.99",style:{"stop-color":"#9e0c00"},id:"stop3420-1"}),S("stop",{offset:"1",style:{"stop-color":"#9e0c00"},id:"stop3422-7"})]),S("linearGradient",{id:"XMLID_28_-1",gradientUnits:"userSpaceOnUse",x1:"193.6235",y1:"47.937",x2:"173.15421",y2:"26.053801"},[S("stop",{offset:"0",style:{"stop-color":"#79130d"},id:"stop3427-1"}),S("stop",{offset:"0",style:{"stop-color":"#79130d"},id:"stop3429-1"}),S("stop",{offset:"0.99",style:{"stop-color":"#9e120b"},id:"stop3431-7"}),S("stop",{offset:"1",style:{"stop-color":"#9e120b"},id:"stop3433-0"})]),S("radialGradient",{id:"XMLID_29_-4",cx:"143.8315",cy:"79.388199",r:"50.357601",gradientUnits:"userSpaceOnUse"},[S("stop",{offset:"0",style:{"stop-color":"#a80d00"},id:"stop3440-0"}),S("stop",{offset:"0",style:{"stop-color":"#a80d00"},id:"stop3442-8"}),S("stop",{offset:"0.99",style:{"stop-color":"#7e0e08"},id:"stop3444-5"}),S("stop",{offset:"1",style:{"stop-color":"#7e0e08"},id:"stop3446-1"})]),S("radialGradient",{id:"XMLID_30_-6",cx:"74.0923",cy:"145.75101",r:"66.943703",gradientUnits:"userSpaceOnUse"},[S("stop",{offset:"0",style:{"stop-color":"#a30c00"},id:"stop3451-6"}),S("stop",{offset:"0",style:{"stop-color":"#a30c00"},id:"stop3453-2"}),S("stop",{offset:"0.99",style:{"stop-color":"#800e08"},id:"stop3455-1"}),S("stop",{offset:"1",style:{"stop-color":"#800e08"},id:"stop3457-9"})]),S("linearGradient",{id:"XMLID_31_-6",gradientUnits:"userSpaceOnUse",x1:"26.669901",y1:"197.33591",x2:"9.9886999",y2:"140.742"},[S("stop",{offset:"0",style:{"stop-color":"#8b2114"},id:"stop3462-4"}),S("stop",{offset:"0",style:{"stop-color":"#8b2114"},id:"stop3464-8"}),S("stop",{offset:"0.43",style:{"stop-color":"#9e100a"},id:"stop3466-0"}),S("stop",{offset:"0.99",style:{"stop-color":"#b3100c"},id:"stop3468-8"}),S("stop",{offset:"1",style:{"stop-color":"#b3100c"},id:"stop3470-1"})]),S("linearGradient",{id:"XMLID_32_-0",gradientUnits:"userSpaceOnUse",x1:"154.6411",y1:"9.7979002",x2:"192.039",y2:"26.305901"},[S("stop",{offset:"0",style:{"stop-color":"#b31000"},id:"stop3475-2"}),S("stop",{offset:"0",style:{"stop-color":"#b31000"},id:"stop3477-2"}),S("stop",{offset:"0.44",style:{"stop-color":"#910f08"},id:"stop3479-9"}),S("stop",{offset:"0.99",style:{"stop-color":"#791c12"},id:"stop3481-7"}),S("stop",{offset:"1",style:{"stop-color":"#791c12"},id:"stop3483-5"})]),S("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),S("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),lO('<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),S("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),S("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),S("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),S("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),S("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),S("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),S("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),S("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),S("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),S("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)]))}const oA=ar(ac,[["render",lc]]),_c=["textContent"],Cc=Ne({__name:"TabButton",props:{label:{},count:{},isActive:{type:Boolean}},setup(e){const t=e;return(E,s)=>(P(),y("button",{class:ge(["text-sm flex items-center space-x-1 px-2 py-1.5 border-0",{"bg-stone-300 rounded-t-sm cursor-auto":t.isActive}])},[S("span",{class:ge({"font-medium":t.isActive})},[st(E.$slots,"default")],2),t.count!=null?(P(),y("span",{key:0,class:ge(["p-0.5 rounded-full text-xs",{"px-1.5":t.count<10,hidden:t.count==0,"bg-stone-300":t.count>0&&!t.isActive,"bg-stone-400":t.count>0&&t.isActive}]),textContent:ne(t.count)},null,10,_c)):Ee("",!0)],2))}}),Lc=["textContent"],Nr=Ne({__name:"StatusCode",props:{code:{}},setup(e){const t=e;return(E,s)=>(P(),y("span",{class:ge(["px-1 py-0.5 rounded text-xs",{"bg-green-600 text-white":t.code<300,"bg-blue-500 text-white":t.code>=300&&t.code<400,"bg-amber-600 text-white":t.code>=400&&t.code<500,"bg-red-600 text-white":t.code>=500}]),textContent:ne(t.code)},null,10,Lc))}});var AA={exports:{}};(function(e){(function(t,E){e.exports?e.exports=E():t.nearley=E()})(eE,function(){function t(i,A,O){return this.id=++t.highestId,this.name=i,this.symbols=A,this.postprocess=O,this}t.highestId=0,t.prototype.toString=function(i){var A=typeof i>"u"?this.symbols.map(o).join(" "):this.symbols.slice(0,i).map(o).join(" ")+" ● "+this.symbols.slice(i).map(o).join(" ");return this.name+" → "+A};function E(i,A,O,N){this.rule=i,this.dot=A,this.reference=O,this.data=[],this.wantedBy=N,this.isComplete=this.dot===i.symbols.length}E.prototype.toString=function(){return"{"+this.rule.toString(this.dot)+"}, from: "+(this.reference||0)},E.prototype.nextState=function(i){var A=new E(this.rule,this.dot+1,this.reference,this.wantedBy);return A.left=this,A.right=i,A.isComplete&&(A.data=A.build(),A.right=void 0),A},E.prototype.build=function(){var i=[],A=this;do i.push(A.right.data),A=A.left;while(A.left);return i.reverse(),i},E.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,n.fail))};function s(i,A){this.grammar=i,this.index=A,this.states=[],this.wants={},this.scannable=[],this.completed={}}s.prototype.process=function(i){for(var A=this.states,O=this.wants,N=this.completed,l=0;l<A.length;l++){var C=A[l];if(C.isComplete){if(C.finish(),C.data!==n.fail){for(var H=C.wantedBy,Q=H.length;Q--;){var W=H[Q];this.complete(W,C)}if(C.reference===this.index){var j=C.rule.name;(this.completed[j]=this.completed[j]||[]).push(C)}}}else{var j=C.rule.symbols[C.dot];if(typeof j!="string"){this.scannable.push(C);continue}if(O[j]){if(O[j].push(C),N.hasOwnProperty(j))for(var ee=N[j],Q=0;Q<ee.length;Q++){var x=ee[Q];this.complete(C,x)}}else O[j]=[C],this.predict(j)}}},s.prototype.predict=function(i){for(var A=this.grammar.byName[i]||[],O=0;O<A.length;O++){var N=A[O],l=this.wants[i],C=new E(N,0,this.index,l);this.states.push(C)}},s.prototype.complete=function(i,A){var O=i.nextState(A);this.states.push(O)};function T(i,A){this.rules=i,this.start=A||this.rules[0].name;var O=this.byName={};this.rules.forEach(function(N){O.hasOwnProperty(N.name)||(O[N.name]=[]),O[N.name].push(N)})}T.fromCompiled=function(N,A){var O=N.Lexer;N.ParserStart&&(A=N.ParserStart,N=N.ParserRules);var N=N.map(function(C){return new t(C.name,C.symbols,C.postprocess)}),l=new T(N,A);return l.lexer=O,l};function r(){this.reset("")}r.prototype.reset=function(i,A){this.buffer=i,this.index=0,this.line=A?A.line:1,this.lastLineBreak=A?-A.col:0},r.prototype.next=function(){if(this.index<this.buffer.length){var i=this.buffer[this.index++];return i===`
|
23
|
+
*/let go;const Gs=e=>go=e,mo=Symbol();function hT(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var ME;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(ME||(ME={}));function ea(){const e=gR(!0),t=e.run(()=>Qe({}));let E=[],s=[];const T=ZT({install(r){Gs(T),T._a=r,r.provide(mo,T),r.config.globalProperties.$pinia=T,s.forEach(n=>E.push(n)),s=[]},use(r){return this._a?E.push(r):s.push(r),this},_p:E,_a:null,_e:e,_s:new Map,state:t});return T}const Ho=()=>{};function Rn(e,t,E,s=Ho){e.push(t);const T=()=>{const r=e.indexOf(t);r>-1&&(e.splice(r,1),s())};return!E&&mR()&&xi(T),T}function jt(e,...t){e.slice().forEach(E=>{E(...t)})}const ta=e=>e(),on=Symbol(),qs=Symbol();function GT(e,t){e instanceof Map&&t instanceof Map?t.forEach((E,s)=>e.set(s,E)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const E in t){if(!t.hasOwnProperty(E))continue;const s=t[E],T=e[E];hT(T)&&hT(s)&&e.hasOwnProperty(E)&&!fe(s)&&!Pt(s)?e[E]=GT(T,s):e[E]=s}return e}const Ea=Symbol();function sa(e){return!hT(e)||!e.hasOwnProperty(Ea)}const{assign:ct}=Object;function Ta(e){return!!(fe(e)&&e.effect)}function ra(e,t,E,s){const{state:T,actions:r,getters:n}=t,R=E.state.value[e];let o;function i(){R||(E.state.value[e]=T?T():{});const A=SS(E.state.value[e]);return ct(A,r,Object.keys(n||{}).reduce((O,N)=>(O[N]=ZT(tt(()=>{Gs(E);const l=E._s.get(e);return n[N].call(l,l)})),O),{}))}return o=bo(e,i,t,E,s,!0),o}function bo(e,t,E={},s,T,r){let n;const R=ct({actions:{}},E),o={deep:!0};let i,A,O=[],N=[],l;const C=s.state.value[e];!r&&!C&&(s.state.value[e]={}),Qe({});let H;function Q($){let X;i=A=!1,typeof $=="function"?($(s.state.value[e]),X={type:ME.patchFunction,storeId:e,events:l}):(GT(s.state.value[e],$),X={type:ME.patchObject,payload:$,storeId:e,events:l});const _=H=Symbol();zT().then(()=>{H===_&&(i=!0)}),A=!0,jt(O,X,s.state.value[e])}const W=r?function(){const{state:X}=E,_=X?X():{};this.$patch(d=>{ct(d,_)})}:Ho;function j(){n.stop(),O=[],N=[],s._s.delete(e)}const ee=($,X="")=>{if(on in $)return $[qs]=X,$;const _=function(){Gs(s);const d=Array.from(arguments),p=[],Y=[];function J(G){p.push(G)}function Me(G){Y.push(G)}jt(N,{args:d,name:_[qs],store:k,after:J,onError:Me});let L;try{L=$.apply(this&&this.$id===e?this:k,d)}catch(G){throw jt(Y,G),G}return L instanceof Promise?L.then(G=>(jt(p,G),G)).catch(G=>(jt(Y,G),Promise.reject(G))):(jt(p,L),L)};return _[on]=!0,_[qs]=X,_},x={_p:s,$id:e,$onAction:Rn.bind(null,N),$patch:Q,$reset:W,$subscribe($,X={}){const _=Rn(O,$,X.detached,()=>d()),d=n.run(()=>rE(()=>s.state.value[e],p=>{(X.flush==="sync"?A:i)&&$({storeId:e,type:ME.direct,events:l},p)},ct({},o,X)));return _},$dispose:j},k=rt(x);s._s.set(e,k);const ie=(s._a&&s._a.runWithContext||ta)(()=>s._e.run(()=>(n=gR()).run(()=>t({action:ee}))));for(const $ in ie){const X=ie[$];if(fe(X)&&!Ta(X)||Pt(X))r||(C&&sa(X)&&(fe(X)?X.value=C[$]:GT(X,C[$])),s.state.value[e][$]=X);else if(typeof X=="function"){const _=ee(X,$);ie[$]=_,R.actions[$]=X}}return ct(k,ie),ct(Se(k),ie),Object.defineProperty(k,"$state",{get:()=>s.state.value[e],set:$=>{Q(X=>{ct(X,$)})}}),s._p.forEach($=>{ct(k,n.run(()=>$({store:k,app:s._a,pinia:s,options:R})))}),C&&r&&E.hydrate&&E.hydrate(k.$state,C),i=!0,A=!0,k}/*! #__NO_SIDE_EFFECTS__ */function Bo(e,t,E){let s,T;const r=typeof t=="function";typeof e=="string"?(s=e,T=r?E:t):(T=e,s=e.id);function n(R,o){const i=$S();return R=R||(i?PE(mo,null):null),R&&Gs(R),R=go,R._s.has(s)||(r?bo(s,t,T,R):ra(s,T,R)),R._s.get(s)}return n.$id=s,n}function na(e,t){return gT(e,e.childNodes,t)}function gT(e,t,{mode:E="open",delegatesFocus:s=!1}={mode:"open"}){try{const T=e.shadowRoot;if(T!=null){console.error("[shadow] Attach shadow multiple times",e,t,T);return}else{const r=e.attachShadow({mode:E,delegatesFocus:s});return t&&Ra(r,t),r}}catch(T){console.error("[shadow] make shadow-root failed",e,t),console.error(T)}}function Ra(e,t){const E=document.createDocumentFragment();for(const s of t)E.appendChild(s);e.appendChild(E)}const oa=document.createDocumentFragment(),is=Ne({props:{media:String,nonce:String},setup(e,{slots:t}){return()=>{var E;return FE("style",{media:e.media,nonce:e.nonce},(E=t.default)==null?void 0:E.call(t))}}}),Ss=Aa()(Ne({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:t,expose:E,emit:s}){const T=Qe(!1),r=Qe(),n=Qe(),R=Qe(),o=tt(()=>R.value??oa),i=rt({shadow_root:R});return E(i),no(()=>{T.value=e.abstract}),Ms(()=>{var A;try{T.value?n.value.parentElement.shadowRoot?R.value=n.value.parentElement.shadowRoot:R.value=gT(n.value.parentElement,void 0,{mode:e.mode,delegatesFocus:e.delegatesFocus}):R.value=gT(r.value,void 0,{mode:e.mode,delegatesFocus:e.delegatesFocus}),(A=R.value)==null||A.styleSheets}catch(O){console.error(O),s("error",O)}}),rE([R,()=>e.adoptedStyleSheets],([A,O])=>{if(!(!A||!O))try{A.adoptedStyleSheets=O}catch(N){console.error(N),s("error",N)}}),()=>{var O;const A=FE(pS,{ref:n,to:o.value},[(O=t.default)==null?void 0:O.call(t)]);return T.value?A:FE(e.tag,{ref:r},A)}},install:yo,Style:is}));function Aa(){return e=>e}function yo(e){e.component("shadow-root",Ss),e.directive("shadow",{beforeMount(t){console.warn("[VueShadowDom] Deprecated v-shadow directive, use <shadow-root> component"),na(t)}})}var ia={ShadowRoot:Ss,ShadowStyle:is,shadow_root:Ss,shadow_style:is,install:yo},mT={exports:{}};(function(e,t){(function(E,s){s(t)})(eE,function(E){var s={logger:self.console,WebSocket:self.WebSocket},T={log:function(){if(this.enabled){for(var d,p=arguments.length,Y=Array(p),J=0;J<p;J++)Y[J]=arguments[J];Y.push(Date.now()),(d=s.logger).log.apply(d,["[ActionCable]"].concat(Y))}}},r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},n=function(_,d){if(!(_ instanceof d))throw new TypeError("Cannot call a class as a function")},R=function(){function _(d,p){for(var Y=0;Y<p.length;Y++){var J=p[Y];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(d,J.key,J)}}return function(d,p,Y){return p&&_(d.prototype,p),Y&&_(d,Y),d}}(),o=function(){return new Date().getTime()},i=function(d){return(o()-d)/1e3},A=function(d,p,Y){return Math.max(p,Math.min(Y,d))},O=function(){function _(d){n(this,_),this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=d,this.reconnectAttempts=0}return _.prototype.start=function(){this.isRunning()||(this.startedAt=o(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),T.log("ConnectionMonitor started. pollInterval = "+this.getPollInterval()+" ms"))},_.prototype.stop=function(){this.isRunning()&&(this.stoppedAt=o(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),T.log("ConnectionMonitor stopped"))},_.prototype.isRunning=function(){return this.startedAt&&!this.stoppedAt},_.prototype.recordPing=function(){this.pingedAt=o()},_.prototype.recordConnect=function(){this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,T.log("ConnectionMonitor recorded connect")},_.prototype.recordDisconnect=function(){this.disconnectedAt=o(),T.log("ConnectionMonitor recorded disconnect")},_.prototype.startPolling=function(){this.stopPolling(),this.poll()},_.prototype.stopPolling=function(){clearTimeout(this.pollTimeout)},_.prototype.poll=function(){var p=this;this.pollTimeout=setTimeout(function(){p.reconnectIfStale(),p.poll()},this.getPollInterval())},_.prototype.getPollInterval=function(){var p=this.constructor.pollInterval,Y=p.min,J=p.max,Me=p.multiplier,L=Me*Math.log(this.reconnectAttempts+1);return Math.round(A(L,Y,J)*1e3)},_.prototype.reconnectIfStale=function(){this.connectionIsStale()&&(T.log("ConnectionMonitor detected stale connection. reconnectAttempts = "+this.reconnectAttempts+", pollInterval = "+this.getPollInterval()+" ms, time disconnected = "+i(this.disconnectedAt)+" s, stale threshold = "+this.constructor.staleThreshold+" s"),this.reconnectAttempts++,this.disconnectedRecently()?T.log("ConnectionMonitor skipping reopening recent disconnect"):(T.log("ConnectionMonitor reopening"),this.connection.reopen()))},_.prototype.connectionIsStale=function(){return i(this.pingedAt?this.pingedAt:this.startedAt)>this.constructor.staleThreshold},_.prototype.disconnectedRecently=function(){return this.disconnectedAt&&i(this.disconnectedAt)<this.constructor.staleThreshold},_.prototype.visibilityDidChange=function(){var p=this;document.visibilityState==="visible"&&setTimeout(function(){(p.connectionIsStale()||!p.connection.isOpen())&&(T.log("ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = "+document.visibilityState),p.connection.reopen())},200)},_}();O.pollInterval={min:3,max:30,multiplier:5},O.staleThreshold=6;var N={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=N.message_types,C=N.protocols,H=C.slice(0,C.length-1),Q=[].indexOf,W=function(){function _(d){n(this,_),this.open=this.open.bind(this),this.consumer=d,this.subscriptions=this.consumer.subscriptions,this.monitor=new O(this),this.disconnected=!0}return _.prototype.send=function(p){return this.isOpen()?(this.webSocket.send(JSON.stringify(p)),!0):!1},_.prototype.open=function(){return this.isActive()?(T.log("Attempted to open WebSocket, but existing socket is "+this.getState()),!1):(T.log("Opening WebSocket, current state is "+this.getState()+", subprotocols: "+C),this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new s.WebSocket(this.consumer.url,C),this.installEventHandlers(),this.monitor.start(),!0)},_.prototype.close=function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{allowReconnect:!0},Y=p.allowReconnect;if(Y||this.monitor.stop(),this.isActive())return this.webSocket.close()},_.prototype.reopen=function(){if(T.log("Reopening WebSocket, current state is "+this.getState()),this.isActive())try{return this.close()}catch(p){T.log("Failed to reopen WebSocket",p)}finally{T.log("Reopening WebSocket in "+this.constructor.reopenDelay+"ms"),setTimeout(this.open,this.constructor.reopenDelay)}else return this.open()},_.prototype.getProtocol=function(){if(this.webSocket)return this.webSocket.protocol},_.prototype.isOpen=function(){return this.isState("open")},_.prototype.isActive=function(){return this.isState("open","connecting")},_.prototype.isProtocolSupported=function(){return Q.call(H,this.getProtocol())>=0},_.prototype.isState=function(){for(var p=arguments.length,Y=Array(p),J=0;J<p;J++)Y[J]=arguments[J];return Q.call(Y,this.getState())>=0},_.prototype.getState=function(){if(this.webSocket){for(var p in s.WebSocket)if(s.WebSocket[p]===this.webSocket.readyState)return p.toLowerCase()}return null},_.prototype.installEventHandlers=function(){for(var p in this.events){var Y=this.events[p].bind(this);this.webSocket["on"+p]=Y}},_.prototype.uninstallEventHandlers=function(){for(var p in this.events)this.webSocket["on"+p]=function(){}},_}();W.reopenDelay=500,W.prototype.events={message:function(d){if(this.isProtocolSupported()){var p=JSON.parse(d.data),Y=p.identifier,J=p.message,Me=p.reason,L=p.reconnect,G=p.type;switch(G){case l.welcome:return this.monitor.recordConnect(),this.subscriptions.reload();case l.disconnect:return T.log("Disconnecting. Reason: "+Me),this.close({allowReconnect:L});case l.ping:return this.monitor.recordPing();case l.confirmation:return this.subscriptions.confirmSubscription(Y),this.subscriptions.notify(Y,"connected");case l.rejection:return this.subscriptions.reject(Y);default:return this.subscriptions.notify(Y,"received",J)}}},open:function(){if(T.log("WebSocket onopen event, using '"+this.getProtocol()+"' subprotocol"),this.disconnected=!1,!this.isProtocolSupported())return T.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close:function(d){if(T.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error:function(){T.log("WebSocket onerror event")}};var j=function(d,p){if(p!=null)for(var Y in p){var J=p[Y];d[Y]=J}return d},ee=function(){function _(d){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=arguments[2];n(this,_),this.consumer=d,this.identifier=JSON.stringify(p),j(this,Y)}return _.prototype.perform=function(p){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Y.action=p,this.send(Y)},_.prototype.send=function(p){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(p)})},_.prototype.unsubscribe=function(){return this.consumer.subscriptions.remove(this)},_}(),x=function(){function _(d){n(this,_),this.subscriptions=d,this.pendingSubscriptions=[]}return _.prototype.guarantee=function(p){this.pendingSubscriptions.indexOf(p)==-1?(T.log("SubscriptionGuarantor guaranteeing "+p.identifier),this.pendingSubscriptions.push(p)):T.log("SubscriptionGuarantor already guaranteeing "+p.identifier),this.startGuaranteeing()},_.prototype.forget=function(p){T.log("SubscriptionGuarantor forgetting "+p.identifier),this.pendingSubscriptions=this.pendingSubscriptions.filter(function(Y){return Y!==p})},_.prototype.startGuaranteeing=function(){this.stopGuaranteeing(),this.retrySubscribing()},_.prototype.stopGuaranteeing=function(){clearTimeout(this.retryTimeout)},_.prototype.retrySubscribing=function(){var p=this;this.retryTimeout=setTimeout(function(){p.subscriptions&&typeof p.subscriptions.subscribe=="function"&&p.pendingSubscriptions.map(function(Y){T.log("SubscriptionGuarantor resubscribing "+Y.identifier),p.subscriptions.subscribe(Y)})},500)},_}(),k=function(){function _(d){n(this,_),this.consumer=d,this.guarantor=new x(this),this.subscriptions=[]}return _.prototype.create=function(p,Y){var J=p,Me=(typeof J>"u"?"undefined":r(J))==="object"?J:{channel:J},L=new ee(this.consumer,Me,Y);return this.add(L)},_.prototype.add=function(p){return this.subscriptions.push(p),this.consumer.ensureActiveConnection(),this.notify(p,"initialized"),this.subscribe(p),p},_.prototype.remove=function(p){return this.forget(p),this.findAll(p.identifier).length||this.sendCommand(p,"unsubscribe"),p},_.prototype.reject=function(p){var Y=this;return this.findAll(p).map(function(J){return Y.forget(J),Y.notify(J,"rejected"),J})},_.prototype.forget=function(p){return this.guarantor.forget(p),this.subscriptions=this.subscriptions.filter(function(Y){return Y!==p}),p},_.prototype.findAll=function(p){return this.subscriptions.filter(function(Y){return Y.identifier===p})},_.prototype.reload=function(){var p=this;return this.subscriptions.map(function(Y){return p.subscribe(Y)})},_.prototype.notifyAll=function(p){for(var Y=this,J=arguments.length,Me=Array(J>1?J-1:0),L=1;L<J;L++)Me[L-1]=arguments[L];return this.subscriptions.map(function(G){return Y.notify.apply(Y,[G,p].concat(Me))})},_.prototype.notify=function(p,Y){for(var J=arguments.length,Me=Array(J>2?J-2:0),L=2;L<J;L++)Me[L-2]=arguments[L];var G=void 0;return typeof p=="string"?G=this.findAll(p):G=[p],G.map(function(w){return typeof w[Y]=="function"?w[Y].apply(w,Me):void 0})},_.prototype.subscribe=function(p){this.sendCommand(p,"subscribe")&&this.guarantor.guarantee(p)},_.prototype.confirmSubscription=function(p){var Y=this;T.log("Subscription confirmed "+p),this.findAll(p).map(function(J){return Y.guarantor.forget(J)})},_.prototype.sendCommand=function(p,Y){var J=p.identifier;return this.consumer.send({command:Y,identifier:J})},_}(),ae=function(){function _(d){n(this,_),this._url=d,this.subscriptions=new k(this),this.connection=new W(this)}return _.prototype.send=function(p){return this.connection.send(p)},_.prototype.connect=function(){return this.connection.open()},_.prototype.disconnect=function(){return this.connection.close({allowReconnect:!1})},_.prototype.ensureActiveConnection=function(){if(!this.connection.isActive())return this.connection.open()},R(_,[{key:"url",get:function(){return ie(this._url)}}]),_}();function ie(_){if(typeof _=="function"&&(_=_()),_&&!/^wss?:/i.test(_)){var d=document.createElement("a");return d.href=_,d.href=d.href,d.protocol=d.protocol.replace("http","ws"),d.href}else return _}function $(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:X("url")||N.default_mount_path;return new ae(_)}function X(_){var d=document.head.querySelector("meta[name='action-cable-"+_+"']");if(d)return d.getAttribute("content")}E.Connection=W,E.ConnectionMonitor=O,E.Consumer=ae,E.INTERNAL=N,E.Subscription=ee,E.Subscriptions=k,E.SubscriptionGuarantor=x,E.adapters=s,E.createWebSocketURL=ie,E.logger=T,E.createConsumer=$,E.getConfig=X,Object.defineProperty(E,"__esModule",{value:!0})})})(mT,mT.exports);var Sa=mT.exports;function An(e,t){return P(),y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[S("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 Oa(e,t){return P(),y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[S("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 or(e,t){return P(),y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[S("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 aa(e,t){return P(),y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[S("path",{"fill-rule":"evenodd",d:"M5.22 10.22a.75.75 0 0 1 1.06 0L8 11.94l1.72-1.72a.75.75 0 1 1 1.06 1.06l-2.25 2.25a.75.75 0 0 1-1.06 0l-2.25-2.25a.75.75 0 0 1 0-1.06ZM10.78 5.78a.75.75 0 0 1-1.06 0L8 4.06 6.28 5.78a.75.75 0 0 1-1.06-1.06l2.25-2.25a.75.75 0 0 1 1.06 0l2.25 2.25a.75.75 0 0 1 0 1.06Z","clip-rule":"evenodd"})])}function Fo(e,t){return P(),y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[S("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"}),S("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"}),S("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 Ia(e,t){return P(),y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[S("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 Na(e,t){return P(),y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[S("path",{d:"M6 6v4h4V6H6Z"}),S("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 Sn(e,t){return P(),y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[S("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 On(e,t){return P(),y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[S("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 la(e,t){return P(),y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[S("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 _a(e,t){return P(),y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[S("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"})])}class Ca{constructor(t){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");je(this,"httpCalls");var E;this.id=(t==null?void 0:t.id)||"null",this.meta=(t==null?void 0:t.meta)||{},this.request={...t==null?void 0:t.request,url:(E=t==null?void 0:t.request)!=null&&E.url?new URL(t==null?void 0:t.request.url):new URL("http://localhost")},this.response=(t==null?void 0:t.response)||{},this.models=(t==null?void 0:t.models)||{},this.queries=(t==null?void 0:t.queries)||[],this.jobs=(t==null?void 0:t.jobs)||[],this.messages=(t==null?void 0:t.messages)||[],this.cache=(t==null?void 0:t.cache)||[],this.logs=(t==null?void 0:t.logs)||[],this.httpCalls=((t==null?void 0:t.http_calls)||[]).map(s=>{var T;return{...s,request:{...s.request,url:(T=s.request)!=null&&T.url?new URL(s.request.url):new URL("http://localhost")}}})}get modelsCount(){return Object.values(this.models).reduce((t,E)=>t+E,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((t,E)=>(t.indexOf(E.transaction_id)===-1&&t.push(E.transaction_id),t),[]).length}get httpCount(){return this.httpCalls.length}get routeAlias(){return`${this.meta.controller}#${this.meta.action}`}get dataForTabs(){const t={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&&(t.logs={label:"Logs"}),this.httpCalls.length>0&&(t.http={label:"Http",count:this.httpCount}),t}}function ca(e,t,E){switch(E.length){case 0:return e.call(t);case 1:return e.call(t,E[0]);case 2:return e.call(t,E[0],E[1]);case 3:return e.call(t,E[0],E[1],E[2])}return e.apply(t,E)}var vo=ca;function La(e){return e}var Yo=La,ua=vo,an=Math.max;function fa(e,t,E){return t=an(t===void 0?e.length-1:t,0),function(){for(var s=arguments,T=-1,r=an(s.length-t,0),n=Array(r);++T<r;)n[T]=s[t+T];T=-1;for(var R=Array(t+1);++T<t;)R[T]=s[T];return R[t]=E(n),ua(e,this,R)}}var pa=fa;function Da(e){return function(){return e}}var Pa=Da,da=typeof eE=="object"&&eE&&eE.Object===Object&&eE,Vo=da,Ma=Vo,Ua=typeof self=="object"&&self&&self.Object===Object&&self,ha=Ma||Ua||Function("return this")(),AE=ha,Ga=AE,ga=Ga.Symbol,xo=ga,In=xo,wo=Object.prototype,ma=wo.hasOwnProperty,Ha=wo.toString,_E=In?In.toStringTag:void 0;function ba(e){var t=ma.call(e,_E),E=e[_E];try{e[_E]=void 0;var s=!0}catch{}var T=Ha.call(e);return s&&(t?e[_E]=E:delete e[_E]),T}var Ba=ba,ya=Object.prototype,Fa=ya.toString;function va(e){return Fa.call(e)}var Ya=va,Nn=xo,Va=Ba,xa=Ya,wa="[object Null]",Wa="[object Undefined]",ln=Nn?Nn.toStringTag:void 0;function Xa(e){return e==null?e===void 0?Wa:wa:ln&&ln in Object(e)?Va(e):xa(e)}var gs=Xa;function Ka(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ht=Ka,$a=gs,Ja=ht,ka="[object AsyncFunction]",qa="[object Function]",ja="[object GeneratorFunction]",Qa="[object Proxy]";function Za(e){if(!Ja(e))return!1;var t=$a(e);return t==qa||t==ja||t==ka||t==Qa}var Ar=Za,za=AE,eI=za["__core-js_shared__"],tI=eI,js=tI,_n=function(){var e=/[^.]+$/.exec(js&&js.keys&&js.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function EI(e){return!!_n&&_n in e}var sI=EI,TI=Function.prototype,rI=TI.toString;function nI(e){if(e!=null){try{return rI.call(e)}catch{}try{return e+""}catch{}}return""}var RI=nI,oI=Ar,AI=sI,iI=ht,SI=RI,OI=/[\\^$.*+?()[\]{}|]/g,aI=/^\[object .+?Constructor\]$/,II=Function.prototype,NI=Object.prototype,lI=II.toString,_I=NI.hasOwnProperty,CI=RegExp("^"+lI.call(_I).replace(OI,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function cI(e){if(!iI(e)||AI(e))return!1;var t=oI(e)?CI:aI;return t.test(SI(e))}var LI=cI;function uI(e,t){return e==null?void 0:e[t]}var fI=uI,pI=LI,DI=fI;function PI(e,t){var E=DI(e,t);return pI(E)?E:void 0}var ir=PI,dI=ir,MI=function(){try{var e=dI(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Wo=MI,UI=Pa,Cn=Wo,hI=Yo,GI=Cn?function(e,t){return Cn(e,"toString",{configurable:!0,enumerable:!1,value:UI(t),writable:!0})}:hI,gI=GI,mI=800,HI=16,bI=Date.now;function BI(e){var t=0,E=0;return function(){var s=bI(),T=HI-(s-E);if(E=s,T>0){if(++t>=mI)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var yI=BI,FI=gI,vI=yI,YI=vI(FI),VI=YI,xI=Yo,wI=pa,WI=VI;function XI(e,t){return WI(wI(e,t,xI),e+"")}var Xo=XI;function KI(){this.__data__=[],this.size=0}var $I=KI;function JI(e,t){return e===t||e!==e&&t!==t}var ms=JI,kI=ms;function qI(e,t){for(var E=e.length;E--;)if(kI(e[E][0],t))return E;return-1}var Hs=qI,jI=Hs,QI=Array.prototype,ZI=QI.splice;function zI(e){var t=this.__data__,E=jI(t,e);if(E<0)return!1;var s=t.length-1;return E==s?t.pop():ZI.call(t,E,1),--this.size,!0}var eN=zI,tN=Hs;function EN(e){var t=this.__data__,E=tN(t,e);return E<0?void 0:t[E][1]}var sN=EN,TN=Hs;function rN(e){return TN(this.__data__,e)>-1}var nN=rN,RN=Hs;function oN(e,t){var E=this.__data__,s=RN(E,e);return s<0?(++this.size,E.push([e,t])):E[s][1]=t,this}var AN=oN,iN=$I,SN=eN,ON=sN,aN=nN,IN=AN;function iE(e){var t=-1,E=e==null?0:e.length;for(this.clear();++t<E;){var s=e[t];this.set(s[0],s[1])}}iE.prototype.clear=iN;iE.prototype.delete=SN;iE.prototype.get=ON;iE.prototype.has=aN;iE.prototype.set=IN;var bs=iE,NN=bs;function lN(){this.__data__=new NN,this.size=0}var _N=lN;function CN(e){var t=this.__data__,E=t.delete(e);return this.size=t.size,E}var cN=CN;function LN(e){return this.__data__.get(e)}var uN=LN;function fN(e){return this.__data__.has(e)}var pN=fN,DN=ir,PN=AE,dN=DN(PN,"Map"),Ko=dN,MN=ir,UN=MN(Object,"create"),Bs=UN,cn=Bs;function hN(){this.__data__=cn?cn(null):{},this.size=0}var GN=hN;function gN(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var mN=gN,HN=Bs,bN="__lodash_hash_undefined__",BN=Object.prototype,yN=BN.hasOwnProperty;function FN(e){var t=this.__data__;if(HN){var E=t[e];return E===bN?void 0:E}return yN.call(t,e)?t[e]:void 0}var vN=FN,YN=Bs,VN=Object.prototype,xN=VN.hasOwnProperty;function wN(e){var t=this.__data__;return YN?t[e]!==void 0:xN.call(t,e)}var WN=wN,XN=Bs,KN="__lodash_hash_undefined__";function $N(e,t){var E=this.__data__;return this.size+=this.has(e)?0:1,E[e]=XN&&t===void 0?KN:t,this}var JN=$N,kN=GN,qN=mN,jN=vN,QN=WN,ZN=JN;function SE(e){var t=-1,E=e==null?0:e.length;for(this.clear();++t<E;){var s=e[t];this.set(s[0],s[1])}}SE.prototype.clear=kN;SE.prototype.delete=qN;SE.prototype.get=jN;SE.prototype.has=QN;SE.prototype.set=ZN;var zN=SE,Ln=zN,el=bs,tl=Ko;function El(){this.size=0,this.__data__={hash:new Ln,map:new(tl||el),string:new Ln}}var sl=El;function Tl(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var rl=Tl,nl=rl;function Rl(e,t){var E=e.__data__;return nl(t)?E[typeof t=="string"?"string":"hash"]:E.map}var ys=Rl,ol=ys;function Al(e){var t=ol(this,e).delete(e);return this.size-=t?1:0,t}var il=Al,Sl=ys;function Ol(e){return Sl(this,e).get(e)}var al=Ol,Il=ys;function Nl(e){return Il(this,e).has(e)}var ll=Nl,_l=ys;function Cl(e,t){var E=_l(this,e),s=E.size;return E.set(e,t),this.size+=E.size==s?0:1,this}var cl=Cl,Ll=sl,ul=il,fl=al,pl=ll,Dl=cl;function OE(e){var t=-1,E=e==null?0:e.length;for(this.clear();++t<E;){var s=e[t];this.set(s[0],s[1])}}OE.prototype.clear=Ll;OE.prototype.delete=ul;OE.prototype.get=fl;OE.prototype.has=pl;OE.prototype.set=Dl;var Pl=OE,dl=bs,Ml=Ko,Ul=Pl,hl=200;function Gl(e,t){var E=this.__data__;if(E instanceof dl){var s=E.__data__;if(!Ml||s.length<hl-1)return s.push([e,t]),this.size=++E.size,this;E=this.__data__=new Ul(s)}return E.set(e,t),this.size=E.size,this}var gl=Gl,ml=bs,Hl=_N,bl=cN,Bl=uN,yl=pN,Fl=gl;function aE(e){var t=this.__data__=new ml(e);this.size=t.size}aE.prototype.clear=Hl;aE.prototype.delete=bl;aE.prototype.get=Bl;aE.prototype.has=yl;aE.prototype.set=Fl;var vl=aE,un=Wo;function Yl(e,t,E){t=="__proto__"&&un?un(e,t,{configurable:!0,enumerable:!0,value:E,writable:!0}):e[t]=E}var Sr=Yl,Vl=Sr,xl=ms;function wl(e,t,E){(E!==void 0&&!xl(e[t],E)||E===void 0&&!(t in e))&&Vl(e,t,E)}var $o=wl;function Wl(e){return function(t,E,s){for(var T=-1,r=Object(t),n=s(t),R=n.length;R--;){var o=n[e?R:++T];if(E(r[o],o,r)===!1)break}return t}}var Xl=Wl,Kl=Xl,$l=Kl(),Jl=$l,Os={exports:{}};Os.exports;(function(e,t){var E=AE,s=t&&!t.nodeType&&t,T=s&&!0&&e&&!e.nodeType&&e,r=T&&T.exports===s,n=r?E.Buffer:void 0,R=n?n.allocUnsafe:void 0;function o(i,A){if(A)return i.slice();var O=i.length,N=R?R(O):new i.constructor(O);return i.copy(N),N}e.exports=o})(Os,Os.exports);var kl=Os.exports,ql=AE,jl=ql.Uint8Array,Ql=jl,fn=Ql;function Zl(e){var t=new e.constructor(e.byteLength);return new fn(t).set(new fn(e)),t}var zl=Zl,e_=zl;function t_(e,t){var E=t?e_(e.buffer):e.buffer;return new e.constructor(E,e.byteOffset,e.length)}var E_=t_;function s_(e,t){var E=-1,s=e.length;for(t||(t=Array(s));++E<s;)t[E]=e[E];return t}var T_=s_,r_=ht,pn=Object.create,n_=function(){function e(){}return function(t){if(!r_(t))return{};if(pn)return pn(t);e.prototype=t;var E=new e;return e.prototype=void 0,E}}(),R_=n_;function o_(e,t){return function(E){return e(t(E))}}var A_=o_,i_=A_,S_=i_(Object.getPrototypeOf,Object),Jo=S_,O_=Object.prototype;function a_(e){var t=e&&e.constructor,E=typeof t=="function"&&t.prototype||O_;return e===E}var ko=a_,I_=R_,N_=Jo,l_=ko;function __(e){return typeof e.constructor=="function"&&!l_(e)?I_(N_(e)):{}}var C_=__;function c_(e){return e!=null&&typeof e=="object"}var xE=c_,L_=gs,u_=xE,f_="[object Arguments]";function p_(e){return u_(e)&&L_(e)==f_}var D_=p_,Dn=D_,P_=xE,qo=Object.prototype,d_=qo.hasOwnProperty,M_=qo.propertyIsEnumerable,U_=Dn(function(){return arguments}())?Dn:function(e){return P_(e)&&d_.call(e,"callee")&&!M_.call(e,"callee")},jo=U_,h_=Array.isArray,Qo=h_,G_=9007199254740991;function g_(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=G_}var Zo=g_,m_=Ar,H_=Zo;function b_(e){return e!=null&&H_(e.length)&&!m_(e)}var Or=b_,B_=Or,y_=xE;function F_(e){return y_(e)&&B_(e)}var v_=F_,as={exports:{}};function Y_(){return!1}var V_=Y_;as.exports;(function(e,t){var E=AE,s=V_,T=t&&!t.nodeType&&t,r=T&&!0&&e&&!e.nodeType&&e,n=r&&r.exports===T,R=n?E.Buffer:void 0,o=R?R.isBuffer:void 0,i=o||s;e.exports=i})(as,as.exports);var zo=as.exports,x_=gs,w_=Jo,W_=xE,X_="[object Object]",K_=Function.prototype,$_=Object.prototype,eA=K_.toString,J_=$_.hasOwnProperty,k_=eA.call(Object);function q_(e){if(!W_(e)||x_(e)!=X_)return!1;var t=w_(e);if(t===null)return!0;var E=J_.call(t,"constructor")&&t.constructor;return typeof E=="function"&&E instanceof E&&eA.call(E)==k_}var j_=q_,Q_=gs,Z_=Zo,z_=xE,eC="[object Arguments]",tC="[object Array]",EC="[object Boolean]",sC="[object Date]",TC="[object Error]",rC="[object Function]",nC="[object Map]",RC="[object Number]",oC="[object Object]",AC="[object RegExp]",iC="[object Set]",SC="[object String]",OC="[object WeakMap]",aC="[object ArrayBuffer]",IC="[object DataView]",NC="[object Float32Array]",lC="[object Float64Array]",_C="[object Int8Array]",CC="[object Int16Array]",cC="[object Int32Array]",LC="[object Uint8Array]",uC="[object Uint8ClampedArray]",fC="[object Uint16Array]",pC="[object Uint32Array]",ce={};ce[NC]=ce[lC]=ce[_C]=ce[CC]=ce[cC]=ce[LC]=ce[uC]=ce[fC]=ce[pC]=!0;ce[eC]=ce[tC]=ce[aC]=ce[EC]=ce[IC]=ce[sC]=ce[TC]=ce[rC]=ce[nC]=ce[RC]=ce[oC]=ce[AC]=ce[iC]=ce[SC]=ce[OC]=!1;function DC(e){return z_(e)&&Z_(e.length)&&!!ce[Q_(e)]}var PC=DC;function dC(e){return function(t){return e(t)}}var MC=dC,Is={exports:{}};Is.exports;(function(e,t){var E=Vo,s=t&&!t.nodeType&&t,T=s&&!0&&e&&!e.nodeType&&e,r=T&&T.exports===s,n=r&&E.process,R=function(){try{var o=T&&T.require&&T.require("util").types;return o||n&&n.binding&&n.binding("util")}catch{}}();e.exports=R})(Is,Is.exports);var UC=Is.exports,hC=PC,GC=MC,Pn=UC,dn=Pn&&Pn.isTypedArray,gC=dn?GC(dn):hC,tA=gC;function mC(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var EA=mC,HC=Sr,bC=ms,BC=Object.prototype,yC=BC.hasOwnProperty;function FC(e,t,E){var s=e[t];(!(yC.call(e,t)&&bC(s,E))||E===void 0&&!(t in e))&&HC(e,t,E)}var vC=FC,YC=vC,VC=Sr;function xC(e,t,E,s){var T=!E;E||(E={});for(var r=-1,n=t.length;++r<n;){var R=t[r],o=s?s(E[R],e[R],R,E,e):void 0;o===void 0&&(o=e[R]),T?VC(E,R,o):YC(E,R,o)}return E}var wC=xC;function WC(e,t){for(var E=-1,s=Array(e);++E<e;)s[E]=t(E);return s}var XC=WC,KC=9007199254740991,$C=/^(?:0|[1-9]\d*)$/;function JC(e,t){var E=typeof e;return t=t??KC,!!t&&(E=="number"||E!="symbol"&&$C.test(e))&&e>-1&&e%1==0&&e<t}var sA=JC,kC=XC,qC=jo,jC=Qo,QC=zo,ZC=sA,zC=tA,ec=Object.prototype,tc=ec.hasOwnProperty;function Ec(e,t){var E=jC(e),s=!E&&qC(e),T=!E&&!s&&QC(e),r=!E&&!s&&!T&&zC(e),n=E||s||T||r,R=n?kC(e.length,String):[],o=R.length;for(var i in e)(t||tc.call(e,i))&&!(n&&(i=="length"||T&&(i=="offset"||i=="parent")||r&&(i=="buffer"||i=="byteLength"||i=="byteOffset")||ZC(i,o)))&&R.push(i);return R}var sc=Ec;function Tc(e){var t=[];if(e!=null)for(var E in Object(e))t.push(E);return t}var rc=Tc,nc=ht,Rc=ko,oc=rc,Ac=Object.prototype,ic=Ac.hasOwnProperty;function Sc(e){if(!nc(e))return oc(e);var t=Rc(e),E=[];for(var s in e)s=="constructor"&&(t||!ic.call(e,s))||E.push(s);return E}var Oc=Sc,ac=sc,Ic=Oc,Nc=Or;function lc(e){return Nc(e)?ac(e,!0):Ic(e)}var TA=lc,_c=wC,Cc=TA;function cc(e){return _c(e,Cc(e))}var Lc=cc,Mn=$o,uc=kl,fc=E_,pc=T_,Dc=C_,Un=jo,hn=Qo,Pc=v_,dc=zo,Mc=Ar,Uc=ht,hc=j_,Gc=tA,Gn=EA,gc=Lc;function mc(e,t,E,s,T,r,n){var R=Gn(e,E),o=Gn(t,E),i=n.get(o);if(i){Mn(e,E,i);return}var A=r?r(R,o,E+"",e,t,n):void 0,O=A===void 0;if(O){var N=hn(o),l=!N&&dc(o),C=!N&&!l&&Gc(o);A=o,N||l||C?hn(R)?A=R:Pc(R)?A=pc(R):l?(O=!1,A=uc(o,!0)):C?(O=!1,A=fc(o,!0)):A=[]:hc(o)||Un(o)?(A=R,Un(R)?A=gc(R):(!Uc(R)||Mc(R))&&(A=Dc(o))):O=!1}O&&(n.set(o,A),T(A,o,s,r,n),n.delete(o)),Mn(e,E,A)}var Hc=mc,bc=vl,Bc=$o,yc=Jl,Fc=Hc,vc=ht,Yc=TA,Vc=EA;function rA(e,t,E,s,T){e!==t&&yc(t,function(r,n){if(T||(T=new bc),vc(r))Fc(e,t,n,E,rA,s,T);else{var R=s?s(Vc(e,n),r,n+"",e,t,T):void 0;R===void 0&&(R=r),Bc(e,n,R)}},Yc)}var nA=rA,xc=nA,gn=ht;function RA(e,t,E,s,T,r){return gn(e)&&gn(t)&&(r.set(t,e),xc(e,t,void 0,RA,r),r.delete(t)),e}var wc=RA,Wc=ms,Xc=Or,Kc=sA,$c=ht;function Jc(e,t,E){if(!$c(E))return!1;var s=typeof t;return(s=="number"?Xc(E)&&Kc(t,E.length):s=="string"&&t in E)?Wc(E[t],e):!1}var kc=Jc,qc=Xo,jc=kc;function Qc(e){return qc(function(t,E){var s=-1,T=E.length,r=T>1?E[T-1]:void 0,n=T>2?E[2]:void 0;for(r=e.length>3&&typeof r=="function"?(T--,r):void 0,n&&jc(E[0],E[1],n)&&(r=T<3?void 0:r,T=1),t=Object(t);++s<T;){var R=E[s];R&&e(t,R,s,r)}return t})}var Zc=Qc,zc=nA,eL=Zc,tL=eL(function(e,t,E,s){zc(e,t,E,s)}),EL=tL,sL=vo,TL=Xo,rL=wc,nL=EL,RL=TL(function(e){return e.push(void 0,rL),sL(nL,void 0,e)}),oL=RL;const AL=yT(oL);function iL(e){return/mysql|triology/.test(e)?"mysql":/pg|postgres/.test(e)?"postgresql":/sqlite/.test(e)?"sqlite":"sql"}function SL(e){const t=AL(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 t.actionCableUrl=`${t.cable.url}${t.prefix}/cable`,t.pollUrl=`${t.poll.url}${t.prefix}/poll`,t.sqlDialect=iL(t.activeRecord.adapter),t}let ar=Bo("config",{state:()=>({config:SL(window._debugbarConfigOptions)})}),OL=Bo("requests",{state:()=>({requests:[],currentRequest:null}),getters:{requestCount(e){return e.requests.length}},actions:{addRequests(e){const t=[];for(e.forEach(E=>{this.requests.find(s=>s.id===E.id)||this.requests.push(new Ca(E)),t.push(E.id)});this.requests.length>ar().config.maxRequests;)this.requests.shift();return t},setCurrentRequestById(e){this.currentRequest=this.requests.find(t=>t.id===e)},clearRequests(){this.requests=[],this.currentRequest=null}}});const Ir=(e,t)=>{const E=e.__vccOpts||e;for(const[s,T]of t)E[s]=T;return E},aL={},IL={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"};function NL(e,t){return P(),y("svg",IL,t[0]||(t[0]=[S("metadata",{id:"metadata3320"},[S("rdf:RDF",null,[S("cc:Work",{"rdf:about":""},[S("dc:format",null,"image/svg+xml"),S("dc:type",{"rdf:resource":"http://purl.org/dc/dcmitype/StillImage"})])])],-1),S("defs",{id:"defs3489"},[S("linearGradient",{id:"XMLID_17_-9",gradientUnits:"userSpaceOnUse",x1:"174.0737",y1:"215.5488",x2:"132.27631",y2:"141.7533"},[S("stop",{offset:"0",style:{"stop-color":"#fb7655"},id:"stop3272-4"}),S("stop",{offset:"0",style:{"stop-color":"#fb7655"},id:"stop3274-5"}),S("stop",{offset:"0.41",style:{"stop-color":"#e42b1e"},id:"stop3276-1"}),S("stop",{offset:"0.99",style:{"stop-color":"#990000"},id:"stop3278-0"}),S("stop",{offset:"1",style:{"stop-color":"#990000"},id:"stop3280-3"})]),S("linearGradient",{id:"XMLID_18_-7",gradientUnits:"userSpaceOnUse",x1:"194.895",y1:"153.5576",x2:"141.0276",y2:"117.4093"},[S("stop",{offset:"0",style:{"stop-color":"#871101"},id:"stop3285-8"}),S("stop",{offset:"0",style:{"stop-color":"#871101"},id:"stop3287-8"}),S("stop",{offset:"0.99",style:{"stop-color":"#911209"},id:"stop3289-6"}),S("stop",{offset:"1",style:{"stop-color":"#911209"},id:"stop3291-0"})]),S("linearGradient",{id:"XMLID_19_-4",gradientUnits:"userSpaceOnUse",x1:"151.79539",y1:"217.7852",x2:"97.929703",y2:"181.638"},[S("stop",{offset:"0",style:{"stop-color":"#871101"},id:"stop3296-6"}),S("stop",{offset:"0",style:{"stop-color":"#871101"},id:"stop3298-7"}),S("stop",{offset:"0.99",style:{"stop-color":"#911209"},id:"stop3300-6"}),S("stop",{offset:"1",style:{"stop-color":"#911209"},id:"stop3302-0"})]),S("linearGradient",{id:"XMLID_20_-9",gradientUnits:"userSpaceOnUse",x1:"38.696301",y1:"127.3906",x2:"47.046902",y2:"181.66141"},[S("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3307-7"}),S("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3309-5"}),S("stop",{offset:"0.23",style:{"stop-color":"#e57252"},id:"stop3311-9"}),S("stop",{offset:"0.46",style:{"stop-color":"#de3b20"},id:"stop3313-7"}),S("stop",{offset:"0.99",style:{"stop-color":"#a60003"},id:"stop3315-8"}),S("stop",{offset:"1",style:{"stop-color":"#a60003"},id:"stop3317-5"})]),S("linearGradient",{id:"XMLID_21_-3",gradientUnits:"userSpaceOnUse",x1:"96.132797",y1:"76.715302",x2:"99.209602",y2:"132.1021"},[S("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3322-3"}),S("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3324-8"}),S("stop",{offset:"0.23",style:{"stop-color":"#e4714e"},id:"stop3326-3"}),S("stop",{offset:"0.56",style:{"stop-color":"#be1a0d"},id:"stop3328-7"}),S("stop",{offset:"0.99",style:{"stop-color":"#a80d00"},id:"stop3330-9"}),S("stop",{offset:"1",style:{"stop-color":"#a80d00"},id:"stop3332-3"})]),S("linearGradient",{id:"XMLID_22_-7",gradientUnits:"userSpaceOnUse",x1:"147.103",y1:"25.521",x2:"156.3141",y2:"65.216202"},[S("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3337-8"}),S("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3339-7"}),S("stop",{offset:"0.18",style:{"stop-color":"#e46342"},id:"stop3341-4"}),S("stop",{offset:"0.4",style:{"stop-color":"#c82410"},id:"stop3343-1"}),S("stop",{offset:"0.99",style:{"stop-color":"#a80d00"},id:"stop3345-9"}),S("stop",{offset:"1",style:{"stop-color":"#a80d00"},id:"stop3347-0"})]),S("linearGradient",{id:"XMLID_23_-9",gradientUnits:"userSpaceOnUse",x1:"118.9761",y1:"11.5415",x2:"158.66859",y2:"-8.3048"},[S("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3352-8"}),S("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3354-8"}),S("stop",{offset:"0.54",style:{"stop-color":"#c81f11"},id:"stop3356-5"}),S("stop",{offset:"0.99",style:{"stop-color":"#bf0905"},id:"stop3358-8"}),S("stop",{offset:"1",style:{"stop-color":"#bf0905"},id:"stop3360-4"})]),S("linearGradient",{id:"XMLID_24_-3",gradientUnits:"userSpaceOnUse",x1:"3.9033",y1:"113.5547",x2:"7.1701999",y2:"146.2628"},[S("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3365-7"}),S("stop",{offset:"0",style:{"stop-color":"#ffffff"},id:"stop3367-1"}),S("stop",{offset:"0.31",style:{"stop-color":"#de4024"},id:"stop3369-3"}),S("stop",{offset:"0.99",style:{"stop-color":"#bf190b"},id:"stop3371-8"}),S("stop",{offset:"1",style:{"stop-color":"#bf190b"},id:"stop3373-0"})]),S("linearGradient",{id:"XMLID_25_-9",gradientUnits:"userSpaceOnUse",x1:"-18.5557",y1:"155.10451",x2:"135.0152",y2:"-2.8092999"},[S("stop",{offset:"0",style:{"stop-color":"#bd0012"},id:"stop3380-7"}),S("stop",{offset:"0",style:{"stop-color":"#bd0012"},id:"stop3382-9"}),S("stop",{offset:"0.07",style:{"stop-color":"#ffffff"},id:"stop3384-9"}),S("stop",{offset:"0.17",style:{"stop-color":"#ffffff"},id:"stop3386-3"}),S("stop",{offset:"0.27",style:{"stop-color":"#c82f1c"},id:"stop3388-2"}),S("stop",{offset:"0.33",style:{"stop-color":"#820c01"},id:"stop3390-4"}),S("stop",{offset:"0.46",style:{"stop-color":"#a31601"},id:"stop3392-3"}),S("stop",{offset:"0.72",style:{"stop-color":"#b31301"},id:"stop3394-7"}),S("stop",{offset:"0.99",style:{"stop-color":"#e82609"},id:"stop3396-1"}),S("stop",{offset:"1",style:{"stop-color":"#e82609"},id:"stop3398-2"})]),S("linearGradient",{id:"XMLID_26_-2",gradientUnits:"userSpaceOnUse",x1:"99.074699",y1:"171.0332",x2:"52.817699",y2:"159.61659"},[S("stop",{offset:"0",style:{"stop-color":"#8c0c01"},id:"stop3403-0"}),S("stop",{offset:"0",style:{"stop-color":"#8c0c01"},id:"stop3405-2"}),S("stop",{offset:"0.54",style:{"stop-color":"#990c00"},id:"stop3407-1"}),S("stop",{offset:"0.99",style:{"stop-color":"#a80d0e"},id:"stop3409-7"}),S("stop",{offset:"1",style:{"stop-color":"#a80d0e"},id:"stop3411-5"})]),S("linearGradient",{id:"XMLID_27_-1",gradientUnits:"userSpaceOnUse",x1:"178.52589",y1:"115.5146",x2:"137.43269",y2:"78.683998"},[S("stop",{offset:"0",style:{"stop-color":"#7e110b"},id:"stop3416-7"}),S("stop",{offset:"0",style:{"stop-color":"#7e110b"},id:"stop3418-4"}),S("stop",{offset:"0.99",style:{"stop-color":"#9e0c00"},id:"stop3420-1"}),S("stop",{offset:"1",style:{"stop-color":"#9e0c00"},id:"stop3422-7"})]),S("linearGradient",{id:"XMLID_28_-1",gradientUnits:"userSpaceOnUse",x1:"193.6235",y1:"47.937",x2:"173.15421",y2:"26.053801"},[S("stop",{offset:"0",style:{"stop-color":"#79130d"},id:"stop3427-1"}),S("stop",{offset:"0",style:{"stop-color":"#79130d"},id:"stop3429-1"}),S("stop",{offset:"0.99",style:{"stop-color":"#9e120b"},id:"stop3431-7"}),S("stop",{offset:"1",style:{"stop-color":"#9e120b"},id:"stop3433-0"})]),S("radialGradient",{id:"XMLID_29_-4",cx:"143.8315",cy:"79.388199",r:"50.357601",gradientUnits:"userSpaceOnUse"},[S("stop",{offset:"0",style:{"stop-color":"#a80d00"},id:"stop3440-0"}),S("stop",{offset:"0",style:{"stop-color":"#a80d00"},id:"stop3442-8"}),S("stop",{offset:"0.99",style:{"stop-color":"#7e0e08"},id:"stop3444-5"}),S("stop",{offset:"1",style:{"stop-color":"#7e0e08"},id:"stop3446-1"})]),S("radialGradient",{id:"XMLID_30_-6",cx:"74.0923",cy:"145.75101",r:"66.943703",gradientUnits:"userSpaceOnUse"},[S("stop",{offset:"0",style:{"stop-color":"#a30c00"},id:"stop3451-6"}),S("stop",{offset:"0",style:{"stop-color":"#a30c00"},id:"stop3453-2"}),S("stop",{offset:"0.99",style:{"stop-color":"#800e08"},id:"stop3455-1"}),S("stop",{offset:"1",style:{"stop-color":"#800e08"},id:"stop3457-9"})]),S("linearGradient",{id:"XMLID_31_-6",gradientUnits:"userSpaceOnUse",x1:"26.669901",y1:"197.33591",x2:"9.9886999",y2:"140.742"},[S("stop",{offset:"0",style:{"stop-color":"#8b2114"},id:"stop3462-4"}),S("stop",{offset:"0",style:{"stop-color":"#8b2114"},id:"stop3464-8"}),S("stop",{offset:"0.43",style:{"stop-color":"#9e100a"},id:"stop3466-0"}),S("stop",{offset:"0.99",style:{"stop-color":"#b3100c"},id:"stop3468-8"}),S("stop",{offset:"1",style:{"stop-color":"#b3100c"},id:"stop3470-1"})]),S("linearGradient",{id:"XMLID_32_-0",gradientUnits:"userSpaceOnUse",x1:"154.6411",y1:"9.7979002",x2:"192.039",y2:"26.305901"},[S("stop",{offset:"0",style:{"stop-color":"#b31000"},id:"stop3475-2"}),S("stop",{offset:"0",style:{"stop-color":"#b31000"},id:"stop3477-2"}),S("stop",{offset:"0.44",style:{"stop-color":"#910f08"},id:"stop3479-9"}),S("stop",{offset:"0.99",style:{"stop-color":"#791c12"},id:"stop3481-7"}),S("stop",{offset:"1",style:{"stop-color":"#791c12"},id:"stop3483-5"})]),S("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),S("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),lO('<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),S("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),S("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),S("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),S("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),S("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),S("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),S("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),S("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),S("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),S("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)]))}const oA=Ir(aL,[["render",NL]]),lL=["textContent"],_L=Ne({__name:"TabButton",props:{label:{},count:{},isActive:{type:Boolean}},setup(e){const t=e;return(E,s)=>(P(),y("button",{class:ge(["text-sm flex items-center space-x-1 px-2 py-1.5 border-0",{"bg-stone-300 rounded-t-sm cursor-auto":t.isActive}])},[S("span",{class:ge({"font-medium":t.isActive})},[st(E.$slots,"default")],2),t.count!=null?(P(),y("span",{key:0,class:ge(["p-0.5 rounded-full text-xs",{"px-1.5":t.count<10,hidden:t.count==0,"bg-stone-300":t.count>0&&!t.isActive,"bg-stone-400":t.count>0&&t.isActive}]),textContent:ne(t.count)},null,10,lL)):Ee("",!0)],2))}}),CL=["textContent"],Nr=Ne({__name:"StatusCode",props:{code:{}},setup(e){const t=e;return(E,s)=>(P(),y("span",{class:ge(["px-1 py-0.5 rounded text-xs",{"bg-green-600 text-white":t.code<300,"bg-blue-500 text-white":t.code>=300&&t.code<400,"bg-amber-600 text-white":t.code>=400&&t.code<500,"bg-red-600 text-white":t.code>=500}]),textContent:ne(t.code)},null,10,CL))}});var AA={exports:{}};(function(e){(function(t,E){e.exports?e.exports=E():t.nearley=E()})(eE,function(){function t(i,A,O){return this.id=++t.highestId,this.name=i,this.symbols=A,this.postprocess=O,this}t.highestId=0,t.prototype.toString=function(i){var A=typeof i>"u"?this.symbols.map(o).join(" "):this.symbols.slice(0,i).map(o).join(" ")+" ● "+this.symbols.slice(i).map(o).join(" ");return this.name+" → "+A};function E(i,A,O,N){this.rule=i,this.dot=A,this.reference=O,this.data=[],this.wantedBy=N,this.isComplete=this.dot===i.symbols.length}E.prototype.toString=function(){return"{"+this.rule.toString(this.dot)+"}, from: "+(this.reference||0)},E.prototype.nextState=function(i){var A=new E(this.rule,this.dot+1,this.reference,this.wantedBy);return A.left=this,A.right=i,A.isComplete&&(A.data=A.build(),A.right=void 0),A},E.prototype.build=function(){var i=[],A=this;do i.push(A.right.data),A=A.left;while(A.left);return i.reverse(),i},E.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,n.fail))};function s(i,A){this.grammar=i,this.index=A,this.states=[],this.wants={},this.scannable=[],this.completed={}}s.prototype.process=function(i){for(var A=this.states,O=this.wants,N=this.completed,l=0;l<A.length;l++){var C=A[l];if(C.isComplete){if(C.finish(),C.data!==n.fail){for(var H=C.wantedBy,Q=H.length;Q--;){var W=H[Q];this.complete(W,C)}if(C.reference===this.index){var j=C.rule.name;(this.completed[j]=this.completed[j]||[]).push(C)}}}else{var j=C.rule.symbols[C.dot];if(typeof j!="string"){this.scannable.push(C);continue}if(O[j]){if(O[j].push(C),N.hasOwnProperty(j))for(var ee=N[j],Q=0;Q<ee.length;Q++){var x=ee[Q];this.complete(C,x)}}else O[j]=[C],this.predict(j)}}},s.prototype.predict=function(i){for(var A=this.grammar.byName[i]||[],O=0;O<A.length;O++){var N=A[O],l=this.wants[i],C=new E(N,0,this.index,l);this.states.push(C)}},s.prototype.complete=function(i,A){var O=i.nextState(A);this.states.push(O)};function T(i,A){this.rules=i,this.start=A||this.rules[0].name;var O=this.byName={};this.rules.forEach(function(N){O.hasOwnProperty(N.name)||(O[N.name]=[]),O[N.name].push(N)})}T.fromCompiled=function(N,A){var O=N.Lexer;N.ParserStart&&(A=N.ParserStart,N=N.ParserRules);var N=N.map(function(C){return new t(C.name,C.symbols,C.postprocess)}),l=new T(N,A);return l.lexer=O,l};function r(){this.reset("")}r.prototype.reset=function(i,A){this.buffer=i,this.index=0,this.line=A?A.line:1,this.lastLineBreak=A?-A.col:0},r.prototype.next=function(){if(this.index<this.buffer.length){var i=this.buffer[this.index++];return i===`
|
24
24
|
`&&(this.line+=1,this.lastLineBreak=this.index),{value:i}}},r.prototype.save=function(){return{line:this.line,col:this.index-this.lastLineBreak}},r.prototype.formatError=function(i,A){var O=this.buffer;if(typeof O=="string"){var N=O.split(`
|
25
25
|
`).slice(Math.max(0,this.line-5),this.line),l=O.indexOf(`
|
26
26
|
`,this.index);l===-1&&(l=O.length);var C=this.index-this.lastLineBreak,H=String(this.line).length;return A+=" at line "+this.line+" col "+C+`:
|
@@ -28,17 +28,17 @@ https://github.com/highlightjs/highlight.js/issues/2277`),ce=c,oe=G),w===void 0&
|
|
28
28
|
`,A+=N.map(function(W,j){return Q(this.line-N.length+j+1,H)+" "+W},this).join(`
|
29
29
|
`),A+=`
|
30
30
|
`+Q("",H+C)+`^
|
31
|
-
`,A}else return A+" at index "+(this.index-1);function Q(W,j){var ee=String(W);return Array(j-ee.length+1).join(" ")+ee}};function n(i,A,O){if(i instanceof T)var N=i,O=A;else var N=T.fromCompiled(i,A);this.grammar=N,this.options={keepHistory:!1,lexer:N.lexer||new r};for(var l in O||{})this.options[l]=O[l];this.lexer=this.options.lexer,this.lexerState=void 0;var C=new s(N,0);this.table=[C],C.wants[N.start]=[],C.predict(N.start),C.process(),this.current=0}n.fail={},n.prototype.feed=function(i){var A=this.lexer;A.reset(i,this.lexerState);for(var O;;){try{if(O=A.next(),!O)break}catch(ie){var H=new s(this.grammar,this.current+1);this.table.push(H);var N=new Error(this.reportLexerError(ie));throw N.offset=this.current,N.token=ie.token,N}var l=this.table[this.current];this.options.keepHistory||delete this.table[this.current-1];var C=this.current+1,H=new s(this.grammar,C);this.table.push(H);for(var Q=O.text!==void 0?O.text:O.value,W=A.constructor===r?O.value:O,j=l.scannable,ee=j.length;ee--;){var x=j[ee],k=x.rule.symbols[x.dot];if(k.test?k.test(W):k.type?k.type===O.type:k.literal===Q){var
|
31
|
+
`,A}else return A+" at index "+(this.index-1);function Q(W,j){var ee=String(W);return Array(j-ee.length+1).join(" ")+ee}};function n(i,A,O){if(i instanceof T)var N=i,O=A;else var N=T.fromCompiled(i,A);this.grammar=N,this.options={keepHistory:!1,lexer:N.lexer||new r};for(var l in O||{})this.options[l]=O[l];this.lexer=this.options.lexer,this.lexerState=void 0;var C=new s(N,0);this.table=[C],C.wants[N.start]=[],C.predict(N.start),C.process(),this.current=0}n.fail={},n.prototype.feed=function(i){var A=this.lexer;A.reset(i,this.lexerState);for(var O;;){try{if(O=A.next(),!O)break}catch(ie){var H=new s(this.grammar,this.current+1);this.table.push(H);var N=new Error(this.reportLexerError(ie));throw N.offset=this.current,N.token=ie.token,N}var l=this.table[this.current];this.options.keepHistory||delete this.table[this.current-1];var C=this.current+1,H=new s(this.grammar,C);this.table.push(H);for(var Q=O.text!==void 0?O.text:O.value,W=A.constructor===r?O.value:O,j=l.scannable,ee=j.length;ee--;){var x=j[ee],k=x.rule.symbols[x.dot];if(k.test?k.test(W):k.type?k.type===O.type:k.literal===Q){var ae=x.nextState({data:W,token:O,isToken:!0,reference:C-1});H.states.push(ae)}}if(H.process(),H.states.length===0){var N=new Error(this.reportError(O));throw N.offset=this.current,N.token=O,N}this.options.keepHistory&&(l.lexerState=A.save()),this.current++}return l&&(this.lexerState=A.save()),this.results=this.finish(),this},n.prototype.reportLexerError=function(i){var A,O,N=i.token;return N?(A="input "+JSON.stringify(N.text[0])+" (lexer error)",O=this.lexer.formatError(N,"Syntax error")):(A="input (lexer error)",O=i.message),this.reportErrorCommon(O,A)},n.prototype.reportError=function(i){var A=(i.type?i.type+" token: ":"")+JSON.stringify(i.value!==void 0?i.value:i),O=this.lexer.formatError(i,"Syntax error");return this.reportErrorCommon(O,A)},n.prototype.reportErrorCommon=function(i,A){var O=[];O.push(i);var N=this.table.length-2,l=this.table[N],C=l.states.filter(function(Q){var W=Q.rule.symbols[Q.dot];return W&&typeof W!="string"});if(C.length===0)O.push("Unexpected "+A+`. I did not expect any more input. Here is the state of my parse table:
|
32
32
|
`),this.displayStateStack(l.states,O);else{O.push("Unexpected "+A+`. Instead, I was expecting to see one of the following:
|
33
33
|
`);var H=C.map(function(Q){return this.buildFirstStateStack(Q,[])||[Q]},this);H.forEach(function(Q){var W=Q[0],j=W.rule.symbols[W.dot],ee=this.getSymbolDisplay(j);O.push("A "+ee+" based on:"),this.displayStateStack(Q,O)},this)}return O.push(""),O.join(`
|
34
|
-
`)},n.prototype.displayStateStack=function(i,A){for(var O,N=0,l=0;l<i.length;l++){var C=i[l],H=C.rule.toString(C.dot);H===O?N++:(N>0&&A.push(" ^ "+N+" more lines identical to this"),N=0,A.push(" "+H)),O=H}},n.prototype.getSymbolDisplay=function(i){return R(i)},n.prototype.buildFirstStateStack=function(i,A){if(A.indexOf(i)!==-1)return null;if(i.wantedBy.length===0)return[i];var O=i.wantedBy[0],N=[i].concat(A),l=this.buildFirstStateStack(O,N);return l===null?null:[i].concat(l)},n.prototype.save=function(){var i=this.table[this.current];return i.lexerState=this.lexerState,i},n.prototype.restore=function(i){var A=i.index;this.current=A,this.table[A]=i,this.table.splice(A+1),this.lexerState=i.lexerState,this.results=this.finish()},n.prototype.rewind=function(i){if(!this.options.keepHistory)throw new Error("set option `keepHistory` to enable rewinding");this.restore(this.table[i])},n.prototype.finish=function(){var i=[],A=this.grammar.start,O=this.table[this.table.length-1];return O.states.forEach(function(N){N.rule.name===A&&N.dot===N.rule.symbols.length&&N.reference===0&&N.data!==n.fail&&i.push(N)}),i.map(function(N){return N.data})};function R(i){var A=typeof i;if(A==="string")return i;if(A==="object"){if(i.literal)return JSON.stringify(i.literal);if(i instanceof RegExp)return"character matching "+i;if(i.type)return i.type+" token";if(i.test)return"token matching "+String(i.test);throw new Error("Unknown symbol type: "+i)}}function o(i){var A=typeof i;if(A==="string")return i;if(A==="object"){if(i.literal)return JSON.stringify(i.literal);if(i instanceof RegExp)return i.toString();if(i.type)return"%"+i.type;if(i.test)return"<"+String(i.test)+">";throw new Error("Unknown symbol type: "+i)}}return{Parser:n,Grammar:T,Rule:t}})})(AA);var cc=AA.exports;const uc=yT(cc);var iA=Object.defineProperty,pc=Object.defineProperties,fc=Object.getOwnPropertyDescriptors,Ns=Object.getOwnPropertySymbols,SA=Object.prototype.hasOwnProperty,OA=Object.prototype.propertyIsEnumerable,mn=(e,t,E)=>t in e?iA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:E}):e[t]=E,me=(e,t)=>{for(var E in t||(t={}))SA.call(t,E)&&mn(e,E,t[E]);if(Ns)for(var E of Ns(t))OA.call(t,E)&&mn(e,E,t[E]);return e},Ye=(e,t)=>pc(e,fc(t)),Dc=(e,t)=>{var E={};for(var s in e)SA.call(e,s)&&t.indexOf(s)<0&&(E[s]=e[s]);if(e!=null&&Ns)for(var s of Ns(e))t.indexOf(s)<0&&OA.call(e,s)&&(E[s]=e[s]);return E},Pc=(e,t)=>{for(var E in t)iA(e,E,{get:t[E],enumerable:!0})},IA={};Pc(IA,{bigquery:()=>Wc,db2:()=>Eu,db2i:()=>Su,hive:()=>cu,mariadb:()=>hu,mysql:()=>Fu,n1ql:()=>Ep,plsql:()=>Sp,postgresql:()=>up,redshift:()=>Gp,singlestoredb:()=>mf,snowflake:()=>xf,spark:()=>Yp,sql:()=>Tf,sqlite:()=>qp,tidb:()=>Ju,transactsql:()=>ff,trino:()=>af});var u=e=>e.flatMap(dc),dc=e=>ZE(Uc(e)).map(Mc),Mc=e=>e.replace(/ +/g," ").trim(),Uc=e=>({type:"mandatory_block",items:lr(e,0)[0]}),lr=(e,t,E)=>{const s=[];for(;e[t];){const[T,r]=hc(e,t);if(s.push(T),t=r,e[t]==="|")t++;else if(e[t]==="}"||e[t]==="]"){if(E!==e[t])throw new Error(`Unbalanced parenthesis in: ${e}`);return t++,[s,t]}else if(t===e.length){if(E)throw new Error(`Unbalanced parenthesis in: ${e}`);return[s,t]}else throw new Error(`Unexpected "${e[t]}"`)}return[s,t]},hc=(e,t)=>{const E=[];for(;;){const[s,T]=Gc(e,t);if(s)E.push(s),t=T;else break}return E.length===1?[E[0],t]:[{type:"concatenation",items:E},t]},Gc=(e,t)=>{if(e[t]==="{")return gc(e,t+1);if(e[t]==="[")return mc(e,t+1);{let E="";for(;e[t]&&/[A-Za-z0-9_ ]/.test(e[t]);)E+=e[t],t++;return[E,t]}},gc=(e,t)=>{const[E,s]=lr(e,t,"}");return[{type:"mandatory_block",items:E},s]},mc=(e,t)=>{const[E,s]=lr(e,t,"]");return[{type:"optional_block",items:E},s]},ZE=e=>{if(typeof e=="string")return[e];if(e.type==="concatenation")return e.items.map(ZE).reduce(Hc,[""]);if(e.type==="mandatory_block")return e.items.flatMap(ZE);if(e.type==="optional_block")return["",...e.items.flatMap(ZE)];throw new Error(`Unknown node type: ${e}`)},Hc=(e,t)=>{const E=[];for(const s of e)for(const T of t)E.push(s+T);return E},aA=(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.PROPERTY_ACCESS_OPERATOR="PROPERTY_ACCESS_OPERATOR",e.OPEN_PAREN="OPEN_PAREN",e.CLOSE_PAREN="CLOSE_PAREN",e.LINE_COMMENT="LINE_COMMENT",e.BLOCK_COMMENT="BLOCK_COMMENT",e.DISABLE_COMMENT="DISABLE_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))(aA||{}),NA=e=>({type:"EOF",raw:"«EOF»",text:"«EOF»",start:e}),oE=NA(1/0),Qt=e=>t=>t.type===e.type&&t.text===e.text,Wt={ARRAY:Qt({text:"ARRAY",type:"RESERVED_DATA_TYPE"}),BY:Qt({text:"BY",type:"RESERVED_KEYWORD"}),SET:Qt({text:"SET",type:"RESERVED_CLAUSE"}),STRUCT:Qt({text:"STRUCT",type:"RESERVED_DATA_TYPE"}),WINDOW:Qt({text:"WINDOW",type:"RESERVED_CLAUSE"}),VALUES:Qt({text:"VALUES",type:"RESERVED_CLAUSE"})},lA=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",Bc=e=>e==="AND"||e==="OR"||e==="XOR",bc=["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"],yc=["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"],vc=["ARRAY","BOOL","BYTES","DATE","DATETIME","GEOGRAPHY","INTERVAL","INT64","INT","SMALLINT","INTEGER","BIGINT","TINYINT","BYTEINT","NUMERIC","DECIMAL","BIGNUMERIC","BIGDECIMAL","FLOAT64","STRING","STRUCT","TIME","TIMEZONE"],Fc=u(["SELECT [ALL | DISTINCT] [AS STRUCT | AS VALUE]"]),Yc=u(["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"]),Hn=u(["CREATE [OR REPLACE] [TEMP|TEMPORARY|SNAPSHOT|EXTERNAL] TABLE [IF NOT EXISTS]"]),Qs=u(["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"]),Vc=u(["UNION {ALL | DISTINCT}","EXCEPT DISTINCT","INTERSECT DISTINCT"]),xc=u(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN"]),wc=u(["TABLESAMPLE SYSTEM","ANY TYPE","ALL COLUMNS","NOT DETERMINISTIC","{ROWS | RANGE} BETWEEN","IS [NOT] DISTINCT FROM"]),Wc={name:"bigquery",tokenizerOptions:{reservedSelect:Fc,reservedClauses:[...Yc,...Qs,...Hn],reservedSetOperations:Vc,reservedJoins:xc,reservedPhrases:wc,reservedKeywords:yc,reservedDataTypes:vc,reservedFunctionNames:bc,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:Xc},formatOptions:{onelineClauses:[...Hn,...Qs],tabularOnelineClauses:Qs}};function Xc(e){return Kc($c(e))}function Kc(e){let t=oE;return e.map(E=>E.text==="OFFSET"&&t.text==="["?(t=E,Ye(me({},E),{type:"RESERVED_FUNCTION_NAME"})):(t=E,E))}function $c(e){var t;const E=[];for(let s=0;s<e.length;s++){const T=e[s];if((Wt.ARRAY(T)||Wt.STRUCT(T))&&((t=e[s+1])==null?void 0:t.text)==="<"){const r=Jc(e,s+1),n=e.slice(s,r+1);E.push({type:"IDENTIFIER",raw:n.map(Bn("raw")).join(""),text:n.map(Bn("text")).join(""),start:T.start}),s=r}else E.push(T)}return E}var Bn=e=>t=>t.type==="IDENTIFIER"||t.type==="COMMA"?t[e]+" ":t[e];function Jc(e,t){let E=0;for(let s=t;s<e.length;s++){const T=e[s];if(T.text==="<"?E++:T.text===">"?E--:T.text===">>"&&(E-=2),E===0)return s}return e.length-1}var kc=["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"],qc=["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"],jc=["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"],Qc=u(["SELECT [ALL | DISTINCT]"]),Zc=u(["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"]),bn=u(["CREATE [GLOBAL TEMPORARY | EXTERNAL] TABLE [IF NOT EXISTS]"]),Zs=u(["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"]),zc=u(["UNION [ALL]","EXCEPT [ALL]","INTERSECT [ALL]"]),eu=u(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN"]),tu=u(["ON DELETE","ON UPDATE","SET NULL","{ROWS | RANGE} BETWEEN"]),Eu={name:"db2",tokenizerOptions:{reservedSelect:Qc,reservedClauses:[...Zc,...bn,...Zs],reservedSetOperations:zc,reservedJoins:eu,reservedPhrases:tu,reservedKeywords:qc,reservedDataTypes:jc,reservedFunctionNames:kc,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:[...bn,...Zs],tabularOnelineClauses:Zs}},su=["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"],Tu=["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"],ru=["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"],nu=u(["SELECT [ALL | DISTINCT]"]),Ru=u(["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"]),yn=u(["CREATE [OR REPLACE] TABLE"]),zs=u(["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}"]),ou=u(["UNION [ALL]","EXCEPT [ALL]","INTERSECT [ALL]"]),Au=u(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","[LEFT | RIGHT] EXCEPTION JOIN","{INNER | CROSS} JOIN"]),iu=u(["ON DELETE","ON UPDATE","SET NULL","{ROWS | RANGE} BETWEEN"]),Su={name:"db2i",tokenizerOptions:{reservedSelect:nu,reservedClauses:[...Ru,...yn,...zs],reservedSetOperations:ou,reservedJoins:Au,reservedPhrases:iu,reservedKeywords:Tu,reservedDataTypes:ru,reservedFunctionNames:su,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:[...yn,...zs],tabularOnelineClauses:zs}},Ou=["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"],Iu=["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"],au=["ARRAY","BIGINT","BINARY","BOOLEAN","CHAR","DATE","DECIMAL","DOUBLE","FLOAT","INT","INTEGER","INTERVAL","MAP","NUMERIC","PRECISION","SMALLINT","STRUCT","TIMESTAMP","VARCHAR"],Nu=u(["SELECT [ALL | DISTINCT]"]),lu=u(["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"]),vn=u(["CREATE [TEMPORARY] [EXTERNAL] TABLE [IF NOT EXISTS]"]),eT=u(["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"]),_u=u(["UNION [ALL | DISTINCT]"]),Cu=u(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","LEFT SEMI JOIN"]),Lu=u(["{ROWS | RANGE} BETWEEN"]),cu={name:"hive",tokenizerOptions:{reservedSelect:Nu,reservedClauses:[...lu,...vn,...eT],reservedSetOperations:_u,reservedJoins:Cu,reservedPhrases:Lu,reservedKeywords:Iu,reservedDataTypes:au,reservedFunctionNames:Ou,extraParens:["[]"],stringTypes:['""-bs',"''-bs"],identTypes:["``"],variableTypes:[{quote:"{}",prefixes:["$"],requirePrefix:!0}],operators:["%","~","^","|","&","<=>","==","!","||"]},formatOptions:{onelineClauses:[...vn,...eT],tabularOnelineClauses:eT}};function vs(e){return e.map((t,E)=>{const s=e[E+1]||oE;if(Wt.SET(t)&&s.text==="(")return Ye(me({},t),{type:"RESERVED_FUNCTION_NAME"});const T=e[E-1]||oE;return Wt.VALUES(t)&&T.text==="="?Ye(me({},t),{type:"RESERVED_FUNCTION_NAME"}):t})}var uu=["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"],pu=["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"],fu=["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"],Du=u(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),Pu=u(["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"]),Fn=u(["CREATE [OR REPLACE] [TEMPORARY] TABLE [IF NOT EXISTS]"]),tT=u(["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"]),du=u(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]","MINUS [ALL | DISTINCT]"]),Mu=u(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),Uu=u(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","CHARACTER SET","{ROWS | RANGE} BETWEEN","IDENTIFIED BY"]),hu={name:"mariadb",tokenizerOptions:{reservedSelect:Du,reservedClauses:[...Pu,...Fn,...tT],reservedSetOperations:du,reservedJoins:Mu,reservedPhrases:Uu,supportsXor:!0,reservedKeywords:uu,reservedDataTypes:pu,reservedFunctionNames:fu,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:vs},formatOptions:{onelineClauses:[...Fn,...tT],tabularOnelineClauses:tT}},Gu=["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"],gu=["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"],mu=["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"],Hu=u(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),Bu=u(["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"]),Yn=u(["CREATE [TEMPORARY] TABLE [IF NOT EXISTS]"]),ET=u(["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"]),bu=u(["UNION [ALL | DISTINCT]"]),yu=u(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),vu=u(["ON {UPDATE | DELETE} [SET NULL]","CHARACTER SET","{ROWS | RANGE} BETWEEN","IDENTIFIED BY"]),Fu={name:"mysql",tokenizerOptions:{reservedSelect:Hu,reservedClauses:[...Bu,...Yn,...ET],reservedSetOperations:bu,reservedJoins:yu,reservedPhrases:vu,supportsXor:!0,reservedKeywords:Gu,reservedDataTypes:gu,reservedFunctionNames:mu,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:vs},formatOptions:{onelineClauses:[...Yn,...ET],tabularOnelineClauses:ET}},Yu=["ADD","ALL","ALTER","ANALYZE","AND","ARRAY","AS","ASC","BETWEEN","BOTH","BY","CALL","CASCADE","CASE","CHANGE","CHECK","COLLATE","COLUMN","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","DEFAULT","DELAYED","DELETE","DESC","DESCRIBE","DISTINCT","DISTINCTROW","DIV","DOUBLE","DROP","DUAL","ELSE","ELSEIF","ENCLOSED","ESCAPED","EXCEPT","EXISTS","EXIT","EXPLAIN","FALSE","FETCH","FOR","FORCE","FOREIGN","FROM","FULLTEXT","GENERATED","GRANT","GROUP","GROUPS","HAVING","HIGH_PRIORITY","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IF","IGNORE","ILIKE","IN","INDEX","INFILE","INNER","INOUT","INSERT","INTERSECT","INTERVAL","INTO","IS","ITERATE","JOIN","KEY","KEYS","KILL","LEADING","LEAVE","LEFT","LIKE","LIMIT","LINEAR","LINES","LOAD","LOCALTIME","LOCALTIMESTAMP","LOCK","LONG","LOW_PRIORITY","MATCH","MAXVALUE","MINUTE_MICROSECOND","MINUTE_SECOND","MOD","NATURAL","NOT","NO_WRITE_TO_BINLOG","NULL","OF","ON","OPTIMIZE","OPTION","OPTIONALLY","OR","ORDER","OUT","OUTER","OUTFILE","OVER","PARTITION","PRIMARY","PROCEDURE","RANGE","READ","RECURSIVE","REFERENCES","REGEXP","RELEASE","RENAME","REPEAT","REPLACE","REQUIRE","RESTRICT","REVOKE","RIGHT","RLIKE","ROW","ROWS","SECOND_MICROSECOND","SELECT","SET","SHOW","SPATIAL","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_BIG_RESULT","SQL_CALC_FOUND_ROWS","SQL_SMALL_RESULT","SSL","STARTING","STATS_EXTENDED","STORED","STRAIGHT_JOIN","TABLE","TABLESAMPLE","TERMINATED","THEN","TO","TRAILING","TRIGGER","TRUE","TiDB_CURRENT_TSO","UNION","UNIQUE","UNLOCK","UNSIGNED","UNTIL","UPDATE","USAGE","USE","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALUES","VIRTUAL","WHEN","WHERE","WHILE","WINDOW","WITH","WRITE","XOR","YEAR_MONTH","ZEROFILL"],Vu=["BIGINT","BINARY","BIT","BLOB","BOOL","BOOLEAN","CHAR","CHARACTER","DATE","DATETIME","DEC","DECIMAL","DOUBLE PRECISION","DOUBLE","ENUM","FIXED","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","LONGBLOB","LONGTEXT","MEDIUMBLOB","MEDIUMINT","MIDDLEINT","NATIONAL CHAR","NATIONAL VARCHAR","NUMERIC","PRECISION","SMALLINT","TEXT","TIME","TIMESTAMP","TINYBLOB","TINYINT","TINYTEXT","VARBINARY","VARCHAR","VARCHARACTER","VARYING","YEAR"],xu=["ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ANY_VALUE","ASCII","ASIN","ATAN","ATAN2","AVG","BENCHMARK","BIN","BIN_TO_UUID","BIT_AND","BIT_COUNT","BIT_LENGTH","BIT_OR","BIT_XOR","BITAND","BITNEG","BITOR","BITXOR","CASE","CAST","CEIL","CEILING","CHAR_FUNC","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_RESOURCE_GROUP","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURTIME","DATABASE","DATE","DATE_ADD","DATE_FORMAT","DATE_SUB","DATEDIFF","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DECODE","DEFAULT_FUNC","DEGREES","DENSE_RANK","DES_DECRYPT","DES_ENCRYPT","DIV","ELT","ENCODE","ENCRYPT","EQ","EXP","EXPORT_SET","EXTRACT","FIELD","FIND_IN_SET","FIRST_VALUE","FLOOR","FORMAT","FORMAT_BYTES","FORMAT_NANO_TIME","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GE","GET_FORMAT","GET_LOCK","GETPARAM","GREATEST","GROUP_CONCAT","GROUPING","GT","HEX","HOUR","IF","IFNULL","ILIKE","INET6_ATON","INET6_NTOA","INET_ATON","INET_NTOA","INSERT_FUNC","INSTR","INTDIV","INTERVAL","IS_FREE_LOCK","IS_IPV4","IS_IPV4_COMPAT","IS_IPV4_MAPPED","IS_IPV6","IS_USED_LOCK","IS_UUID","ISFALSE","ISNULL","ISTRUE","JSON_ARRAY","JSON_ARRAYAGG","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_MEMBEROF","JSON_MERGE","JSON_MERGE_PATCH","JSON_MERGE_PRESERVE","JSON_OBJECT","JSON_OBJECTAGG","JSON_OVERLAPS","JSON_PRETTY","JSON_QUOTE","JSON_REMOVE","JSON_REPLACE","JSON_SEARCH","JSON_SET","JSON_STORAGE_FREE","JSON_STORAGE_SIZE","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","LAG","LAST_DAY","LAST_INSERT_ID","LAST_VALUE","LASTVAL","LCASE","LE","LEAD","LEAST","LEFT","LEFTSHIFT","LENGTH","LIKE","LN","LOAD_FILE","LOCALTIME","LOCALTIMESTAMP","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LT","LTRIM","MAKE_SET","MAKEDATE","MAKETIME","MASTER_POS_WAIT","MAX","MD5","MICROSECOND","MID","MIN","MINUS","MINUTE","MOD","MONTH","MONTHNAME","MUL","NAME_CONST","NE","NEXTVAL","NOT","NOW","NTH_VALUE","NTILE","NULLEQ","OCT","OCTET_LENGTH","OLD_PASSWORD","ORD","PASSWORD_FUNC","PERCENT_RANK","PERIOD_ADD","PERIOD_DIFF","PI","PLUS","POSITION","POW","POWER","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","RIGHTSHIFT","ROUND","ROW_COUNT","ROW_NUMBER","RPAD","RTRIM","SCHEMA","SEC_TO_TIME","SECOND","SESSION_USER","SETVAL","SETVAR","SHA","SHA1","SHA2","SIGN","SIN","SLEEP","SM3","SPACE","SQRT","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DATE","STRCMP","SUBDATE","SUBSTR","SUBSTRING","SUBSTRING_INDEX","SUBTIME","SUM","SYSDATE","SYSTEM_USER","TAN","TIDB_BOUNDED_STALENESS","TIDB_CURRENT_TSO","TIDB_DECODE_BINARY_PLAN","TIDB_DECODE_KEY","TIDB_DECODE_PLAN","TIDB_DECODE_SQL_DIGESTS","TIDB_ENCODE_SQL_DIGEST","TIDB_IS_DDL_OWNER","TIDB_PARSE_TSO","TIDB_PARSE_TSO_LOGICAL","TIDB_ROW_CHECKSUM","TIDB_SHARD","TIDB_VERSION","TIME","TIME_FORMAT","TIME_TO_SEC","TIMEDIFF","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TO_BASE64","TO_DAYS","TO_SECONDS","TRANSLATE","TRIM","TRUNCATE","UCASE","UNARYMINUS","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UPPER","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","UUID","UUID_SHORT","UUID_TO_BIN","VALIDATE_PASSWORD_STRENGTH","VAR_POP","VAR_SAMP","VARIANCE","VERSION","VITESS_HASH","WEEK","WEEKDAY","WEEKOFYEAR","WEIGHT_STRING","YEAR","YEARWEEK"],wu=u(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),Wu=u(["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"]),Vn=u(["CREATE [TEMPORARY] TABLE [IF NOT EXISTS]"]),sT=u(["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 INSTANCE","ALTER RESOURCE GROUP","ALTER SEQUENCE","ALTER USER","ALTER VIEW","ANALYZE TABLE","CHECK TABLE","CHECKSUM TABLE","COMMIT","CREATE DATABASE","CREATE INDEX","CREATE RESOURCE GROUP","CREATE ROLE","CREATE SEQUENCE","CREATE USER","DEALLOCATE PREPARE","DESCRIBE","DROP DATABASE","DROP INDEX","DROP RESOURCE GROUP","DROP ROLE","DROP TABLESPACE","DROP USER","DROP VIEW","EXPLAIN","FLUSH","GRANT","IMPORT TABLE","INSTALL COMPONENT","INSTALL PLUGIN","KILL","LOAD DATA","LOCK INSTANCE FOR BACKUP","LOCK TABLES","OPTIMIZE TABLE","PREPARE","RELEASE SAVEPOINT","RENAME TABLE","RENAME USER","REPAIR TABLE","RESET","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 TABLE","SHOW CREATE USER","SHOW CREATE VIEW","SHOW DATABASES","SHOW ENGINE","SHOW ENGINES","SHOW ERRORS","SHOW EVENTS","SHOW GRANTS","SHOW INDEX","SHOW MASTER STATUS","SHOW OPEN TABLES","SHOW PLUGINS","SHOW PRIVILEGES","SHOW PROCESSLIST","SHOW PROFILE","SHOW PROFILES","SHOW STATUS","SHOW TABLE STATUS","SHOW TABLES","SHOW TRIGGERS","SHOW VARIABLES","SHOW WARNINGS","TABLE","UNINSTALL COMPONENT","UNINSTALL PLUGIN","UNLOCK INSTANCE","UNLOCK TABLES","USE"]),Xu=u(["UNION [ALL | DISTINCT]"]),Ku=u(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),$u=u(["ON {UPDATE | DELETE} [SET NULL]","CHARACTER SET","{ROWS | RANGE} BETWEEN","IDENTIFIED BY"]),Ju={name:"tidb",tokenizerOptions:{reservedSelect:wu,reservedClauses:[...Wu,...Vn,...sT],reservedSetOperations:Xu,reservedJoins:Ku,reservedPhrases:$u,supportsXor:!0,reservedKeywords:Yu,reservedDataTypes:Vu,reservedFunctionNames:xu,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:vs},formatOptions:{onelineClauses:[...Vn,...sT],tabularOnelineClauses:sT}},ku=["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"],qu=["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"],ju=[],Qu=u(["SELECT [ALL | DISTINCT]"]),Zu=u(["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"]),xn=u(["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"]),zu=u(["UNION [ALL]","EXCEPT [ALL]","INTERSECT [ALL]"]),ep=u(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","INNER JOIN"]),tp=u(["{ROWS | RANGE | GROUPS} BETWEEN"]),Ep={name:"n1ql",tokenizerOptions:{reservedSelect:Qu,reservedClauses:[...Zu,...xn],reservedSetOperations:zu,reservedJoins:ep,reservedPhrases:tp,supportsXor:!0,reservedKeywords:qu,reservedDataTypes:ju,reservedFunctionNames:ku,stringTypes:['""-bs',"''-bs"],identTypes:["``"],extraParens:["[]","{}"],paramTypes:{positional:!0,numbered:["$"],named:["$"]},lineCommentTypes:["#","--"],operators:["%","==",":","||"]},formatOptions:{onelineClauses:xn}},sp=["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"],Tp=["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"],rp=["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"],np=u(["SELECT [ALL | DISTINCT | UNIQUE]"]),Rp=u(["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"]),wn=u(["CREATE [GLOBAL TEMPORARY | PRIVATE TEMPORARY | SHARDED | DUPLICATED | IMMUTABLE BLOCKCHAIN | BLOCKCHAIN | IMMUTABLE] TABLE"]),TT=u(["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"]),op=u(["UNION [ALL]","EXCEPT","INTERSECT"]),Ap=u(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN","{CROSS | OUTER} APPLY"]),ip=u(["ON {UPDATE | DELETE} [SET NULL]","ON COMMIT","{ROWS | RANGE} BETWEEN"]),Sp={name:"plsql",tokenizerOptions:{reservedSelect:np,reservedClauses:[...Rp,...wn,...TT],reservedSetOperations:op,reservedJoins:Ap,reservedPhrases:ip,supportsXor:!0,reservedKeywords:sp,reservedDataTypes:Tp,reservedFunctionNames:rp,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:Op},formatOptions:{alwaysDenseOperators:["@"],onelineClauses:[...wn,...TT],tabularOnelineClauses:TT}};function Op(e){let t=oE;return e.map(E=>Wt.SET(E)&&Wt.BY(t)?Ye(me({},E),{type:"RESERVED_KEYWORD"}):(lA(E.type)&&(t=E),E))}var Ip=["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","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"],ap=["ALL","ANALYSE","ANALYZE","AND","ANY","AS","ASC","ASYMMETRIC","AUTHORIZATION","BETWEEN","BINARY","BOTH","CASE","CAST","CHECK","COLLATE","COLLATION","COLUMN","CONCURRENTLY","CONSTRAINT","CREATE","CROSS","CURRENT_CATALOG","CURRENT_DATE","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","DAY","DEFAULT","DEFERRABLE","DESC","DISTINCT","DO","ELSE","END","EXCEPT","EXISTS","FALSE","FETCH","FILTER","FOR","FOREIGN","FREEZE","FROM","FULL","GRANT","GROUP","HAVING","HOUR","ILIKE","IN","INITIALLY","INNER","INOUT","INTERSECT","INTO","IS","ISNULL","JOIN","LATERAL","LEADING","LEFT","LIKE","LIMIT","LOCALTIME","LOCALTIMESTAMP","MINUTE","MONTH","NATURAL","NOT","NOTNULL","NULL","NULLIF","OFFSET","ON","ONLY","OR","ORDER","OUT","OUTER","OVER","OVERLAPS","PLACING","PRIMARY","REFERENCES","RETURNING","RIGHT","ROW","SECOND","SELECT","SESSION_USER","SIMILAR","SOME","SYMMETRIC","TABLE","TABLESAMPLE","THEN","TO","TRAILING","TRUE","UNION","UNIQUE","USER","USING","VALUES","VARIADIC","VERBOSE","WHEN","WHERE","WINDOW","WITH","WITHIN","WITHOUT","YEAR"],Np=["ARRAY","BIGINT","BIT","BIT VARYING","BOOL","BOOLEAN","CHAR","CHARACTER","CHARACTER VARYING","DECIMAL","DEC","DOUBLE","ENUM","FLOAT","INT","INTEGER","INTERVAL","NCHAR","NUMERIC","PRECISION","REAL","SMALLINT","TEXT","TIME","TIMESTAMP","TIMESTAMPTZ","VARCHAR","XML","ZONE"],lp=u(["SELECT [ALL | DISTINCT]"]),_p=u(["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","DEFAULT VALUES","SET","RETURNING"]),Wn=u(["CREATE [GLOBAL | LOCAL] [TEMPORARY | TEMP | UNLOGGED] TABLE [IF NOT EXISTS]"]),rT=u(["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"]),Cp=u(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),Lp=u(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),cp=u(["PRIMARY KEY","GENERATED {ALWAYS | BY DEFAULT} AS IDENTITY","ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE | GROUPS} BETWEEN","[TIMESTAMP | TIME] {WITH | WITHOUT} TIME ZONE","IS [NOT] DISTINCT FROM"]),up={name:"postgresql",tokenizerOptions:{reservedSelect:lp,reservedClauses:[..._p,...Wn,...rT],reservedSetOperations:Cp,reservedJoins:Lp,reservedPhrases:cp,reservedKeywords:ap,reservedDataTypes:Np,reservedFunctionNames:Ip,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:["%","^","|/","||/","@",":=","&","|","#","~","<<",">>","~>~","~<~","~>=~","~<=~","@-@","@@","##","<->","&&","&<","&>","<<|","&<|","|>>","|&>","<^","^>","?#","?-","?|","?-|","?||","@>","<@","~=","?","@?","?&","->","->>","#>","#>>","#-","=>",">>=","<<=","~~","~~*","!~~","!~~*","~","~*","!~","!~*","-|-","||","@@@","!!","^@","<%","%>","<<%","%>>","<<->","<->>","<<<->","<->>>","::",":","<#>","<=>","<+>","<~>","<%>"],operatorKeyword:!0},formatOptions:{alwaysDenseOperators:["::",":"],onelineClauses:[...Wn,...rT],tabularOnelineClauses:rT}},pp=["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"],fp=["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"],Dp=["ARRAY","BIGINT","BPCHAR","CHAR","CHARACTER VARYING","CHARACTER","DECIMAL","INT","INT2","INT4","INT8","INTEGER","NCHAR","NUMERIC","NVARCHAR","SMALLINT","TEXT","VARBYTE","VARCHAR"],Pp=u(["SELECT [ALL | DISTINCT]"]),dp=u(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT INTO","VALUES","SET"]),Xn=u(["CREATE [TEMPORARY | TEMP | LOCAL TEMPORARY | LOCAL TEMP] TABLE [IF NOT EXISTS]"]),nT=u(["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"]),Mp=u(["UNION [ALL]","EXCEPT","INTERSECT","MINUS"]),Up=u(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),hp=u(["NULL AS","DATA CATALOG","HIVE METASTORE","{ROWS | RANGE} BETWEEN"]),Gp={name:"redshift",tokenizerOptions:{reservedSelect:Pp,reservedClauses:[...dp,...Xn,...nT],reservedSetOperations:Mp,reservedJoins:Up,reservedPhrases:hp,reservedKeywords:fp,reservedDataTypes:Dp,reservedFunctionNames:pp,stringTypes:["''-qq"],identTypes:['""-qq'],identChars:{first:"#"},paramTypes:{numbered:["$"]},operators:["^","%","@","|/","||/","&","|","~","<<",">>","||","::"]},formatOptions:{alwaysDenseOperators:["::"],onelineClauses:[...Xn,...nT],tabularOnelineClauses:nT}},gp=["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"],mp=["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"],Hp=["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"],Bp=u(["SELECT [ALL | DISTINCT]"]),bp=u(["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"]),Kn=u(["CREATE [EXTERNAL] TABLE [IF NOT EXISTS]"]),RT=u(["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"]),yp=u(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),vp=u(["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"]),Fp=u(["ON DELETE","ON UPDATE","CURRENT ROW","{ROWS | RANGE} BETWEEN"]),Yp={name:"spark",tokenizerOptions:{reservedSelect:Bp,reservedClauses:[...bp,...Kn,...RT],reservedSetOperations:yp,reservedJoins:vp,reservedPhrases:Fp,supportsXor:!0,reservedKeywords:gp,reservedDataTypes:mp,reservedFunctionNames:Hp,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:Vp},formatOptions:{onelineClauses:[...Kn,...RT],tabularOnelineClauses:RT}};function Vp(e){return e.map((t,E)=>{const s=e[E-1]||oE,T=e[E+1]||oE;return Wt.WINDOW(t)&&T.type==="OPEN_PAREN"?Ye(me({},t),{type:"RESERVED_FUNCTION_NAME"}):t.text==="ITEMS"&&t.type==="RESERVED_KEYWORD"&&!(s.text==="COLLECTION"&&T.text==="TERMINATED")?Ye(me({},t),{type:"IDENTIFIER",text:t.raw}):t})}var xp=["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"],wp=["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"],Wp=["ANY","ARRAY","BLOB","CHARACTER","DECIMAL","INT","INTEGER","NATIVE CHARACTER","NCHAR","NUMERIC","NVARCHAR","REAL","TEXT","VARCHAR","VARYING CHARACTER"],Xp=u(["SELECT [ALL | DISTINCT]"]),Kp=u(["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"]),$n=u(["CREATE [TEMPORARY | TEMP] TABLE [IF NOT EXISTS]"]),oT=u(["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"]),$p=u(["UNION [ALL]","EXCEPT","INTERSECT"]),Jp=u(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),kp=u(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE | GROUPS} BETWEEN","DO UPDATE"]),qp={name:"sqlite",tokenizerOptions:{reservedSelect:Xp,reservedClauses:[...Kp,...$n,...oT],reservedSetOperations:$p,reservedJoins:Jp,reservedPhrases:kp,reservedKeywords:wp,reservedDataTypes:Wp,reservedFunctionNames:xp,stringTypes:["''-qq",{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq',"``","[]"],paramTypes:{positional:!0,numbered:["?"],named:[":","@","$"]},operators:["%","~","&","|","<<",">>","==","->","->>","||"]},formatOptions:{onelineClauses:[...$n,...oT],tabularOnelineClauses:oT}},jp=["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"],Qp=["ALL","ALLOCATE","ALTER","ANY","ARE","AS","ASC","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","DESC","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"],Zp=["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"],zp=u(["SELECT [ALL | DISTINCT]"]),ef=u(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT INTO","VALUES","SET"]),Jn=u(["CREATE [GLOBAL TEMPORARY | LOCAL TEMPORARY] TABLE"]),AT=u(["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"]),tf=u(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),Ef=u(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),sf=u(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE} BETWEEN"]),Tf={name:"sql",tokenizerOptions:{reservedSelect:zp,reservedClauses:[...ef,...Jn,...AT],reservedSetOperations:tf,reservedJoins:Ef,reservedPhrases:sf,reservedKeywords:Qp,reservedDataTypes:Zp,reservedFunctionNames:jp,stringTypes:[{quote:"''-qq-bs",prefixes:["N","U&"]},{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq',"``"],paramTypes:{positional:!0},operators:["||"]},formatOptions:{onelineClauses:[...Jn,...AT],tabularOnelineClauses:AT}},rf=["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"],nf=["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"],Rf=["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"],of=u(["SELECT [ALL | DISTINCT]"]),Af=u(["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"]),kn=u(["CREATE TABLE [IF NOT EXISTS]"]),iT=u(["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"]),Sf=u(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),Of=u(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),If=u(["{ROWS | RANGE | GROUPS} BETWEEN","IS [NOT] DISTINCT FROM"]),af={name:"trino",tokenizerOptions:{reservedSelect:of,reservedClauses:[...Af,...kn,...iT],reservedSetOperations:Sf,reservedJoins:Of,reservedPhrases:If,reservedKeywords:nf,reservedDataTypes:Rf,reservedFunctionNames:rf,extraParens:["[]","{}"],stringTypes:[{quote:"''-qq",prefixes:["U&"]},{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq'],paramTypes:{positional:!0},operators:["%","->","=>",":","||","|","^","$"]},formatOptions:{onelineClauses:[...kn,...iT],tabularOnelineClauses:iT}},Nf=["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","CHARINDEX","CONCAT","CONCAT_WS","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","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"],lf=["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","$ACTION"],_f=["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"],Cf=u(["SELECT [ALL | DISTINCT]"]),Lf=u(["WITH","INTO","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","OFFSET","FETCH {FIRST | NEXT}","FOR {BROWSE | XML | JSON}","OPTION","INSERT [INTO]","VALUES","SET","MERGE [INTO]","WHEN [NOT] MATCHED [BY TARGET | BY SOURCE] [THEN]","UPDATE SET","CREATE [OR ALTER] {PROC | PROCEDURE}"]),qn=u(["CREATE TABLE"]),ST=u(["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"]),cf=u(["UNION [ALL]","EXCEPT","INTERSECT"]),uf=u(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","{CROSS | OUTER} APPLY"]),pf=u(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE} BETWEEN"]),ff={name:"transactsql",tokenizerOptions:{reservedSelect:Cf,reservedClauses:[...Lf,...qn,...ST],reservedSetOperations:cf,reservedJoins:uf,reservedPhrases:pf,reservedKeywords:lf,reservedDataTypes:_f,reservedFunctionNames:Nf,nestedBlockComments:!0,stringTypes:[{quote:"''-qq",prefixes:["N"]}],identTypes:['""-qq',"[]"],identChars:{first:"#@",rest:"#@$"},paramTypes:{named:["@"],quoted:["@"]},operators:["%","&","|","^","~","!<","!>","+=","-=","*=","/=","%=","|=","&=","^=","::",":"],propertyAccessOperators:[".."]},formatOptions:{alwaysDenseOperators:["::"],onelineClauses:[...qn,...ST],tabularOnelineClauses:ST}},Df=["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"],Pf=["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"],df=["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"],Mf=u(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),Uf=u(["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"]),jn=u(["CREATE [ROWSTORE] [REFERENCE | TEMPORARY | GLOBAL TEMPORARY] TABLE [IF NOT EXISTS]"]),OT=u(["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"]),hf=u(["UNION [ALL | DISTINCT]","EXCEPT","INTERSECT","MINUS"]),Gf=u(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),gf=u(["ON DELETE","ON UPDATE","CHARACTER SET","{ROWS | RANGE} BETWEEN","IDENTIFIED BY"]),mf={name:"singlestoredb",tokenizerOptions:{reservedSelect:Mf,reservedClauses:[...Uf,...jn,...OT],reservedSetOperations:hf,reservedJoins:Gf,reservedPhrases:gf,reservedKeywords:Df,reservedDataTypes:Pf,reservedFunctionNames:df,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:vs},formatOptions:{alwaysDenseOperators:["::","::$","::%"],onelineClauses:[...jn,...OT],tabularOnelineClauses:OT}},Hf=["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","FILTER","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","GREATEST_IGNORE_NULLS","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"],Bf=["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"],bf=["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"],yf=u(["SELECT [ALL | DISTINCT]"]),vf=u(["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"]),Qn=u(["CREATE [OR REPLACE] [VOLATILE] TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] [LOCAL | GLOBAL] {TEMP|TEMPORARY} TABLE [IF NOT EXISTS]"]),IT=u(["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"]),Ff=u(["UNION [ALL]","MINUS","EXCEPT","INTERSECT"]),Yf=u(["[INNER] JOIN","[NATURAL] {LEFT | RIGHT | FULL} [OUTER] JOIN","{CROSS | NATURAL} JOIN"]),Vf=u(["{ROWS | RANGE} BETWEEN","ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]"]),xf={name:"snowflake",tokenizerOptions:{reservedSelect:yf,reservedClauses:[...vf,...Qn,...IT],reservedSetOperations:Ff,reservedJoins:Yf,reservedPhrases:Vf,reservedKeywords:Bf,reservedDataTypes:bf,reservedFunctionNames:Hf,stringTypes:["$$","''-qq-bs"],identTypes:['""-qq'],variableTypes:[{regex:"[$][1-9]\\d*"},{regex:"[$][_a-zA-Z][_a-zA-Z0-9$]*"}],extraParens:["[]"],identChars:{rest:"$"},lineCommentTypes:["--","//"],operators:["%","::","||","=>",":=","->"],propertyAccessOperators:[":"]},formatOptions:{alwaysDenseOperators:["::"],onelineClauses:[...Qn,...IT],tabularOnelineClauses:IT}},UE=e=>e[e.length-1],_A=e=>e.sort((t,E)=>E.length-t.length||t.localeCompare(E)),zE=e=>e.replace(/\s+/gu," "),aT=e=>/\n/.test(e),Tt=e=>e.replace(/[.*+?^${}()|[\]\\]/gu,"\\$&"),Zn=/\s+/uy,$t=e=>new RegExp(`(?:${e})`,"uy"),wf=e=>e.split("").map(t=>/ /gu.test(t)?"\\s+":`[${t.toUpperCase()}${t.toLowerCase()}]`).join(""),Wf=e=>e+"(?:-"+e+")*",Xf=({prefixes:e,requirePrefix:t})=>`(?:${e.map(wf).join("|")}${t?"":"|"})`,Kf=e=>new RegExp(`(?:${e.map(Tt).join("|")}).*?(?=\r
|
34
|
+
`)},n.prototype.displayStateStack=function(i,A){for(var O,N=0,l=0;l<i.length;l++){var C=i[l],H=C.rule.toString(C.dot);H===O?N++:(N>0&&A.push(" ^ "+N+" more lines identical to this"),N=0,A.push(" "+H)),O=H}},n.prototype.getSymbolDisplay=function(i){return R(i)},n.prototype.buildFirstStateStack=function(i,A){if(A.indexOf(i)!==-1)return null;if(i.wantedBy.length===0)return[i];var O=i.wantedBy[0],N=[i].concat(A),l=this.buildFirstStateStack(O,N);return l===null?null:[i].concat(l)},n.prototype.save=function(){var i=this.table[this.current];return i.lexerState=this.lexerState,i},n.prototype.restore=function(i){var A=i.index;this.current=A,this.table[A]=i,this.table.splice(A+1),this.lexerState=i.lexerState,this.results=this.finish()},n.prototype.rewind=function(i){if(!this.options.keepHistory)throw new Error("set option `keepHistory` to enable rewinding");this.restore(this.table[i])},n.prototype.finish=function(){var i=[],A=this.grammar.start,O=this.table[this.table.length-1];return O.states.forEach(function(N){N.rule.name===A&&N.dot===N.rule.symbols.length&&N.reference===0&&N.data!==n.fail&&i.push(N)}),i.map(function(N){return N.data})};function R(i){var A=typeof i;if(A==="string")return i;if(A==="object"){if(i.literal)return JSON.stringify(i.literal);if(i instanceof RegExp)return"character matching "+i;if(i.type)return i.type+" token";if(i.test)return"token matching "+String(i.test);throw new Error("Unknown symbol type: "+i)}}function o(i){var A=typeof i;if(A==="string")return i;if(A==="object"){if(i.literal)return JSON.stringify(i.literal);if(i instanceof RegExp)return i.toString();if(i.type)return"%"+i.type;if(i.test)return"<"+String(i.test)+">";throw new Error("Unknown symbol type: "+i)}}return{Parser:n,Grammar:T,Rule:t}})})(AA);var cL=AA.exports;const LL=yT(cL);var iA=Object.defineProperty,uL=Object.defineProperties,fL=Object.getOwnPropertyDescriptors,Ns=Object.getOwnPropertySymbols,SA=Object.prototype.hasOwnProperty,OA=Object.prototype.propertyIsEnumerable,mn=(e,t,E)=>t in e?iA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:E}):e[t]=E,me=(e,t)=>{for(var E in t||(t={}))SA.call(t,E)&&mn(e,E,t[E]);if(Ns)for(var E of Ns(t))OA.call(t,E)&&mn(e,E,t[E]);return e},Ye=(e,t)=>uL(e,fL(t)),pL=(e,t)=>{var E={};for(var s in e)SA.call(e,s)&&t.indexOf(s)<0&&(E[s]=e[s]);if(e!=null&&Ns)for(var s of Ns(e))t.indexOf(s)<0&&OA.call(e,s)&&(E[s]=e[s]);return E},DL=(e,t)=>{for(var E in t)iA(e,E,{get:t[E],enumerable:!0})},aA={};DL(aA,{bigquery:()=>wL,db2:()=>tu,db2i:()=>iu,hive:()=>cu,mariadb:()=>Uu,mysql:()=>Fu,n1ql:()=>tf,plsql:()=>Sf,postgresql:()=>uf,redshift:()=>Gf,singlestoredb:()=>gp,snowflake:()=>Vp,spark:()=>Yf,sql:()=>Tp,sqlite:()=>qf,tidb:()=>$u,transactsql:()=>fp,trino:()=>ap});var u=e=>e.flatMap(PL),PL=e=>ZE(ML(e)).map(dL),dL=e=>e.replace(/ +/g," ").trim(),ML=e=>({type:"mandatory_block",items:lr(e,0)[0]}),lr=(e,t,E)=>{const s=[];for(;e[t];){const[T,r]=UL(e,t);if(s.push(T),t=r,e[t]==="|")t++;else if(e[t]==="}"||e[t]==="]"){if(E!==e[t])throw new Error(`Unbalanced parenthesis in: ${e}`);return t++,[s,t]}else if(t===e.length){if(E)throw new Error(`Unbalanced parenthesis in: ${e}`);return[s,t]}else throw new Error(`Unexpected "${e[t]}"`)}return[s,t]},UL=(e,t)=>{const E=[];for(;;){const[s,T]=hL(e,t);if(s)E.push(s),t=T;else break}return E.length===1?[E[0],t]:[{type:"concatenation",items:E},t]},hL=(e,t)=>{if(e[t]==="{")return GL(e,t+1);if(e[t]==="[")return gL(e,t+1);{let E="";for(;e[t]&&/[A-Za-z0-9_ ]/.test(e[t]);)E+=e[t],t++;return[E,t]}},GL=(e,t)=>{const[E,s]=lr(e,t,"}");return[{type:"mandatory_block",items:E},s]},gL=(e,t)=>{const[E,s]=lr(e,t,"]");return[{type:"optional_block",items:E},s]},ZE=e=>{if(typeof e=="string")return[e];if(e.type==="concatenation")return e.items.map(ZE).reduce(mL,[""]);if(e.type==="mandatory_block")return e.items.flatMap(ZE);if(e.type==="optional_block")return["",...e.items.flatMap(ZE)];throw new Error(`Unknown node type: ${e}`)},mL=(e,t)=>{const E=[];for(const s of e)for(const T of t)E.push(s+T);return E},IA=(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.PROPERTY_ACCESS_OPERATOR="PROPERTY_ACCESS_OPERATOR",e.OPEN_PAREN="OPEN_PAREN",e.CLOSE_PAREN="CLOSE_PAREN",e.LINE_COMMENT="LINE_COMMENT",e.BLOCK_COMMENT="BLOCK_COMMENT",e.DISABLE_COMMENT="DISABLE_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))(IA||{}),NA=e=>({type:"EOF",raw:"«EOF»",text:"«EOF»",start:e}),oE=NA(1/0),Qt=e=>t=>t.type===e.type&&t.text===e.text,Wt={ARRAY:Qt({text:"ARRAY",type:"RESERVED_DATA_TYPE"}),BY:Qt({text:"BY",type:"RESERVED_KEYWORD"}),SET:Qt({text:"SET",type:"RESERVED_CLAUSE"}),STRUCT:Qt({text:"STRUCT",type:"RESERVED_DATA_TYPE"}),WINDOW:Qt({text:"WINDOW",type:"RESERVED_CLAUSE"}),VALUES:Qt({text:"VALUES",type:"RESERVED_CLAUSE"})},lA=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",HL=e=>e==="AND"||e==="OR"||e==="XOR",bL=["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"],BL=["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"],yL=["ARRAY","BOOL","BYTES","DATE","DATETIME","GEOGRAPHY","INTERVAL","INT64","INT","SMALLINT","INTEGER","BIGINT","TINYINT","BYTEINT","NUMERIC","DECIMAL","BIGNUMERIC","BIGDECIMAL","FLOAT64","STRING","STRUCT","TIME","TIMEZONE"],FL=u(["SELECT [ALL | DISTINCT] [AS STRUCT | AS VALUE]"]),vL=u(["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"]),Hn=u(["CREATE [OR REPLACE] [TEMP|TEMPORARY|SNAPSHOT|EXTERNAL] TABLE [IF NOT EXISTS]"]),Qs=u(["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"]),YL=u(["UNION {ALL | DISTINCT}","EXCEPT DISTINCT","INTERSECT DISTINCT"]),VL=u(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN"]),xL=u(["TABLESAMPLE SYSTEM","ANY TYPE","ALL COLUMNS","NOT DETERMINISTIC","{ROWS | RANGE} BETWEEN","IS [NOT] DISTINCT FROM"]),wL={name:"bigquery",tokenizerOptions:{reservedSelect:FL,reservedClauses:[...vL,...Qs,...Hn],reservedSetOperations:YL,reservedJoins:VL,reservedPhrases:xL,reservedKeywords:BL,reservedDataTypes:yL,reservedFunctionNames:bL,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:WL},formatOptions:{onelineClauses:[...Hn,...Qs],tabularOnelineClauses:Qs}};function WL(e){return XL(KL(e))}function XL(e){let t=oE;return e.map(E=>E.text==="OFFSET"&&t.text==="["?(t=E,Ye(me({},E),{type:"RESERVED_FUNCTION_NAME"})):(t=E,E))}function KL(e){var t;const E=[];for(let s=0;s<e.length;s++){const T=e[s];if((Wt.ARRAY(T)||Wt.STRUCT(T))&&((t=e[s+1])==null?void 0:t.text)==="<"){const r=$L(e,s+1),n=e.slice(s,r+1);E.push({type:"IDENTIFIER",raw:n.map(bn("raw")).join(""),text:n.map(bn("text")).join(""),start:T.start}),s=r}else E.push(T)}return E}var bn=e=>t=>t.type==="IDENTIFIER"||t.type==="COMMA"?t[e]+" ":t[e];function $L(e,t){let E=0;for(let s=t;s<e.length;s++){const T=e[s];if(T.text==="<"?E++:T.text===">"?E--:T.text===">>"&&(E-=2),E===0)return s}return e.length-1}var JL=["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"],kL=["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"],qL=["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"],jL=u(["SELECT [ALL | DISTINCT]"]),QL=u(["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"]),Bn=u(["CREATE [GLOBAL TEMPORARY | EXTERNAL] TABLE [IF NOT EXISTS]"]),Zs=u(["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"]),ZL=u(["UNION [ALL]","EXCEPT [ALL]","INTERSECT [ALL]"]),zL=u(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN"]),eu=u(["ON DELETE","ON UPDATE","SET NULL","{ROWS | RANGE} BETWEEN"]),tu={name:"db2",tokenizerOptions:{reservedSelect:jL,reservedClauses:[...QL,...Bn,...Zs],reservedSetOperations:ZL,reservedJoins:zL,reservedPhrases:eu,reservedKeywords:kL,reservedDataTypes:qL,reservedFunctionNames:JL,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:[...Bn,...Zs],tabularOnelineClauses:Zs}},Eu=["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"],su=["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"],Tu=["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"],ru=u(["SELECT [ALL | DISTINCT]"]),nu=u(["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"]),yn=u(["CREATE [OR REPLACE] TABLE"]),zs=u(["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}"]),Ru=u(["UNION [ALL]","EXCEPT [ALL]","INTERSECT [ALL]"]),ou=u(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","[LEFT | RIGHT] EXCEPTION JOIN","{INNER | CROSS} JOIN"]),Au=u(["ON DELETE","ON UPDATE","SET NULL","{ROWS | RANGE} BETWEEN"]),iu={name:"db2i",tokenizerOptions:{reservedSelect:ru,reservedClauses:[...nu,...yn,...zs],reservedSetOperations:Ru,reservedJoins:ou,reservedPhrases:Au,reservedKeywords:su,reservedDataTypes:Tu,reservedFunctionNames:Eu,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:[...yn,...zs],tabularOnelineClauses:zs}},Su=["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"],Ou=["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"],au=["ARRAY","BIGINT","BINARY","BOOLEAN","CHAR","DATE","DECIMAL","DOUBLE","FLOAT","INT","INTEGER","INTERVAL","MAP","NUMERIC","PRECISION","SMALLINT","STRUCT","TIMESTAMP","VARCHAR"],Iu=u(["SELECT [ALL | DISTINCT]"]),Nu=u(["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"]),Fn=u(["CREATE [TEMPORARY] [EXTERNAL] TABLE [IF NOT EXISTS]"]),eT=u(["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"]),lu=u(["UNION [ALL | DISTINCT]"]),_u=u(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","LEFT SEMI JOIN"]),Cu=u(["{ROWS | RANGE} BETWEEN"]),cu={name:"hive",tokenizerOptions:{reservedSelect:Iu,reservedClauses:[...Nu,...Fn,...eT],reservedSetOperations:lu,reservedJoins:_u,reservedPhrases:Cu,reservedKeywords:Ou,reservedDataTypes:au,reservedFunctionNames:Su,extraParens:["[]"],stringTypes:['""-bs',"''-bs"],identTypes:["``"],variableTypes:[{quote:"{}",prefixes:["$"],requirePrefix:!0}],operators:["%","~","^","|","&","<=>","==","!","||"]},formatOptions:{onelineClauses:[...Fn,...eT],tabularOnelineClauses:eT}};function Fs(e){return e.map((t,E)=>{const s=e[E+1]||oE;if(Wt.SET(t)&&s.text==="(")return Ye(me({},t),{type:"RESERVED_FUNCTION_NAME"});const T=e[E-1]||oE;return Wt.VALUES(t)&&T.text==="="?Ye(me({},t),{type:"RESERVED_FUNCTION_NAME"}):t})}var Lu=["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"],uu=["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"],fu=["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"],pu=u(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),Du=u(["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"]),vn=u(["CREATE [OR REPLACE] [TEMPORARY] TABLE [IF NOT EXISTS]"]),tT=u(["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"]),Pu=u(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]","MINUS [ALL | DISTINCT]"]),du=u(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),Mu=u(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","CHARACTER SET","{ROWS | RANGE} BETWEEN","IDENTIFIED BY"]),Uu={name:"mariadb",tokenizerOptions:{reservedSelect:pu,reservedClauses:[...Du,...vn,...tT],reservedSetOperations:Pu,reservedJoins:du,reservedPhrases:Mu,supportsXor:!0,reservedKeywords:Lu,reservedDataTypes:uu,reservedFunctionNames:fu,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:Fs},formatOptions:{onelineClauses:[...vn,...tT],tabularOnelineClauses:tT}},hu=["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"],Gu=["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"],gu=["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"],mu=u(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),Hu=u(["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"]),Yn=u(["CREATE [TEMPORARY] TABLE [IF NOT EXISTS]"]),ET=u(["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"]),bu=u(["UNION [ALL | DISTINCT]"]),Bu=u(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),yu=u(["ON {UPDATE | DELETE} [SET NULL]","CHARACTER SET","{ROWS | RANGE} BETWEEN","IDENTIFIED BY"]),Fu={name:"mysql",tokenizerOptions:{reservedSelect:mu,reservedClauses:[...Hu,...Yn,...ET],reservedSetOperations:bu,reservedJoins:Bu,reservedPhrases:yu,supportsXor:!0,reservedKeywords:hu,reservedDataTypes:Gu,reservedFunctionNames:gu,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:Fs},formatOptions:{onelineClauses:[...Yn,...ET],tabularOnelineClauses:ET}},vu=["ADD","ALL","ALTER","ANALYZE","AND","ARRAY","AS","ASC","BETWEEN","BOTH","BY","CALL","CASCADE","CASE","CHANGE","CHECK","COLLATE","COLUMN","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","DEFAULT","DELAYED","DELETE","DESC","DESCRIBE","DISTINCT","DISTINCTROW","DIV","DOUBLE","DROP","DUAL","ELSE","ELSEIF","ENCLOSED","ESCAPED","EXCEPT","EXISTS","EXIT","EXPLAIN","FALSE","FETCH","FOR","FORCE","FOREIGN","FROM","FULLTEXT","GENERATED","GRANT","GROUP","GROUPS","HAVING","HIGH_PRIORITY","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IF","IGNORE","ILIKE","IN","INDEX","INFILE","INNER","INOUT","INSERT","INTERSECT","INTERVAL","INTO","IS","ITERATE","JOIN","KEY","KEYS","KILL","LEADING","LEAVE","LEFT","LIKE","LIMIT","LINEAR","LINES","LOAD","LOCALTIME","LOCALTIMESTAMP","LOCK","LONG","LOW_PRIORITY","MATCH","MAXVALUE","MINUTE_MICROSECOND","MINUTE_SECOND","MOD","NATURAL","NOT","NO_WRITE_TO_BINLOG","NULL","OF","ON","OPTIMIZE","OPTION","OPTIONALLY","OR","ORDER","OUT","OUTER","OUTFILE","OVER","PARTITION","PRIMARY","PROCEDURE","RANGE","READ","RECURSIVE","REFERENCES","REGEXP","RELEASE","RENAME","REPEAT","REPLACE","REQUIRE","RESTRICT","REVOKE","RIGHT","RLIKE","ROW","ROWS","SECOND_MICROSECOND","SELECT","SET","SHOW","SPATIAL","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_BIG_RESULT","SQL_CALC_FOUND_ROWS","SQL_SMALL_RESULT","SSL","STARTING","STATS_EXTENDED","STORED","STRAIGHT_JOIN","TABLE","TABLESAMPLE","TERMINATED","THEN","TO","TRAILING","TRIGGER","TRUE","TiDB_CURRENT_TSO","UNION","UNIQUE","UNLOCK","UNSIGNED","UNTIL","UPDATE","USAGE","USE","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALUES","VIRTUAL","WHEN","WHERE","WHILE","WINDOW","WITH","WRITE","XOR","YEAR_MONTH","ZEROFILL"],Yu=["BIGINT","BINARY","BIT","BLOB","BOOL","BOOLEAN","CHAR","CHARACTER","DATE","DATETIME","DEC","DECIMAL","DOUBLE PRECISION","DOUBLE","ENUM","FIXED","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","LONGBLOB","LONGTEXT","MEDIUMBLOB","MEDIUMINT","MIDDLEINT","NATIONAL CHAR","NATIONAL VARCHAR","NUMERIC","PRECISION","SMALLINT","TEXT","TIME","TIMESTAMP","TINYBLOB","TINYINT","TINYTEXT","VARBINARY","VARCHAR","VARCHARACTER","VARYING","YEAR"],Vu=["ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ANY_VALUE","ASCII","ASIN","ATAN","ATAN2","AVG","BENCHMARK","BIN","BIN_TO_UUID","BIT_AND","BIT_COUNT","BIT_LENGTH","BIT_OR","BIT_XOR","BITAND","BITNEG","BITOR","BITXOR","CASE","CAST","CEIL","CEILING","CHAR_FUNC","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_RESOURCE_GROUP","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURTIME","DATABASE","DATE","DATE_ADD","DATE_FORMAT","DATE_SUB","DATEDIFF","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DECODE","DEFAULT_FUNC","DEGREES","DENSE_RANK","DES_DECRYPT","DES_ENCRYPT","DIV","ELT","ENCODE","ENCRYPT","EQ","EXP","EXPORT_SET","EXTRACT","FIELD","FIND_IN_SET","FIRST_VALUE","FLOOR","FORMAT","FORMAT_BYTES","FORMAT_NANO_TIME","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GE","GET_FORMAT","GET_LOCK","GETPARAM","GREATEST","GROUP_CONCAT","GROUPING","GT","HEX","HOUR","IF","IFNULL","ILIKE","INET6_ATON","INET6_NTOA","INET_ATON","INET_NTOA","INSERT_FUNC","INSTR","INTDIV","INTERVAL","IS_FREE_LOCK","IS_IPV4","IS_IPV4_COMPAT","IS_IPV4_MAPPED","IS_IPV6","IS_USED_LOCK","IS_UUID","ISFALSE","ISNULL","ISTRUE","JSON_ARRAY","JSON_ARRAYAGG","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_MEMBEROF","JSON_MERGE","JSON_MERGE_PATCH","JSON_MERGE_PRESERVE","JSON_OBJECT","JSON_OBJECTAGG","JSON_OVERLAPS","JSON_PRETTY","JSON_QUOTE","JSON_REMOVE","JSON_REPLACE","JSON_SEARCH","JSON_SET","JSON_STORAGE_FREE","JSON_STORAGE_SIZE","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","LAG","LAST_DAY","LAST_INSERT_ID","LAST_VALUE","LASTVAL","LCASE","LE","LEAD","LEAST","LEFT","LEFTSHIFT","LENGTH","LIKE","LN","LOAD_FILE","LOCALTIME","LOCALTIMESTAMP","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LT","LTRIM","MAKE_SET","MAKEDATE","MAKETIME","MASTER_POS_WAIT","MAX","MD5","MICROSECOND","MID","MIN","MINUS","MINUTE","MOD","MONTH","MONTHNAME","MUL","NAME_CONST","NE","NEXTVAL","NOT","NOW","NTH_VALUE","NTILE","NULLEQ","OCT","OCTET_LENGTH","OLD_PASSWORD","ORD","PASSWORD_FUNC","PERCENT_RANK","PERIOD_ADD","PERIOD_DIFF","PI","PLUS","POSITION","POW","POWER","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","RIGHTSHIFT","ROUND","ROW_COUNT","ROW_NUMBER","RPAD","RTRIM","SCHEMA","SEC_TO_TIME","SECOND","SESSION_USER","SETVAL","SETVAR","SHA","SHA1","SHA2","SIGN","SIN","SLEEP","SM3","SPACE","SQRT","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DATE","STRCMP","SUBDATE","SUBSTR","SUBSTRING","SUBSTRING_INDEX","SUBTIME","SUM","SYSDATE","SYSTEM_USER","TAN","TIDB_BOUNDED_STALENESS","TIDB_CURRENT_TSO","TIDB_DECODE_BINARY_PLAN","TIDB_DECODE_KEY","TIDB_DECODE_PLAN","TIDB_DECODE_SQL_DIGESTS","TIDB_ENCODE_SQL_DIGEST","TIDB_IS_DDL_OWNER","TIDB_PARSE_TSO","TIDB_PARSE_TSO_LOGICAL","TIDB_ROW_CHECKSUM","TIDB_SHARD","TIDB_VERSION","TIME","TIME_FORMAT","TIME_TO_SEC","TIMEDIFF","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TO_BASE64","TO_DAYS","TO_SECONDS","TRANSLATE","TRIM","TRUNCATE","UCASE","UNARYMINUS","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UPPER","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","UUID","UUID_SHORT","UUID_TO_BIN","VALIDATE_PASSWORD_STRENGTH","VAR_POP","VAR_SAMP","VARIANCE","VERSION","VITESS_HASH","WEEK","WEEKDAY","WEEKOFYEAR","WEIGHT_STRING","YEAR","YEARWEEK"],xu=u(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),wu=u(["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"]),Vn=u(["CREATE [TEMPORARY] TABLE [IF NOT EXISTS]"]),sT=u(["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 INSTANCE","ALTER RESOURCE GROUP","ALTER SEQUENCE","ALTER USER","ALTER VIEW","ANALYZE TABLE","CHECK TABLE","CHECKSUM TABLE","COMMIT","CREATE DATABASE","CREATE INDEX","CREATE RESOURCE GROUP","CREATE ROLE","CREATE SEQUENCE","CREATE USER","DEALLOCATE PREPARE","DESCRIBE","DROP DATABASE","DROP INDEX","DROP RESOURCE GROUP","DROP ROLE","DROP TABLESPACE","DROP USER","DROP VIEW","EXPLAIN","FLUSH","GRANT","IMPORT TABLE","INSTALL COMPONENT","INSTALL PLUGIN","KILL","LOAD DATA","LOCK INSTANCE FOR BACKUP","LOCK TABLES","OPTIMIZE TABLE","PREPARE","RELEASE SAVEPOINT","RENAME TABLE","RENAME USER","REPAIR TABLE","RESET","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 TABLE","SHOW CREATE USER","SHOW CREATE VIEW","SHOW DATABASES","SHOW ENGINE","SHOW ENGINES","SHOW ERRORS","SHOW EVENTS","SHOW GRANTS","SHOW INDEX","SHOW MASTER STATUS","SHOW OPEN TABLES","SHOW PLUGINS","SHOW PRIVILEGES","SHOW PROCESSLIST","SHOW PROFILE","SHOW PROFILES","SHOW STATUS","SHOW TABLE STATUS","SHOW TABLES","SHOW TRIGGERS","SHOW VARIABLES","SHOW WARNINGS","TABLE","UNINSTALL COMPONENT","UNINSTALL PLUGIN","UNLOCK INSTANCE","UNLOCK TABLES","USE"]),Wu=u(["UNION [ALL | DISTINCT]"]),Xu=u(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),Ku=u(["ON {UPDATE | DELETE} [SET NULL]","CHARACTER SET","{ROWS | RANGE} BETWEEN","IDENTIFIED BY"]),$u={name:"tidb",tokenizerOptions:{reservedSelect:xu,reservedClauses:[...wu,...Vn,...sT],reservedSetOperations:Wu,reservedJoins:Xu,reservedPhrases:Ku,supportsXor:!0,reservedKeywords:vu,reservedDataTypes:Yu,reservedFunctionNames:Vu,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:Fs},formatOptions:{onelineClauses:[...Vn,...sT],tabularOnelineClauses:sT}},Ju=["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"],ku=["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"],qu=[],ju=u(["SELECT [ALL | DISTINCT]"]),Qu=u(["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"]),xn=u(["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"]),Zu=u(["UNION [ALL]","EXCEPT [ALL]","INTERSECT [ALL]"]),zu=u(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","INNER JOIN"]),ef=u(["{ROWS | RANGE | GROUPS} BETWEEN"]),tf={name:"n1ql",tokenizerOptions:{reservedSelect:ju,reservedClauses:[...Qu,...xn],reservedSetOperations:Zu,reservedJoins:zu,reservedPhrases:ef,supportsXor:!0,reservedKeywords:ku,reservedDataTypes:qu,reservedFunctionNames:Ju,stringTypes:['""-bs',"''-bs"],identTypes:["``"],extraParens:["[]","{}"],paramTypes:{positional:!0,numbered:["$"],named:["$"]},lineCommentTypes:["#","--"],operators:["%","==",":","||"]},formatOptions:{onelineClauses:xn}},Ef=["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"],sf=["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"],Tf=["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"],rf=u(["SELECT [ALL | DISTINCT | UNIQUE]"]),nf=u(["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"]),wn=u(["CREATE [GLOBAL TEMPORARY | PRIVATE TEMPORARY | SHARDED | DUPLICATED | IMMUTABLE BLOCKCHAIN | BLOCKCHAIN | IMMUTABLE] TABLE"]),TT=u(["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"]),Rf=u(["UNION [ALL]","EXCEPT","INTERSECT"]),of=u(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN","{CROSS | OUTER} APPLY"]),Af=u(["ON {UPDATE | DELETE} [SET NULL]","ON COMMIT","{ROWS | RANGE} BETWEEN"]),Sf={name:"plsql",tokenizerOptions:{reservedSelect:rf,reservedClauses:[...nf,...wn,...TT],reservedSetOperations:Rf,reservedJoins:of,reservedPhrases:Af,supportsXor:!0,reservedKeywords:Ef,reservedDataTypes:sf,reservedFunctionNames:Tf,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:Of},formatOptions:{alwaysDenseOperators:["@"],onelineClauses:[...wn,...TT],tabularOnelineClauses:TT}};function Of(e){let t=oE;return e.map(E=>Wt.SET(E)&&Wt.BY(t)?Ye(me({},E),{type:"RESERVED_KEYWORD"}):(lA(E.type)&&(t=E),E))}var af=["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","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"],If=["ALL","ANALYSE","ANALYZE","AND","ANY","AS","ASC","ASYMMETRIC","AUTHORIZATION","BETWEEN","BINARY","BOTH","CASE","CAST","CHECK","COLLATE","COLLATION","COLUMN","CONCURRENTLY","CONSTRAINT","CREATE","CROSS","CURRENT_CATALOG","CURRENT_DATE","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","DAY","DEFAULT","DEFERRABLE","DESC","DISTINCT","DO","ELSE","END","EXCEPT","EXISTS","FALSE","FETCH","FILTER","FOR","FOREIGN","FREEZE","FROM","FULL","GRANT","GROUP","HAVING","HOUR","ILIKE","IN","INITIALLY","INNER","INOUT","INTERSECT","INTO","IS","ISNULL","JOIN","LATERAL","LEADING","LEFT","LIKE","LIMIT","LOCALTIME","LOCALTIMESTAMP","MINUTE","MONTH","NATURAL","NOT","NOTNULL","NULL","NULLIF","OFFSET","ON","ONLY","OR","ORDER","OUT","OUTER","OVER","OVERLAPS","PLACING","PRIMARY","REFERENCES","RETURNING","RIGHT","ROW","SECOND","SELECT","SESSION_USER","SIMILAR","SOME","SYMMETRIC","TABLE","TABLESAMPLE","THEN","TO","TRAILING","TRUE","UNION","UNIQUE","USER","USING","VALUES","VARIADIC","VERBOSE","WHEN","WHERE","WINDOW","WITH","WITHIN","WITHOUT","YEAR"],Nf=["ARRAY","BIGINT","BIT","BIT VARYING","BOOL","BOOLEAN","CHAR","CHARACTER","CHARACTER VARYING","DECIMAL","DEC","DOUBLE","ENUM","FLOAT","INT","INTEGER","INTERVAL","NCHAR","NUMERIC","PRECISION","REAL","SMALLINT","TEXT","TIME","TIMESTAMP","TIMESTAMPTZ","VARCHAR","XML","ZONE"],lf=u(["SELECT [ALL | DISTINCT]"]),_f=u(["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","DEFAULT VALUES","SET","RETURNING"]),Wn=u(["CREATE [GLOBAL | LOCAL] [TEMPORARY | TEMP | UNLOGGED] TABLE [IF NOT EXISTS]"]),rT=u(["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 [OR REPLACE] 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 IDENTITY","DROP INDEX","DROP LANGUAGE","DROP MATERIALIZED VIEW [IF EXISTS]","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","OVERRIDING SYSTEM VALUE","PREPARE","PREPARE TRANSACTION","REASSIGN OWNED","REFRESH MATERIALIZED VIEW","REINDEX","RELEASE SAVEPOINT","RESET [ALL|ROLE|SESSION AUTHORIZATION]","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"]),Cf=u(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),cf=u(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),Lf=u(["PRIMARY KEY","GENERATED {ALWAYS | BY DEFAULT} AS IDENTITY","ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","DO {NOTHING | UPDATE}","AS MATERIALIZED","{ROWS | RANGE | GROUPS} BETWEEN","[TIMESTAMP | TIME] {WITH | WITHOUT} TIME ZONE","IS [NOT] DISTINCT FROM","NULLS {FIRST | LAST}","WITH ORDINALITY"]),uf={name:"postgresql",tokenizerOptions:{reservedSelect:lf,reservedClauses:[..._f,...Wn,...rT],reservedSetOperations:Cf,reservedJoins:cf,reservedPhrases:Lf,reservedKeywords:If,reservedDataTypes:Nf,reservedFunctionNames:af,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:["%","^","|/","||/","@",":=","&","|","#","~","<<",">>","~>~","~<~","~>=~","~<=~","@-@","@@","##","<->","&&","&<","&>","<<|","&<|","|>>","|&>","<^","^>","?#","?-","?|","?-|","?||","@>","<@","~=","?","@?","?&","->","->>","#>","#>>","#-","=>",">>=","<<=","~~","~~*","!~~","!~~*","~","~*","!~","!~*","-|-","||","@@@","!!","^@","<%","%>","<<%","%>>","<<->","<->>","<<<->","<->>>","::",":","<#>","<=>","<+>","<~>","<%>"],operatorKeyword:!0},formatOptions:{alwaysDenseOperators:["::",":"],onelineClauses:[...Wn,...rT],tabularOnelineClauses:rT}},ff=["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"],pf=["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"],Df=["ARRAY","BIGINT","BPCHAR","CHAR","CHARACTER VARYING","CHARACTER","DECIMAL","INT","INT2","INT4","INT8","INTEGER","NCHAR","NUMERIC","NVARCHAR","SMALLINT","TEXT","VARBYTE","VARCHAR"],Pf=u(["SELECT [ALL | DISTINCT]"]),df=u(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT INTO","VALUES","SET"]),Xn=u(["CREATE [TEMPORARY | TEMP | LOCAL TEMPORARY | LOCAL TEMP] TABLE [IF NOT EXISTS]"]),nT=u(["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"]),Mf=u(["UNION [ALL]","EXCEPT","INTERSECT","MINUS"]),Uf=u(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),hf=u(["NULL AS","DATA CATALOG","HIVE METASTORE","{ROWS | RANGE} BETWEEN"]),Gf={name:"redshift",tokenizerOptions:{reservedSelect:Pf,reservedClauses:[...df,...Xn,...nT],reservedSetOperations:Mf,reservedJoins:Uf,reservedPhrases:hf,reservedKeywords:pf,reservedDataTypes:Df,reservedFunctionNames:ff,stringTypes:["''-qq"],identTypes:['""-qq'],identChars:{first:"#"},paramTypes:{numbered:["$"]},operators:["^","%","@","|/","||/","&","|","~","<<",">>","||","::"]},formatOptions:{alwaysDenseOperators:["::"],onelineClauses:[...Xn,...nT],tabularOnelineClauses:nT}},gf=["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"],mf=["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"],Hf=["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"],bf=u(["SELECT [ALL | DISTINCT]"]),Bf=u(["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"]),Kn=u(["CREATE [EXTERNAL] TABLE [IF NOT EXISTS]"]),RT=u(["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"]),yf=u(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),Ff=u(["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"]),vf=u(["ON DELETE","ON UPDATE","CURRENT ROW","{ROWS | RANGE} BETWEEN"]),Yf={name:"spark",tokenizerOptions:{reservedSelect:bf,reservedClauses:[...Bf,...Kn,...RT],reservedSetOperations:yf,reservedJoins:Ff,reservedPhrases:vf,supportsXor:!0,reservedKeywords:gf,reservedDataTypes:mf,reservedFunctionNames:Hf,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:Vf},formatOptions:{onelineClauses:[...Kn,...RT],tabularOnelineClauses:RT}};function Vf(e){return e.map((t,E)=>{const s=e[E-1]||oE,T=e[E+1]||oE;return Wt.WINDOW(t)&&T.type==="OPEN_PAREN"?Ye(me({},t),{type:"RESERVED_FUNCTION_NAME"}):t.text==="ITEMS"&&t.type==="RESERVED_KEYWORD"&&!(s.text==="COLLECTION"&&T.text==="TERMINATED")?Ye(me({},t),{type:"IDENTIFIER",text:t.raw}):t})}var xf=["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"],wf=["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"],Wf=["ANY","ARRAY","BLOB","CHARACTER","DECIMAL","INT","INTEGER","NATIVE CHARACTER","NCHAR","NUMERIC","NVARCHAR","REAL","TEXT","VARCHAR","VARYING CHARACTER"],Xf=u(["SELECT [ALL | DISTINCT]"]),Kf=u(["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"]),$n=u(["CREATE [TEMPORARY | TEMP] TABLE [IF NOT EXISTS]"]),oT=u(["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"]),$f=u(["UNION [ALL]","EXCEPT","INTERSECT"]),Jf=u(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),kf=u(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE | GROUPS} BETWEEN","DO UPDATE"]),qf={name:"sqlite",tokenizerOptions:{reservedSelect:Xf,reservedClauses:[...Kf,...$n,...oT],reservedSetOperations:$f,reservedJoins:Jf,reservedPhrases:kf,reservedKeywords:wf,reservedDataTypes:Wf,reservedFunctionNames:xf,stringTypes:["''-qq",{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq',"``","[]"],paramTypes:{positional:!0,numbered:["?"],named:[":","@","$"]},operators:["%","~","&","|","<<",">>","==","->","->>","||"]},formatOptions:{onelineClauses:[...$n,...oT],tabularOnelineClauses:oT}},jf=["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"],Qf=["ALL","ALLOCATE","ALTER","ANY","ARE","AS","ASC","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","DESC","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"],Zf=["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"],zf=u(["SELECT [ALL | DISTINCT]"]),ep=u(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT INTO","VALUES","SET"]),Jn=u(["CREATE [GLOBAL TEMPORARY | LOCAL TEMPORARY] TABLE"]),AT=u(["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"]),tp=u(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),Ep=u(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),sp=u(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE} BETWEEN"]),Tp={name:"sql",tokenizerOptions:{reservedSelect:zf,reservedClauses:[...ep,...Jn,...AT],reservedSetOperations:tp,reservedJoins:Ep,reservedPhrases:sp,reservedKeywords:Qf,reservedDataTypes:Zf,reservedFunctionNames:jf,stringTypes:[{quote:"''-qq-bs",prefixes:["N","U&"]},{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq',"``"],paramTypes:{positional:!0},operators:["||"]},formatOptions:{onelineClauses:[...Jn,...AT],tabularOnelineClauses:AT}},rp=["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"],np=["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"],Rp=["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"],op=u(["SELECT [ALL | DISTINCT]"]),Ap=u(["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"]),kn=u(["CREATE TABLE [IF NOT EXISTS]"]),iT=u(["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"]),ip=u(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),Sp=u(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),Op=u(["{ROWS | RANGE | GROUPS} BETWEEN","IS [NOT] DISTINCT FROM"]),ap={name:"trino",tokenizerOptions:{reservedSelect:op,reservedClauses:[...Ap,...kn,...iT],reservedSetOperations:ip,reservedJoins:Sp,reservedPhrases:Op,reservedKeywords:np,reservedDataTypes:Rp,reservedFunctionNames:rp,extraParens:["[]","{}"],stringTypes:[{quote:"''-qq",prefixes:["U&"]},{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq'],paramTypes:{positional:!0},operators:["%","->","=>",":","||","|","^","$"]},formatOptions:{onelineClauses:[...kn,...iT],tabularOnelineClauses:iT}},Ip=["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","CHARINDEX","CONCAT","CONCAT_WS","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","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"],Np=["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","$ACTION"],lp=["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"],_p=u(["SELECT [ALL | DISTINCT]"]),Cp=u(["WITH","INTO","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","OFFSET","FETCH {FIRST | NEXT}","FOR {BROWSE | XML | JSON}","OPTION","INSERT [INTO]","VALUES","SET","MERGE [INTO]","WHEN [NOT] MATCHED [BY TARGET | BY SOURCE] [THEN]","UPDATE SET","CREATE [OR ALTER] {PROC | PROCEDURE}"]),qn=u(["CREATE TABLE"]),ST=u(["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","CREATE [UNIQUE] [CLUSTERED] INDEX","GO","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"]),cp=u(["UNION [ALL]","EXCEPT","INTERSECT"]),Lp=u(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","{CROSS | OUTER} APPLY"]),up=u(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE} BETWEEN"]),fp={name:"transactsql",tokenizerOptions:{reservedSelect:_p,reservedClauses:[...Cp,...qn,...ST],reservedSetOperations:cp,reservedJoins:Lp,reservedPhrases:up,reservedKeywords:Np,reservedDataTypes:lp,reservedFunctionNames:Ip,nestedBlockComments:!0,stringTypes:[{quote:"''-qq",prefixes:["N"]}],identTypes:['""-qq',"[]"],identChars:{first:"#@",rest:"#@$"},paramTypes:{named:["@"],quoted:["@"]},operators:["%","&","|","^","~","!<","!>","+=","-=","*=","/=","%=","|=","&=","^=","::",":"],propertyAccessOperators:[".."]},formatOptions:{alwaysDenseOperators:["::"],onelineClauses:[...qn,...ST],tabularOnelineClauses:ST}},pp=["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"],Dp=["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"],Pp=["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"],dp=u(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),Mp=u(["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"]),jn=u(["CREATE [ROWSTORE] [REFERENCE | TEMPORARY | GLOBAL TEMPORARY] TABLE [IF NOT EXISTS]"]),OT=u(["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"]),Up=u(["UNION [ALL | DISTINCT]","EXCEPT","INTERSECT","MINUS"]),hp=u(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),Gp=u(["ON DELETE","ON UPDATE","CHARACTER SET","{ROWS | RANGE} BETWEEN","IDENTIFIED BY"]),gp={name:"singlestoredb",tokenizerOptions:{reservedSelect:dp,reservedClauses:[...Mp,...jn,...OT],reservedSetOperations:Up,reservedJoins:hp,reservedPhrases:Gp,reservedKeywords:pp,reservedDataTypes:Dp,reservedFunctionNames:Pp,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:Fs},formatOptions:{alwaysDenseOperators:["::","::$","::%"],onelineClauses:[...jn,...OT],tabularOnelineClauses:OT}},mp=["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","FILTER","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","GREATEST_IGNORE_NULLS","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"],Hp=["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"],bp=["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"],Bp=u(["SELECT [ALL | DISTINCT]"]),yp=u(["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"]),Qn=u(["CREATE [OR REPLACE] [VOLATILE] TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] [LOCAL | GLOBAL] {TEMP|TEMPORARY} TABLE [IF NOT EXISTS]"]),aT=u(["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"]),Fp=u(["UNION [ALL]","MINUS","EXCEPT","INTERSECT"]),vp=u(["[INNER] JOIN","[NATURAL] {LEFT | RIGHT | FULL} [OUTER] JOIN","{CROSS | NATURAL} JOIN"]),Yp=u(["{ROWS | RANGE} BETWEEN","ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]"]),Vp={name:"snowflake",tokenizerOptions:{reservedSelect:Bp,reservedClauses:[...yp,...Qn,...aT],reservedSetOperations:Fp,reservedJoins:vp,reservedPhrases:Yp,reservedKeywords:Hp,reservedDataTypes:bp,reservedFunctionNames:mp,stringTypes:["$$","''-qq-bs"],identTypes:['""-qq'],variableTypes:[{regex:"[$][1-9]\\d*"},{regex:"[$][_a-zA-Z][_a-zA-Z0-9$]*"}],extraParens:["[]"],identChars:{rest:"$"},lineCommentTypes:["--","//"],operators:["%","::","||","=>",":=","->"],propertyAccessOperators:[":"]},formatOptions:{alwaysDenseOperators:["::"],onelineClauses:[...Qn,...aT],tabularOnelineClauses:aT}},UE=e=>e[e.length-1],_A=e=>e.sort((t,E)=>E.length-t.length||t.localeCompare(E)),zE=e=>e.replace(/\s+/gu," "),IT=e=>/\n/.test(e),Tt=e=>e.replace(/[.*+?^${}()|[\]\\]/gu,"\\$&"),Zn=/\s+/uy,$t=e=>new RegExp(`(?:${e})`,"uy"),xp=e=>e.split("").map(t=>/ /gu.test(t)?"\\s+":`[${t.toUpperCase()}${t.toLowerCase()}]`).join(""),wp=e=>e+"(?:-"+e+")*",Wp=({prefixes:e,requirePrefix:t})=>`(?:${e.map(xp).join("|")}${t?"":"|"})`,Xp=e=>new RegExp(`(?:${e.map(Tt).join("|")}).*?(?=\r
|
35
35
|
|\r|
|
36
|
-
|$)`,"uy"),zn=(e,t=[])=>{const E=e==="open"?0:1,s=["()",...t].map(T=>T[E]);return $t(s.map(Tt).join("|"))},eR=e=>$t(`${_A(e).map(Tt).join("|")}`)
|
36
|
+
|$)`,"uy"),zn=(e,t=[])=>{const E=e==="open"?0:1,s=["()",...t].map(T=>T[E]);return $t(s.map(Tt).join("|"))},eR=e=>$t(`${_A(e).map(Tt).join("|")}`),Kp=({rest:e,dashes:t})=>e||t?`(?![${e||""}${t?"-":""}])`:"",Ct=(e,t={})=>{if(e.length===0)return/^\b$/u;const E=Kp(t),s=_A(e).map(Tt).join("|").replace(/ /gu,"\\s+");return new RegExp(`(?:${s})${E}\\b`,"iuy")},NT=(e,t)=>{if(!e.length)return;const E=e.map(Tt).join("|");return $t(`(?:${E})(?:${t})`)},$p=()=>{const e={"<":">","[":"]","(":")","{":"}"},t="{left}(?:(?!{right}').)*?{right}",E=Object.entries(e).map(([n,R])=>t.replace(/{left}/g,Tt(n)).replace(/{right}/g,Tt(R))),s=Tt(Object.keys(e).join(""));return`[Qq]'(?:${String.raw`(?<tag>[^\s${s}])(?:(?!\k<tag>').)*?\k<tag>`}|${E.join("|")})'`},tR={"``":"(?:`[^`]*`)+","[]":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''":$p()},CA=e=>typeof e=="string"?tR[e]:"regex"in e?e.regex:Wp(e)+tR[e.quote],Jp=e=>$t(e.map(t=>"regex"in t?t.regex:CA(t)).join("|")),cA=e=>e.map(CA).join("|"),ER=e=>$t(cA(e)),kp=(e={})=>$t(LA(e)),LA=({first:e,rest:t,dashes:E,allowFirstCharNumber:s}={})=>{const T="\\p{Alphabetic}\\p{Mark}_",r="\\p{Decimal_Number}",n=Tt(e??""),R=Tt(t??""),o=s?`[${T}${r}${n}][${T}${r}${R}]*`:`[${T}${n}][${T}${r}${R}]*`;return E?wp(o):o};function uA(e,t){const E=e.slice(0,t).split(/\n/);return{line:E.length,col:E[E.length-1].length+1}}var qp=class{constructor(e,t){this.rules=e,this.dialectName=t,this.input="",this.index=0}tokenize(e){this.input=e,this.index=0;const t=[];let E;for(;this.index<this.input.length;){const s=this.getWhitespace();if(this.index<this.input.length){if(E=this.getNextToken(),!E)throw this.createParseError();t.push(Ye(me({},E),{precedingWhitespace:s}))}}return t}createParseError(){const e=this.input.slice(this.index,this.index+10),{line:t,col:E}=uA(this.input,this.index);return new Error(`Parse error: Unexpected "${e}" at line ${t} column ${E}.
|
37
37
|
${this.dialectInfo()}`)}dialectInfo(){return this.dialectName==="sql"?`This likely happens because you're using the default "sql" dialect.
|
38
|
-
If possible, please select a more specific dialect (like sqlite, postgresql, etc).`:`SQL dialect used: "${this.dialectName}".`}getWhitespace(){Zn.lastIndex=this.index;const e=Zn.exec(this.input);if(e)return this.index+=e[0].length,e[0]}getNextToken(){for(const e of this.rules){const t=this.match(e);if(t)return t}}match(e){e.regex.lastIndex=this.index;const t=e.regex.exec(this.input);if(t){const E=t[0],s={type:e.type,raw:E,text:e.text?e.text(E):E,start:this.index};return e.key&&(s.key=e.key(E)),this.index+=E.length,s}}},sR=/\/\*/uy,Qf=/[\s\S]/uy,Zf=/\*\//uy,zf=class{constructor(){this.lastIndex=0}exec(e){let t="",E,s=0;if(E=this.matchSection(sR,e))t+=E,s++;else return null;for(;s>0;)if(E=this.matchSection(sR,e))t+=E,s++;else if(E=this.matchSection(Zf,e))t+=E,s--;else if(E=this.matchSection(Qf,e))t+=E;else return null;return[t]}matchSection(e,t){e.lastIndex=this.lastIndex;const E=e.exec(t);return E&&(this.lastIndex+=E[0].length),E?E[0]:null}},eD=class{constructor(e,t){this.cfg=e,this.dialectName=t,this.rulesBeforeParams=this.buildRulesBeforeParams(e),this.rulesAfterParams=this.buildRulesAfterParams(e)}tokenize(e,t){const E=[...this.rulesBeforeParams,...this.buildParamRules(this.cfg,t),...this.rulesAfterParams],s=new jf(E,this.dialectName).tokenize(e);return this.cfg.postProcess?this.cfg.postProcess(s):s}buildRulesBeforeParams(e){var t,E;return this.validRules([{type:"BLOCK_COMMENT",regex:/(\/\* *sql-formatter-disable *\*\/[\s\S]*?(?:\/\* *sql-formatter-enable *\*\/|$))/uy},{type:"BLOCK_COMMENT",regex:e.nestedBlockComments?new zf:/(\/\*[^]*?\*\/)/uy},{type:"LINE_COMMENT",regex:Kf((t=e.lineCommentTypes)!=null?t:["--"])},{type:"QUOTED_IDENTIFIER",regex:ER(e.identTypes)},{type:"NUMBER",regex:/(?:0x[0-9a-fA-F]+|0b[01]+|(?:-\s*)?(?:[0-9]*\.[0-9]+|[0-9]+(?:\.[0-9]*)?)(?:[eE][-+]?[0-9]+(?:\.[0-9]+)?)?)(?![\w\p{Alphabetic}])/uy},{type:"RESERVED_PHRASE",regex:Ct((E=e.reservedPhrases)!=null?E:[],e.identChars),text:Ue},{type:"CASE",regex:/CASE\b/iuy,text:Ue},{type:"END",regex:/END\b/iuy,text:Ue},{type:"BETWEEN",regex:/BETWEEN\b/iuy,text:Ue},{type:"LIMIT",regex:e.reservedClauses.includes("LIMIT")?/LIMIT\b/iuy:void 0,text:Ue},{type:"RESERVED_CLAUSE",regex:Ct(e.reservedClauses,e.identChars),text:Ue},{type:"RESERVED_SELECT",regex:Ct(e.reservedSelect,e.identChars),text:Ue},{type:"RESERVED_SET_OPERATION",regex:Ct(e.reservedSetOperations,e.identChars),text:Ue},{type:"WHEN",regex:/WHEN\b/iuy,text:Ue},{type:"ELSE",regex:/ELSE\b/iuy,text:Ue},{type:"THEN",regex:/THEN\b/iuy,text:Ue},{type:"RESERVED_JOIN",regex:Ct(e.reservedJoins,e.identChars),text:Ue},{type:"AND",regex:/AND\b/iuy,text:Ue},{type:"OR",regex:/OR\b/iuy,text:Ue},{type:"XOR",regex:e.supportsXor?/XOR\b/iuy:void 0,text:Ue},...e.operatorKeyword?[{type:"OPERATOR",regex:/OPERATOR *\([^)]+\)/iuy}]:[],{type:"RESERVED_FUNCTION_NAME",regex:Ct(e.reservedFunctionNames,e.identChars),text:Ue},{type:"RESERVED_DATA_TYPE",regex:Ct(e.reservedDataTypes,e.identChars),text:Ue},{type:"RESERVED_KEYWORD",regex:Ct(e.reservedKeywords,e.identChars),text:Ue}])}buildRulesAfterParams(e){var t,E;return this.validRules([{type:"VARIABLE",regex:e.variableTypes?kf(e.variableTypes):void 0},{type:"STRING",regex:ER(e.stringTypes)},{type:"IDENTIFIER",regex:qf(e.identChars)},{type:"DELIMITER",regex:/[;]/uy},{type:"COMMA",regex:/[,]/y},{type:"OPEN_PAREN",regex:zn("open",e.extraParens)},{type:"CLOSE_PAREN",regex:zn("close",e.extraParens)},{type:"OPERATOR",regex:eR(["+","-","/",">","<","=","<>","<=",">=","!=",...(t=e.operators)!=null?t:[]])},{type:"ASTERISK",regex:/[*]/uy},{type:"PROPERTY_ACCESS_OPERATOR",regex:eR([".",...(E=e.propertyAccessOperators)!=null?E:[]])}])}buildParamRules(e,t){var E,s,T,r,n;const R={named:(t==null?void 0:t.named)||((E=e.paramTypes)==null?void 0:E.named)||[],quoted:(t==null?void 0:t.quoted)||((s=e.paramTypes)==null?void 0:s.quoted)||[],numbered:(t==null?void 0:t.numbered)||((T=e.paramTypes)==null?void 0:T.numbered)||[],positional:typeof(t==null?void 0:t.positional)=="boolean"?t.positional:(r=e.paramTypes)==null?void 0:r.positional,custom:(t==null?void 0:t.custom)||((n=e.paramTypes)==null?void 0:n.custom)||[]};return this.validRules([{type:"NAMED_PARAMETER",regex:NT(R.named,cA(e.paramChars||e.identChars)),key:o=>o.slice(1)},{type:"QUOTED_PARAMETER",regex:NT(R.quoted,LA(e.identTypes)),key:o=>(({tokenKey:i,quoteChar:A})=>i.replace(new RegExp(Tt("\\"+A),"gu"),A))({tokenKey:o.slice(2,-1),quoteChar:o.slice(-1)})},{type:"NUMBERED_PARAMETER",regex:NT(R.numbered,"[0-9]+"),key:o=>o.slice(1)},{type:"POSITIONAL_PARAMETER",regex:R.positional?/[?]/y:void 0},...R.custom.map(o=>{var i;return{type:"CUSTOM_PARAMETER",regex:$t(o.regex),key:(i=o.key)!=null?i:A=>A}})])}validRules(e){return e.filter(t=>!!t.regex)}},Ue=e=>zE(e.toUpperCase()),TR=new Map,tD=e=>{let t=TR.get(e);return t||(t=ED(e),TR.set(e,t)),t},ED=e=>({tokenizer:new eD(e.tokenizerOptions,e.name),formatOptions:sD(e.formatOptions)}),sD=e=>{var t;return{alwaysDenseOperators:e.alwaysDenseOperators||[],onelineClauses:Object.fromEntries(e.onelineClauses.map(E=>[E,!0])),tabularOnelineClauses:Object.fromEntries(((t=e.tabularOnelineClauses)!=null?t:e.onelineClauses).map(E=>[E,!0]))}};function TD(e){return e.indentStyle==="tabularLeft"||e.indentStyle==="tabularRight"?" ".repeat(10):e.useTabs?" ":" ".repeat(e.tabWidth)}function Zt(e){return e.indentStyle==="tabularLeft"||e.indentStyle==="tabularRight"}var rD=class{constructor(e){this.params=e,this.index=0}get({key:e,text:t}){return this.params?e?this.params[e]:this.params[this.index++]:t}getPositionalParameterIndex(){return this.index}setPositionalParameterIndex(e){this.index=e}};function nD(e){return e.map(RD).map(oD).map(AD).map(iD).map(SD)}var RD=(e,t,E)=>{if(lA(e.type)){const s=OD(E,t);if(s&&s.type==="PROPERTY_ACCESS_OPERATOR")return Ye(me({},e),{type:"IDENTIFIER",text:e.raw});const T=aE(E,t);if(T&&T.type==="PROPERTY_ACCESS_OPERATOR")return Ye(me({},e),{type:"IDENTIFIER",text:e.raw})}return e},oD=(e,t,E)=>{if(e.type==="RESERVED_FUNCTION_NAME"){const s=aE(E,t);if(!s||!pA(s))return Ye(me({},e),{type:"IDENTIFIER",text:e.raw})}return e},AD=(e,t,E)=>{if(e.type==="RESERVED_DATA_TYPE"){const s=aE(E,t);if(s&&pA(s))return Ye(me({},e),{type:"RESERVED_PARAMETERIZED_DATA_TYPE"})}return e},iD=(e,t,E)=>{if(e.type==="IDENTIFIER"){const s=aE(E,t);if(s&&fA(s))return Ye(me({},e),{type:"ARRAY_IDENTIFIER"})}return e},SD=(e,t,E)=>{if(e.type==="RESERVED_DATA_TYPE"){const s=aE(E,t);if(s&&fA(s))return Ye(me({},e),{type:"ARRAY_KEYWORD"})}return e},OD=(e,t)=>aE(e,t,-1),aE=(e,t,E=1)=>{let s=1;for(;e[t+s*E]&&ID(e[t+s*E]);)s++;return e[t+s*E]},pA=e=>e.type==="OPEN_PAREN"&&e.text==="(",fA=e=>e.type==="OPEN_PAREN"&&e.text==="[",ID=e=>e.type==="BLOCK_COMMENT"||e.type==="LINE_COMMENT",DA=class{constructor(e){this.tokenize=e,this.index=0,this.tokens=[],this.input=""}reset(e,t){this.input=e,this.index=0,this.tokens=this.tokenize(e)}next(){return this.tokens[this.index++]}save(){}formatError(e){const{line:t,col:E}=uA(this.input,e.start);return`Parse error at token: ${e.text} at line ${t} column ${E}`}has(e){return e in aA}};function lT(e){return e[0]}var z=new DA(e=>[]),vt=([[e]])=>e,he=e=>({type:"keyword",tokenType:e.type,text:e.text,raw:e.raw}),rR=e=>({type:"data_type",text:e.text,raw:e.raw}),Ge=(e,{leading:t,trailing:E})=>(t!=null&&t.length&&(e=Ye(me({},e),{leadingComments:t})),E!=null&&E.length&&(e=Ye(me({},e),{trailingComments:E})),e),aD=(e,{leading:t,trailing:E})=>{if(t!=null&&t.length){const[s,...T]=e;e=[Ge(s,{leading:t}),...T]}if(E!=null&&E.length){const s=e.slice(0,-1),T=e[e.length-1];e=[...s,Ge(T,{trailing:E})]}return e},ND={Lexer:z,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 t=e[e.length-1];return t&&!t.hasSemicolon?t.children.length>0?e:e.slice(0,-1):e}},{name:"statement$subexpression$1",symbols:[z.has("DELIMITER")?{type:"DELIMITER"}:DELIMITER]},{name:"statement$subexpression$1",symbols:[z.has("EOF")?{type:"EOF"}:EOF]},{name:"statement",symbols:["expressions_or_clauses","statement$subexpression$1"],postprocess:([e,[t]])=>({type:"statement",children:e,hasSemicolon:t.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,t])=>[...e,...t]},{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:vt},{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:[z.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:lT},{name:"limit_clause$ebnf$1",symbols:[],postprocess:()=>null},{name:"limit_clause",symbols:[z.has("LIMIT")?{type:"LIMIT"}:LIMIT,"_","expression_chain_","limit_clause$ebnf$1"],postprocess:([e,t,E,s])=>{if(s){const[T,r]=s;return{type:"limit_clause",limitKw:Ge(he(e),{trailing:t}),offset:E,count:r}}else return{type:"limit_clause",limitKw:Ge(he(e),{trailing:t}),count:E}}},{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:[z.has("RESERVED_SELECT")?{type:"RESERVED_SELECT"}:RESERVED_SELECT,"select_clause$subexpression$1"],postprocess:([e,[t,E]])=>({type:"clause",nameKw:he(e),children:[t,...E]})},{name:"select_clause",symbols:[z.has("RESERVED_SELECT")?{type:"RESERVED_SELECT"}:RESERVED_SELECT],postprocess:([e])=>({type:"clause",nameKw:he(e),children:[]})},{name:"all_columns_asterisk",symbols:[z.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:[z.has("RESERVED_CLAUSE")?{type:"RESERVED_CLAUSE"}:RESERVED_CLAUSE,"other_clause$ebnf$1"],postprocess:([e,t])=>({type:"clause",nameKw:he(e),children:t})},{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:[z.has("RESERVED_SET_OPERATION")?{type:"RESERVED_SET_OPERATION"}:RESERVED_SET_OPERATION,"set_operation$ebnf$1"],postprocess:([e,t])=>({type:"set_operation",nameKw:he(e),children:t})},{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:lT},{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,t])=>[e,...t]},{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,t])=>[e,...t]},{name:"expression_with_comments_",symbols:["expression","_"],postprocess:([e,t])=>Ge(e,{trailing:t})},{name:"_expression_with_comments",symbols:["_","expression"],postprocess:([e,t])=>Ge(t,{leading:e})},{name:"_andless_expression_with_comments",symbols:["_","andless_expression"],postprocess:([e,t])=>Ge(t,{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:vt},{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:vt},{name:"expression$subexpression$1",symbols:["andless_expression"]},{name:"expression$subexpression$1",symbols:["logic_operator"]},{name:"expression",symbols:["expression$subexpression$1"],postprocess:vt},{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:vt},{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:vt},{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:vt},{name:"array_subscript",symbols:[z.has("ARRAY_IDENTIFIER")?{type:"ARRAY_IDENTIFIER"}:ARRAY_IDENTIFIER,"_","square_brackets"],postprocess:([e,t,E])=>({type:"array_subscript",array:Ge({type:"identifier",quoted:!1,text:e.text},{trailing:t}),parenthesis:E})},{name:"array_subscript",symbols:[z.has("ARRAY_KEYWORD")?{type:"ARRAY_KEYWORD"}:ARRAY_KEYWORD,"_","square_brackets"],postprocess:([e,t,E])=>({type:"array_subscript",array:Ge(he(e),{trailing:t}),parenthesis:E})},{name:"function_call",symbols:[z.has("RESERVED_FUNCTION_NAME")?{type:"RESERVED_FUNCTION_NAME"}:RESERVED_FUNCTION_NAME,"_","parenthesis"],postprocess:([e,t,E])=>({type:"function_call",nameKw:Ge(he(e),{trailing:t}),parenthesis:E})},{name:"parenthesis",symbols:[{literal:"("},"expressions_or_clauses",{literal:")"}],postprocess:([e,t,E])=>({type:"parenthesis",children:t,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,t,E])=>({type:"parenthesis",children:t,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,t,E])=>({type:"parenthesis",children:t,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","_",z.has("PROPERTY_ACCESS_OPERATOR")?{type:"PROPERTY_ACCESS_OPERATOR"}:PROPERTY_ACCESS_OPERATOR,"_","property_access$subexpression$1"],postprocess:([e,t,E,s,[T]])=>({type:"property_access",object:Ge(e,{trailing:t}),operator:E.text,property:Ge(T,{leading:s})})},{name:"between_predicate",symbols:[z.has("BETWEEN")?{type:"BETWEEN"}:BETWEEN,"_","andless_expression_chain","_",z.has("AND")?{type:"AND"}:AND,"_","andless_expression"],postprocess:([e,t,E,s,T,r,n])=>({type:"between_predicate",betweenKw:he(e),expr1:aD(E,{leading:t,trailing:s}),andKw:he(T),expr2:[Ge(n,{leading:r})]})},{name:"case_expression$ebnf$1",symbols:["expression_chain_"],postprocess:lT},{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:[z.has("CASE")?{type:"CASE"}:CASE,"_","case_expression$ebnf$1","case_expression$ebnf$2",z.has("END")?{type:"END"}:END],postprocess:([e,t,E,s,T])=>({type:"case_expression",caseKw:Ge(he(e),{trailing:t}),endKw:he(T),expr:E||[],clauses:s})},{name:"case_clause",symbols:[z.has("WHEN")?{type:"WHEN"}:WHEN,"_","expression_chain_",z.has("THEN")?{type:"THEN"}:THEN,"_","expression_chain_"],postprocess:([e,t,E,s,T,r])=>({type:"case_when",whenKw:Ge(he(e),{trailing:t}),thenKw:Ge(he(s),{trailing:T}),condition:E,result:r})},{name:"case_clause",symbols:[z.has("ELSE")?{type:"ELSE"}:ELSE,"_","expression_chain_"],postprocess:([e,t,E])=>({type:"case_else",elseKw:Ge(he(e),{trailing:t}),result:E})},{name:"comma$subexpression$1",symbols:[z.has("COMMA")?{type:"COMMA"}:COMMA]},{name:"comma",symbols:["comma$subexpression$1"],postprocess:([[e]])=>({type:"comma"})},{name:"asterisk$subexpression$1",symbols:[z.has("ASTERISK")?{type:"ASTERISK"}:ASTERISK]},{name:"asterisk",symbols:["asterisk$subexpression$1"],postprocess:([[e]])=>({type:"operator",text:e.text})},{name:"operator$subexpression$1",symbols:[z.has("OPERATOR")?{type:"OPERATOR"}:OPERATOR]},{name:"operator",symbols:["operator$subexpression$1"],postprocess:([[e]])=>({type:"operator",text:e.text})},{name:"identifier$subexpression$1",symbols:[z.has("IDENTIFIER")?{type:"IDENTIFIER"}:IDENTIFIER]},{name:"identifier$subexpression$1",symbols:[z.has("QUOTED_IDENTIFIER")?{type:"QUOTED_IDENTIFIER"}:QUOTED_IDENTIFIER]},{name:"identifier$subexpression$1",symbols:[z.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:[z.has("NAMED_PARAMETER")?{type:"NAMED_PARAMETER"}:NAMED_PARAMETER]},{name:"parameter$subexpression$1",symbols:[z.has("QUOTED_PARAMETER")?{type:"QUOTED_PARAMETER"}:QUOTED_PARAMETER]},{name:"parameter$subexpression$1",symbols:[z.has("NUMBERED_PARAMETER")?{type:"NUMBERED_PARAMETER"}:NUMBERED_PARAMETER]},{name:"parameter$subexpression$1",symbols:[z.has("POSITIONAL_PARAMETER")?{type:"POSITIONAL_PARAMETER"}:POSITIONAL_PARAMETER]},{name:"parameter$subexpression$1",symbols:[z.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:[z.has("NUMBER")?{type:"NUMBER"}:NUMBER]},{name:"literal$subexpression$1",symbols:[z.has("STRING")?{type:"STRING"}:STRING]},{name:"literal",symbols:["literal$subexpression$1"],postprocess:([[e]])=>({type:"literal",text:e.text})},{name:"keyword$subexpression$1",symbols:[z.has("RESERVED_KEYWORD")?{type:"RESERVED_KEYWORD"}:RESERVED_KEYWORD]},{name:"keyword$subexpression$1",symbols:[z.has("RESERVED_PHRASE")?{type:"RESERVED_PHRASE"}:RESERVED_PHRASE]},{name:"keyword$subexpression$1",symbols:[z.has("RESERVED_JOIN")?{type:"RESERVED_JOIN"}:RESERVED_JOIN]},{name:"keyword",symbols:["keyword$subexpression$1"],postprocess:([[e]])=>he(e)},{name:"data_type$subexpression$1",symbols:[z.has("RESERVED_DATA_TYPE")?{type:"RESERVED_DATA_TYPE"}:RESERVED_DATA_TYPE]},{name:"data_type",symbols:["data_type$subexpression$1"],postprocess:([[e]])=>rR(e)},{name:"data_type",symbols:[z.has("RESERVED_PARAMETERIZED_DATA_TYPE")?{type:"RESERVED_PARAMETERIZED_DATA_TYPE"}:RESERVED_PARAMETERIZED_DATA_TYPE,"_","parenthesis"],postprocess:([e,t,E])=>({type:"parameterized_data_type",dataType:Ge(rR(e),{trailing:t}),parenthesis:E})},{name:"logic_operator$subexpression$1",symbols:[z.has("AND")?{type:"AND"}:AND]},{name:"logic_operator$subexpression$1",symbols:[z.has("OR")?{type:"OR"}:OR]},{name:"logic_operator$subexpression$1",symbols:[z.has("XOR")?{type:"XOR"}:XOR]},{name:"logic_operator",symbols:["logic_operator$subexpression$1"],postprocess:([[e]])=>he(e)},{name:"other_keyword$subexpression$1",symbols:[z.has("WHEN")?{type:"WHEN"}:WHEN]},{name:"other_keyword$subexpression$1",symbols:[z.has("THEN")?{type:"THEN"}:THEN]},{name:"other_keyword$subexpression$1",symbols:[z.has("ELSE")?{type:"ELSE"}:ELSE]},{name:"other_keyword$subexpression$1",symbols:[z.has("END")?{type:"END"}:END]},{name:"other_keyword",symbols:["other_keyword$subexpression$1"],postprocess:([[e]])=>he(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:[z.has("LINE_COMMENT")?{type:"LINE_COMMENT"}:LINE_COMMENT],postprocess:([e])=>({type:"line_comment",text:e.text,precedingWhitespace:e.precedingWhitespace})},{name:"comment",symbols:[z.has("BLOCK_COMMENT")?{type:"BLOCK_COMMENT"}:BLOCK_COMMENT],postprocess:([e])=>({type:"block_comment",text:e.text,precedingWhitespace:e.precedingWhitespace})},{name:"comment",symbols:[z.has("DISABLE_COMMENT")?{type:"DISABLE_COMMENT"}:DISABLE_COMMENT],postprocess:([e])=>({type:"disable_comment",text:e.text,precedingWhitespace:e.precedingWhitespace})}],ParserStart:"main"},lD=ND,{Parser:_D,Grammar:CD}=uc;function LD(e){let t={};const E=new DA(T=>[...nD(e.tokenize(T,t)),NA(T.length)]),s=new _D(CD.fromCompiled(lD),{lexer:E});return{parse:(T,r)=>{t=r;const{results:n}=s.feed(T);if(n.length===1)return n[0];throw n.length===0?new Error("Parse error: Invalid SQL"):new Error(`Parse error: Ambiguous grammar
|
39
|
-
${JSON.stringify(n,void 0,2)}`)}}}var PA=class{constructor(e){this.indentation=e,this.items=[]}add(...e){for(const t of e)switch(t){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(t)}}trimHorizontalWhitespace(){for(;cD(UE(this.items));)this.items.pop()}trimWhitespace(){for(;
|
40
|
-
`;case 6:return this.indentation.getSingleIndent();default:return e}}},cD=e=>e===0||e===6,uD=e=>e===0||e===6||e===3;function nR(e,t){if(t==="standard")return e;let E=[];return e.length>=10&&e.includes(" ")&&([e,...E]=e.split(" ")),t==="tabularLeft"?e=e.padEnd(9," "):e=e.padStart(9," "),e+["",...E].join(" ")}function RR(e){return Bc(e)||e==="RESERVED_CLAUSE"||e==="RESERVED_SELECT"||e==="RESERVED_SET_OPERATION"||e==="RESERVED_JOIN"||e==="LIMIT"}var _T="top-level",pD="block-level",dA=class{constructor(e){this.indent=e,this.indentTypes=[]}getSingleIndent(){return this.indent}getLevel(){return this.indentTypes.length}increaseTopLevel(){this.indentTypes.push(_T)}increaseBlockLevel(){this.indentTypes.push(pD)}decreaseTopLevel(){this.indentTypes.length>0&&UE(this.indentTypes)===_T&&this.indentTypes.pop()}decreaseBlockLevel(){for(;this.indentTypes.length>0&&this.indentTypes.pop()===_T;);}},fD=class extends PA{constructor(e){super(new dA("")),this.expressionWidth=e,this.length=0,this.trailingSpace=!1}add(...e){if(e.forEach(t=>this.addToLength(t)),this.length>this.expressionWidth)throw new HT;super.add(...e)}addToLength(e){if(typeof e=="string")this.length+=e.length,this.trailingSpace=!1;else{if(e===4||e===3)throw new HT;e===5||e===6||e===0?this.trailingSpace||(this.length++,this.trailingSpace=!0):(e===2||e===1)&&this.trailingSpace&&(this.trailingSpace=!1,this.length--)}}},HT=class extends Error{},DD=class BT{constructor({cfg:t,dialectCfg:E,params:s,layout:T,inline:r=!1}){this.inline=!1,this.nodes=[],this.index=-1,this.cfg=t,this.dialectCfg=E,this.inline=r,this.params=s,this.layout=T}format(t){for(this.nodes=t,this.index=0;this.index<this.nodes.length;this.index++)this.formatNode(this.nodes[this.index]);return this.layout}formatNode(t){this.formatComments(t.leadingComments),this.formatNodeWithoutComments(t),this.formatComments(t.trailingComments)}formatNodeWithoutComments(t){switch(t.type){case"function_call":return this.formatFunctionCall(t);case"parameterized_data_type":return this.formatParameterizedDataType(t);case"array_subscript":return this.formatArraySubscript(t);case"property_access":return this.formatPropertyAccess(t);case"parenthesis":return this.formatParenthesis(t);case"between_predicate":return this.formatBetweenPredicate(t);case"case_expression":return this.formatCaseExpression(t);case"case_when":return this.formatCaseWhen(t);case"case_else":return this.formatCaseElse(t);case"clause":return this.formatClause(t);case"set_operation":return this.formatSetOperation(t);case"limit_clause":return this.formatLimitClause(t);case"all_columns_asterisk":return this.formatAllColumnsAsterisk(t);case"literal":return this.formatLiteral(t);case"identifier":return this.formatIdentifier(t);case"parameter":return this.formatParameter(t);case"operator":return this.formatOperator(t);case"comma":return this.formatComma(t);case"line_comment":return this.formatLineComment(t);case"block_comment":return this.formatBlockComment(t);case"disable_comment":return this.formatBlockComment(t);case"data_type":return this.formatDataType(t);case"keyword":return this.formatKeywordNode(t)}}formatFunctionCall(t){this.withComments(t.nameKw,()=>{this.layout.add(this.showFunctionKw(t.nameKw))}),this.formatNode(t.parenthesis)}formatParameterizedDataType(t){this.withComments(t.dataType,()=>{this.layout.add(this.showDataType(t.dataType))}),this.formatNode(t.parenthesis)}formatArraySubscript(t){let E;switch(t.array.type){case"data_type":E=this.showDataType(t.array);break;case"keyword":E=this.showKw(t.array);break;default:E=this.showIdentifier(t.array);break}this.withComments(t.array,()=>{this.layout.add(E)}),this.formatNode(t.parenthesis)}formatPropertyAccess(t){this.formatNode(t.object),this.layout.add(1,t.operator),this.formatNode(t.property)}formatParenthesis(t){const E=this.formatInlineExpression(t.children);E?(this.layout.add(t.openParen),this.layout.add(...E.getLayoutItems()),this.layout.add(1,t.closeParen,0)):(this.layout.add(t.openParen,3),Zt(this.cfg)?(this.layout.add(5),this.layout=this.formatSubExpression(t.children)):(this.layout.indentation.increaseBlockLevel(),this.layout.add(5),this.layout=this.formatSubExpression(t.children),this.layout.indentation.decreaseBlockLevel()),this.layout.add(3,5,t.closeParen,0))}formatBetweenPredicate(t){this.layout.add(this.showKw(t.betweenKw),0),this.layout=this.formatSubExpression(t.expr1),this.layout.add(1,0,this.showNonTabularKw(t.andKw),0),this.layout=this.formatSubExpression(t.expr2),this.layout.add(0)}formatCaseExpression(t){this.formatNode(t.caseKw),this.layout.indentation.increaseBlockLevel(),this.layout=this.formatSubExpression(t.expr),this.layout=this.formatSubExpression(t.clauses),this.layout.indentation.decreaseBlockLevel(),this.layout.add(3,5),this.formatNode(t.endKw)}formatCaseWhen(t){this.layout.add(3,5),this.formatNode(t.whenKw),this.layout=this.formatSubExpression(t.condition),this.formatNode(t.thenKw),this.layout=this.formatSubExpression(t.result)}formatCaseElse(t){this.layout.add(3,5),this.formatNode(t.elseKw),this.layout=this.formatSubExpression(t.result)}formatClause(t){this.isOnelineClause(t)?this.formatClauseInOnelineStyle(t):Zt(this.cfg)?this.formatClauseInTabularStyle(t):this.formatClauseInIndentedStyle(t)}isOnelineClause(t){return Zt(this.cfg)?this.dialectCfg.tabularOnelineClauses[t.nameKw.text]:this.dialectCfg.onelineClauses[t.nameKw.text]}formatClauseInIndentedStyle(t){this.layout.add(3,5,this.showKw(t.nameKw),3),this.layout.indentation.increaseTopLevel(),this.layout.add(5),this.layout=this.formatSubExpression(t.children),this.layout.indentation.decreaseTopLevel()}formatClauseInOnelineStyle(t){this.layout.add(3,5,this.showKw(t.nameKw),0),this.layout=this.formatSubExpression(t.children)}formatClauseInTabularStyle(t){this.layout.add(3,5,this.showKw(t.nameKw),0),this.layout.indentation.increaseTopLevel(),this.layout=this.formatSubExpression(t.children),this.layout.indentation.decreaseTopLevel()}formatSetOperation(t){this.layout.add(3,5,this.showKw(t.nameKw),3),this.layout.add(5),this.layout=this.formatSubExpression(t.children)}formatLimitClause(t){this.withComments(t.limitKw,()=>{this.layout.add(3,5,this.showKw(t.limitKw))}),this.layout.indentation.increaseTopLevel(),Zt(this.cfg)?this.layout.add(0):this.layout.add(3,5),t.offset?(this.layout=this.formatSubExpression(t.offset),this.layout.add(1,",",0),this.layout=this.formatSubExpression(t.count)):this.layout=this.formatSubExpression(t.count),this.layout.indentation.decreaseTopLevel()}formatAllColumnsAsterisk(t){this.layout.add("*",0)}formatLiteral(t){this.layout.add(t.text,0)}formatIdentifier(t){this.layout.add(this.showIdentifier(t),0)}formatParameter(t){this.layout.add(this.params.get(t),0)}formatOperator({text:t}){this.cfg.denseOperators||this.dialectCfg.alwaysDenseOperators.includes(t)?this.layout.add(1,t):t===":"?this.layout.add(1,t,0):this.layout.add(t,0)}formatComma(t){this.inline?this.layout.add(1,",",0):this.layout.add(1,",",3,5)}withComments(t,E){this.formatComments(t.leadingComments),E(),this.formatComments(t.trailingComments)}formatComments(t){t&&t.forEach(E=>{E.type==="line_comment"?this.formatLineComment(E):this.formatBlockComment(E)})}formatLineComment(t){aT(t.precedingWhitespace||"")?this.layout.add(3,5,t.text,4,5):this.layout.getLayoutItems().length>0?this.layout.add(2,0,t.text,4,5):this.layout.add(t.text,4,5)}formatBlockComment(t){t.type==="block_comment"&&this.isMultilineBlockComment(t)?(this.splitBlockComment(t.text).forEach(E=>{this.layout.add(3,5,E)}),this.layout.add(3,5)):this.layout.add(t.text,0)}isMultilineBlockComment(t){return aT(t.text)||aT(t.precedingWhitespace||"")}isDocComment(t){const E=t.split(/\n/);return/^\/\*\*?$/.test(E[0])&&E.slice(1,E.length-1).every(s=>/^\s*\*/.test(s))&&/^\s*\*\/$/.test(UE(E))}splitBlockComment(t){return this.isDocComment(t)?t.split(/\n/).map(E=>/^\s*\*/.test(E)?" "+E.replace(/^\s*/,""):E):t.split(/\n/).map(E=>E.replace(/^\s*/,""))}formatSubExpression(t){return new BT({cfg:this.cfg,dialectCfg:this.dialectCfg,params:this.params,layout:this.layout,inline:this.inline}).format(t)}formatInlineExpression(t){const E=this.params.getPositionalParameterIndex();try{return new BT({cfg:this.cfg,dialectCfg:this.dialectCfg,params:this.params,layout:new fD(this.cfg.expressionWidth),inline:!0}).format(t)}catch(s){if(s instanceof HT){this.params.setPositionalParameterIndex(E);return}else throw s}}formatKeywordNode(t){switch(t.tokenType){case"RESERVED_JOIN":return this.formatJoin(t);case"AND":case"OR":case"XOR":return this.formatLogicalOperator(t);default:return this.formatKeyword(t)}}formatJoin(t){Zt(this.cfg)?(this.layout.indentation.decreaseTopLevel(),this.layout.add(3,5,this.showKw(t),0),this.layout.indentation.increaseTopLevel()):this.layout.add(3,5,this.showKw(t),0)}formatKeyword(t){this.layout.add(this.showKw(t),0)}formatLogicalOperator(t){this.cfg.logicalOperatorNewline==="before"?Zt(this.cfg)?(this.layout.indentation.decreaseTopLevel(),this.layout.add(3,5,this.showKw(t),0),this.layout.indentation.increaseTopLevel()):this.layout.add(3,5,this.showKw(t),0):this.layout.add(this.showKw(t),3,5)}formatDataType(t){this.layout.add(this.showDataType(t),0)}showKw(t){return RR(t.tokenType)?nR(this.showNonTabularKw(t),this.cfg.indentStyle):this.showNonTabularKw(t)}showNonTabularKw(t){switch(this.cfg.keywordCase){case"preserve":return zE(t.raw);case"upper":return t.text;case"lower":return t.text.toLowerCase()}}showFunctionKw(t){return RR(t.tokenType)?nR(this.showNonTabularFunctionKw(t),this.cfg.indentStyle):this.showNonTabularFunctionKw(t)}showNonTabularFunctionKw(t){switch(this.cfg.functionCase){case"preserve":return zE(t.raw);case"upper":return t.text;case"lower":return t.text.toLowerCase()}}showIdentifier(t){if(t.quoted)return t.text;switch(this.cfg.identifierCase){case"preserve":return t.text;case"upper":return t.text.toUpperCase();case"lower":return t.text.toLowerCase()}}showDataType(t){switch(this.cfg.dataTypeCase){case"preserve":return zE(t.raw);case"upper":return t.text;case"lower":return t.text.toLowerCase()}}},PD=class{constructor(e,t){this.dialect=e,this.cfg=t,this.params=new rD(this.cfg.params)}format(e){const t=this.parse(e);return this.formatAst(t).trimEnd()}parse(e){return LD(this.dialect.tokenizer).parse(e,this.cfg.paramTypes||{})}formatAst(e){return e.map(t=>this.formatStatement(t)).join(`
|
41
|
-
`.repeat(this.cfg.linesBetweenQueries+1))}formatStatement(e){const t=new DD({cfg:this.cfg,dialectCfg:this.dialect.formatOptions,params:this.params,layout:new PA(new dA(TD(this.cfg)))}).format(e.children);return e.hasSemicolon&&(this.cfg.newlineBeforeSemicolon?t.add(3,";"):t.add(2,";")),t.toString()}},es=class extends Error{};function dD(e){const t=["multilineLists","newlineBeforeOpenParen","newlineBeforeCloseParen","aliasAs","commaPosition","tabulateAlias"];for(const E of t)if(E in e)throw new es(`${E} config is no more supported.`);if(e.expressionWidth<=0)throw new es(`expressionWidth config must be positive number. Received ${e.expressionWidth} instead.`);if(e.params&&!MD(e.params)&&console.warn('WARNING: All "params" option values should be strings.'),e.paramTypes&&!UD(e.paramTypes))throw new es("Empty regex given in custom paramTypes. That would result in matching infinite amount of parameters.");return e}function MD(e){return(e instanceof Array?e:Object.values(e)).every(E=>typeof E=="string")}function UD(e){return e.custom&&Array.isArray(e.custom)?e.custom.every(t=>t.regex!==""):!0}var MA={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",tidb:"tidb",trino:"trino",transactsql:"transactsql",tsql:"transactsql",singlestoredb:"singlestoredb",snowflake:"snowflake"},hD=Object.keys(MA),GD={tabWidth:2,useTabs:!1,keywordCase:"preserve",identifierCase:"preserve",dataTypeCase:"preserve",functionCase:"preserve",indentStyle:"standard",logicalOperatorNewline:"before",expressionWidth:50,linesBetweenQueries:1,denseOperators:!1,newlineBeforeSemicolon:!1},gD=(e,t={})=>{if(typeof t.language=="string"&&!hD.includes(t.language))throw new es(`Unsupported SQL dialect: ${t.language}`);const E=MA[t.language||"sql"];return mD(e,Ye(me({},t),{dialect:IA[E]}))},mD=(e,t)=>{var E=t,{dialect:s}=E,T=Dc(E,["dialect"]);if(typeof e!="string")throw new Error("Invalid query argument. Expected string, instead got "+typeof e);const r=dD(me(me({},GD),T));return new PD(tD(s),r).format(e)};const HD={class:"flex items-center"},BD=["textContent"],ts=Ne({__name:"Timing",props:{durationMs:{},slowThreshold:{default:1e3},tooSlowThreshold:{default:1500}},setup(e){const t=e,E=tt(()=>t.durationMs>=1e3?(t.durationMs/1e3).toFixed(2)+"s":t.durationMs.toFixed(1)+"ms");return(s,T)=>(P(),y("div",HD,[st(s.$slots,"default"),S("span",{class:ge({"px-1 py-0.5 rounded text-sm":!0,"text-orange-600":s.durationMs>=t.slowThreshold&&s.durationMs<t.tooSlowThreshold,"text-red-600 bg-red-100":s.durationMs>=t.tooSlowThreshold}),textContent:ne(E.value)},null,10,BD)]))}});function bD(e){const t=typeof e=="string"?e:JSON.stringify(e),E="text/plain",s=new Blob([t],{type:E}),T=[new ClipboardItem({[E]:s})];navigator.clipboard.write(T)}function bT(e){const t=e.origin.length+e.pathname.length;return e.href.slice(t)}function yD(e){const t={};for(const[E,s]of e.searchParams)t[E]=s;return t}const vD={class:"flex items-center space-x-4"},FD={class:"font-semibold text-lg"},YD={key:0},VD=["textContent"],xD={key:0,class:"mt-4 ml-4"},wD={key:0,class:"mt-3 text-stone-400 text-sm"},WD=["textContent"],XD=["textContent"],UA=Ne({__name:"PanelListItem",props:{title:{},source:{},isFormatted:{type:Boolean},copyableText:{}},emits:["toggleFormatting"],setup(e){const t=e,E=rt({isOpen:!0,showOriginFile:!1});return(s,T)=>(P(),y("div",null,[S("div",vD,[S("button",{class:"flex items-center space-x-1",onClick:T[0]||(T[0]=r=>E.isOpen=!E.isOpen)},[F(Re(or),{class:ge(["size-4",{"-rotate-90":!E.isOpen}])},null,8,["class"]),S("span",FD,ne(t.title),1)]),st(s.$slots,"title-details"),E.isOpen?(P(),y("div",YD,[t.isFormatted!==void 0?(P(),y("span",{key:0,onClick:T[1]||(T[1]=r=>s.$emit("toggleFormatting")),class:"px-3 text-xs uppercase text-stone-400 cursor-pointer",title:"Format SQL query",textContent:ne(t.isFormatted?"unformat":"format")},null,8,VD)):Ee("",!0),t.copyableText?(P(),y("span",{key:1,onClick:T[2]||(T[2]=r=>Re(bD)(t.copyableText)),class:"px-3 text-xs uppercase text-stone-400 cursor-pointer",title:"Copy SQL query to clipboard"},"copy")):Ee("",!0),t.source?(P(),y("span",{key:2,onClick:T[3]||(T[3]=r=>E.showOriginFile=!E.showOriginFile),class:"px-3 text-xs uppercase text-stone-400 cursor-pointer",title:"Show origin file of the query"},"file")):Ee("",!0),st(s.$slots,"actions")])):Ee("",!0)]),E.isOpen?(P(),y("div",xD,[S("div",null,[st(s.$slots,"content")]),E.showOriginFile?(P(),y("div",wD,[S("div",{textContent:ne(t.source[0])},null,8,WD),t.source.length>1?(P(!0),y(le,{key:0},Je(t.source.slice(1),r=>(P(),y("div",{class:"pl-4",textContent:ne("↳ "+r)},null,8,XD))),256)):Ee("",!0)])):Ee("",!0)])):Ee("",!0)]))}}),KD={key:0,class:"px-1 py-0.5 rounded text-xs bg-sky-600 text-white"},$D={key:1,class:"px-1 py-0.5 rounded text-xs bg-emerald-600 text-white"},JD=Ne({__name:"QueryItem",props:{query:{}},setup(e){const t=e,E=rt({isFormatted:!1});let s=Ir();const T=n=>gD(n,{language:s.config.sqlDialect}),r=n=>E.isFormatted?T(n):n;return(n,R)=>{const o=sr("highlightjs");return P(),Ae(UA,{onToggleFormatting:R[0]||(R[0]=i=>E.isFormatted=!E.isFormatted),title:n.query.name,source:n.query.source,"is-formatted":E.isFormatted,"copyable-text":r(n.query.sql)},{"title-details":Te(()=>[t.query.cached?(P(),y("span",KD,"cached")):Ee("",!0),t.query.async?(P(),y("span",$D,"async")):Ee("",!0),F(ts,{"duration-ms":t.query.duration,slowThreshold:30,"too-slow-threshold":100,title:"Query runtime"},{default:Te(()=>[F(Re(vo),{class:"text-stone-600 size-3"})]),_:1},8,["duration-ms"])]),actions:Te(()=>R[1]||(R[1]=[])),content:Te(()=>[F(o,{language:"sql",code:r(n.query.sql)},null,8,["code"])]),_:1},8,["title","source","is-formatted","copyable-text"])}}}),_r=Ne({__name:"JsonCode",props:{json:{}},setup(e){return(t,E)=>{const s=sr("highlightjs");return P(),Ae(s,{class:"text-sm",language:"json",code:JSON.stringify(t.json,null,2)},null,8,["code"])}}}),kD={class:"p-4 leading-8"},qD=Ne({__name:"JsonPanel",props:{request:{}},setup(e){return(t,E)=>(P(),y("div",kD,[F(_r,{json:t.request},null,8,["json"])]))}}),jD={},QD={class:"px-3 py-2"};function ZD(e,t){return P(),y("div",QD,[st(e.$slots,"default")])}const Gt=ar(jD,[["render",ZD]]),zD={key:0},eP={class:"space-y-3"},tP={class:"flex items-center space-x-8"},EP={class:"w-24 text-sm text-right text-gray-400"},sP={class:"w-16 text-right"},TP={class:"text-gray-800"},rP={class:"font-medium",title:"cache key"},nP={class:"text-xs text-gray-400",title:"transaction_id"},RP=Ne({__name:"CachePanel",props:{cache:{}},setup(e){const t=e;return(E,s)=>(P(),Ae(Gt,null,{default:Te(()=>[t.cache.length==0?(P(),y("div",zD,s[0]||(s[0]=[S("div",{class:"text-gray-500"},"No cache used.",-1)]))):Ee("",!0),S("div",eP,[(P(!0),y(le,null,Je(t.cache,T=>(P(),y("div",tP,[S("div",EP,ne(T.time),1),S("div",sP,[S("span",{class:ge(["px-1 py-0.5 rounded text-white text-xs font-mono font-medium bg-stone-400",{"!bg-emerald-500":T.label=="hit","!bg-indigo-500":T.label=="write","!bg-amber-400":T.label=="read","!bg-red-400":T.label=="delete"}])},ne(T.label),3)]),S("div",TP,[S("div",rP,ne(T.key),1),S("div",nP,ne(T.transaction_id),1)])]))),256))])]),_:1}))}}),oP={key:0},AP={class:"flex items-center space-y-1 space-x-3"},iP={class:"w-32 text-right text-gray-400"},SP={class:"w-20 text-center"},OP=["title"],IP=["innerHTML"],aP=Ne({__name:"LogsPanel",props:{logs:{}},setup(e){const t=e;function E(s){return(s.progname||s.message||"").replace(" "," ")}return(s,T)=>(P(),Ae(Gt,null,{default:Te(()=>[t.logs.length==0?(P(),y("div",oP,T[0]||(T[0]=[S("div",{class:"text-gray-500"},"No logs to show. Are you using the correct minimum level in your config?",-1)]))):Ee("",!0),(P(!0),y(le,null,Je(t.logs,r=>(P(),y("div",AP,[S("div",iP,ne(r.time),1),S("div",SP,[S("span",{class:ge(["px-1 py-0.5 rounded text-white text-xs font-mono font-medium",{"bg-stone-400":r.severity==0,"bg-blue-500":r.severity==1,"bg-amber-400":r.severity==2,"bg-red-400":r.severity==2,"bg-fuchsia-500":r.severity>=3}]),title:r.severity_label},ne(r.severity_label),11,OP)]),S("div",{class:"text-gray-800",innerHTML:E(r)},null,8,IP)]))),256))]),_:1}))}}),NP={class:"flex flex-col space-y-8"},oR=Ne({__name:"PanelList",setup(e){return(t,E)=>(P(),Ae(Gt,null,{default:Te(()=>[S("div",NP,[st(t.$slots,"default")])]),_:3}))}}),lP={key:0},_P={key:1,class:"my-4 mx-6 divide-y divide-stone-300"},CP={class:"divide-y divide-stone-200"},LP={class:"whitespace-nowrap p-4 pr-8 text-stone-900"},cP=["textContent"],uP={class:"text-stone-600 text-sm"},pP=["textContent"],fP=["textContent"],DP={class:"whitespace-nowrap px-3 p-4 pr-8 text-sm"},PP={class:"whitespace-nowrap px-3 p-4 pr-8 text-sm text-stone-500"},dP=["innerHTML"],MP=Ne({__name:"JobsPanel",props:{jobs:{}},setup(e){const t=e;function E(s){return s==null?"-":new Date(s*1e3).toLocaleString()}return(s,T)=>(P(),Ae(Gt,null,{default:Te(()=>[t.jobs.length==0?(P(),y("div",lP,T[0]||(T[0]=[S("div",{class:"text-gray-500"},"No jobs enqueued.",-1)]))):Ee("",!0),t.jobs.length>0?(P(),y("table",_P,[T[1]||(T[1]=S("thead",null,[S("tr",null,[S("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"),S("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-stone-900"},"Args"),S("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-stone-900"},"Logs")])],-1)),S("tbody",CP,[(P(!0),y(le,null,Je(t.jobs,(r,n)=>(P(),y("tr",{key:r.id},[S("td",LP,[S("div",{class:"text-lg font-bold",textContent:ne(r.class)},null,8,cP),S("div",uP,[S("div",{textContent:ne("Queue: "+r.queue)},null,8,pP),S("div",{textContent:ne("At: "+E(r.scheduled_at))},null,8,fP)])]),S("td",DP,[F(_r,{json:r.args},null,8,["json"])]),S("td",PP,[(P(!0),y(le,null,Je(r.logs,(R,o)=>(P(),y("div",{innerHTML:(o>0?" ".repeat(o)+"↳ ":"")+R,class:""},null,8,dP))),256))])]))),128))])])):Ee("",!0)]),_:1}))}}),UP={class:"break-all w-full border-separate border-spacing-1"},hP={key:0},GP=["textContent"],gP=["textContent"],FE=Ne({__name:"KeyValueTable",props:{keyLabel:{},valueLabel:{}},setup(e){const t=e;return(E,s)=>(P(),y("table",UP,[t.keyLabel||t.valueLabel?(P(),y("tr",hP,[S("th",{textContent:ne(t.keyLabel),class:"bg-amber-50 w-40 px-3 py-1"},null,8,GP),S("th",{textContent:ne(t.valueLabel),class:"bg-amber-50 px-3 py-1"},null,8,gP)])):Ee("",!0),st(E.$slots,"default")]))}}),mP=["textContent"],HP={class:"px-3 py-1"},et=Ne({__name:"Row",props:{label:{}},setup(e){const t=e;return(E,s)=>(P(),y("tr",null,[S("td",{textContent:ne(t.label),class:"w-40 font-medium bg-stone-50 px-3 py-1"},null,8,mP),S("td",HP,[st(E.$slots,"default")])]))}}),BP={},bP={class:"mt-0.5 mb-2 px-2 py-1 bg-stone-300 text-black tracking-wide text-xs uppercase font-bold rounded"};function yP(e,t){return P(),y("h2",bP,[st(e.$slots,"default")])}const Cr=ar(BP,[["render",yP]]),vP={class:"font-medium"},FP={key:0},hA=Ne({__name:"Foldable",props:{label:{},isOpen:{type:Boolean,default:!1}},setup(e){const t=e,E=rt({isOpen:t.isOpen});return(s,T)=>(P(),y("div",null,[S("div",null,[S("button",{class:"flex items-center space-x-1",onClick:T[0]||(T[0]=r=>E.isOpen=!E.isOpen)},[F(Re(or),{class:ge(["size-4",{"-rotate-90":!E.isOpen}])},null,8,["class"]),S("span",vP,ne(t.label),1)])]),E.isOpen?(P(),y("div",FP,[st(s.$slots,"default")])):Ee("",!0)]))}}),GA=Ne({__name:"HttpResponsePanel",props:{response:{}},setup(e){return(t,E)=>(P(),Ae(Gt,null,{default:Te(()=>[F(Cr,null,{default:Te(()=>E[0]||(E[0]=[ye("HTTP Response")])),_:1}),F(FE,null,{default:Te(()=>[F(et,{label:"Status"},{default:Te(()=>[F(Nr,{code:t.response.status},null,8,["code"])]),_:1}),F(et,{label:"Body"},{default:Te(()=>[ye(ne(t.response.body.substring(0,140)),1)]),_:1}),F(et,{label:"Header: Content-Type"},{default:Te(()=>[ye(ne(t.response.headers["Content-Type"]),1)]),_:1})]),_:1}),F(hA,{class:"py-4",label:"All Headers"},{default:Te(()=>[F(FE,null,{default:Te(()=>[(P(!0),y(le,null,Je(t.response.headers,(s,T)=>(P(),Ae(et,{key:T,label:T},{default:Te(()=>[ye(ne(s),1)]),_:2},1032,["label"]))),128))]),_:1})]),_:1})]),_:1}))}}),YP=["textContent"],ls=Ne({__name:"HttpVerb",props:{verb:{}},setup(e){const t=e;return(E,s)=>(P(),y("span",{class:ge(["px-1 py-0.5 rounded text-xs text-white bg-slate-700",{"!bg-sky-700":t.verb.toLowerCase()=="get","!bg-indigo-700":t.verb.toLowerCase()=="post","!bg-purple-700":t.verb.toLowerCase()=="put","!bg-violet-500":t.verb.toLowerCase()=="patch","!bg-red-700":t.verb.toLowerCase()=="delete"}]),textContent:ne(t.verb.toUpperCase())},null,10,YP))}}),gA=Ne({__name:"HttpRequestPanel",props:{request:{}},setup(e){return(t,E)=>(P(),Ae(Gt,null,{default:Te(()=>[F(Cr,null,{default:Te(()=>E[0]||(E[0]=[ye("HTTP Request")])),_:1}),F(FE,null,{default:Te(()=>[F(et,{label:"Method"},{default:Te(()=>[F(ls,{verb:t.request.method},null,8,["verb"])]),_:1}),F(et,{label:"URL",class:"font-mono"},{default:Te(()=>[ye(ne(t.request.url.href),1)]),_:1}),F(et,{label:"Params"},{default:Te(()=>[F(_r,{json:Re(yD)(t.request.url)},null,8,["json"])]),_:1}),F(et,{label:"Header: Version"},{default:Te(()=>[ye(ne(t.request.headers.Version),1)]),_:1}),F(et,{label:"Header: Cache-Control"},{default:Te(()=>[ye(ne(t.request.headers["Cache-Control"]),1)]),_:1})]),_:1}),F(hA,{class:"py-4",label:"All Headers"},{default:Te(()=>[F(FE,null,{default:Te(()=>[(P(!0),y(le,null,Je(t.request.headers,(s,T)=>(P(),Ae(et,{key:T,label:T},{default:Te(()=>[ye(ne(s),1)]),_:2},1032,["label"]))),128))]),_:1})]),_:1})]),_:1}))}}),VP={class:"flex"},xP={class:"w-1/2"},wP={class:"w-1/2"},WP={key:1},XP=Ne({__name:"RequestPanel",props:{request:{}},setup(e){return(t,E)=>{var s,T;return P(),y(le,null,[S("div",VP,[S("div",xP,[F(gA,{request:t.request.request},null,8,["request"])]),S("div",wP,[F(Gt,null,{default:Te(()=>[F(Cr,null,{default:Te(()=>E[0]||(E[0]=[ye("Routing")])),_:1}),F(FE,null,{default:Te(()=>[F(et,{title:"Controller"},{default:Te(()=>[ye(ne(t.request.meta.controller)+" > "+ne(t.request.meta.action),1)]),_:1})]),_:1})]),_:1}),(s=t.request.response)!=null&&s.status?(P(),Ae(GA,{key:0,response:t.request.response},null,8,["response"])):Ee("",!0),(T=t.request.response)!=null&&T.status?Ee("",!0):(P(),y("div",WP,E[1]||(E[1]=[S("div",{class:"py-3 text-sm text-stone-500"},[ye(" The response was not captured. "),S("a",{target:"_blank",class:"underline font-bold",href:"https://debugbar.dev/docs/known-limitations/"},"Learn more")],-1)])))])]),E[2]||(E[2]=S("div",{class:"w-full"},[S("div",{class:"py-3 text-center italic text-sm text-stone-500"},[ye(" What else would like to see here? "),S("a",{target:"_blank",class:"underline font-bold",href:"https://github.com/julienbourdeau/debugbar/discussions"},"Tell me!")])],-1))],64)}}}),KP=Ne({__name:"MessageItem",props:{msg:{}},setup(e){const t=rt({isFormatted:!1});function E(s){return t.isFormatted?JSON.stringify(s,null,2):JSON.stringify(s)}return(s,T)=>{const r=sr("highlightjs");return P(),Ae(UA,{onToggleFormatting:T[0]||(T[0]=n=>t.isFormatted=!t.isFormatted),title:s.msg.msg,"copyable-text":E(s.msg.extra),"is-formatted":t.isFormatted,source:s.msg.source},{content:Te(()=>[F(r,{language:"json",code:E(s.msg.extra)},null,8,["code"])]),_:1},8,["title","copyable-text","is-formatted","source"])}}}),$P={key:0},JP={key:1,class:"divide-y divide-stone-300"},kP={class:"divide-y divide-stone-200"},qP={class:"whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-stone-900 sm:pl-0"},jP={class:"whitespace-nowrap px-3 py-4 text-sm text-stone-500 text-center"},QP=Ne({__name:"ModelsPanel",props:{models:{},count:{}},setup(e){const t=e;return(E,s)=>(P(),Ae(Gt,null,{default:Te(()=>[t.count==0?(P(),y("div",$P,s[0]||(s[0]=[S("div",{class:"text-gray-500"},"No models were initialized.",-1)]))):Ee("",!0),t.count>0?(P(),y("table",JP,[s[1]||(s[1]=S("thead",null,[S("tr",null,[S("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 "),S("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-stone-900"},"Count")])],-1)),S("tbody",kP,[(P(!0),y(le,null,Je(t.models,(T,r)=>(P(),y("tr",{key:r},[S("td",qP,ne(r),1),S("td",jP,ne(T),1)]))),128))])])):Ee("",!0)]),_:1}))}}),ZP=["onClick"],zP={class:""},ed={class:"text-black font-bold"},td={class:"text-stone-600"},Ed={key:0,class:"flex"},sd=Ne({__name:"HttpPanel",props:{requests:{}},setup(e){const t=rt({open:{}});return(E,s)=>(P(!0),y(le,null,Je(E.requests,T=>{var r;return P(),y("div",{key:T.id},[S("h1",{class:"flex items-center my-4 mx-2 space-x-2 px-2 py-2.5 bg-stone-100 border border-stone-300 tracking-wide text-sm rounded cursor-pointer",onClick:n=>t.open[T.id]=!t.open[T.id]},[F(Re(or),{class:ge(["size-4",{"-rotate-90":t.open[T.id]}])},null,8,["class"]),F(Nr,{code:(r=T.response)==null?void 0:r.status},null,8,["code"]),F(ls,{verb:T.request.method},null,8,["verb"]),S("span",zP,[S("span",ed,ne(T.request.url.pathname),1),S("span",td,ne(Re(bT)(T.request.url)),1)])],8,ZP),t.open[T.id]?(P(),y("div",Ed,[F(gA,{request:T.request,class:"w-1/2"},null,8,["request"]),F(GA,{response:T.response,class:"w-1/2"},null,8,["response"])])):Ee("",!0)])}),128))}}),Td={ref:"body",id:"debugbar-body",class:"bg-white overflow-scroll"},rd=Ne({__name:"DebugbarBody",props:{activeTab:{default:""},request:{}},setup(e){return(t,E)=>{var s,T,r,n,R;return P(),y("div",Td,[t.activeTab=="messages"?(P(),Ae(oR,{key:0},{default:Te(()=>{var o;return[(P(!0),y(le,null,Je((o=t.request)==null?void 0:o.messages,i=>(P(),Ae(KP,{msg:i,key:i.id},null,8,["msg"]))),128))]}),_:1})):Ee("",!0),t.activeTab=="models"?(P(),Ae(QP,{key:1,models:(s=t.request)==null?void 0:s.models,count:(T=t.request)==null?void 0:T.modelsCount},null,8,["models","count"])):Ee("",!0),t.activeTab=="queries"?(P(),Ae(oR,{key:2},{default:Te(()=>[(P(!0),y(le,null,Je(t.request.queries,o=>(P(),Ae(JD,{key:o.id,query:o},null,8,["query"]))),128))]),_:1})):Ee("",!0),t.activeTab=="jobs"?(P(),Ae(MP,{key:3,jobs:(r=t.request)==null?void 0:r.jobs},null,8,["jobs"])):Ee("",!0),t.activeTab=="cache"?(P(),Ae(RP,{key:4,cache:(n=t.request)==null?void 0:n.cache},null,8,["cache"])):Ee("",!0),t.activeTab=="logs"?(P(),Ae(aP,{key:5,logs:(R=t.request)==null?void 0:R.logs},null,8,["logs"])):Ee("",!0),t.activeTab=="http"?(P(),Ae(sd,{key:6,requests:t.request.httpCalls},null,8,["requests"])):Ee("",!0),t.activeTab=="request"?(P(),Ae(XP,{key:7,request:t.request},null,8,["request"])):Ee("",!0),t.activeTab=="debug"?(P(),Ae(qD,{key:8,request:t.request,class:"px-3 py-2"},null,8,["request"])):Ee("",!0)],512)}}}),nd={class:"flex space-x-2"},Rd=Ne({__name:"RequestTimings",props:{request:{}},setup(e){return(t,E)=>(P(),y("div",nd,[F(ts,{"duration-ms":t.request.meta.db_runtime,title:"DB runtime"},{default:Te(()=>[F(Re(vo),{class:"text-stone-600 size-3"})]),_:1},8,["duration-ms"]),F(ts,{"duration-ms":t.request.meta.cpu_time,title:"CPU time"},{default:Te(()=>[F(Re(lI),{class:"text-stone-600 size-3"})]),_:1},8,["duration-ms"]),F(ts,{"duration-ms":t.request.meta.duration,"too-slow-threshold":1e3,"slow-threshold":750,class:"font-bold",title:"Total duration"},{default:Te(()=>[F(Re(II),{class:"text-stone-800 size-4"})]),_:1},8,["duration-ms"])]))}}),od={class:""},Ad={class:"truncate grow text-left"},id={class:"text-stone-900"},Sd={class:"text-stone-500"},Od={class:"py-1"},Id=["onClick"],ad={class:""},Nd={class:"text-stone-900"},ld={class:"text-stone-500"},_d=Ne({__name:"RequestsDropdown",props:{requests:{},currentRequestId:{}},emits:["select"],setup(e,{emit:t}){const E=e,s=t,T=Qe(!1),r=Qe(null),n=Qe(null),R=Qe(!1),o=tt(()=>E.requests.find(N=>N.id===E.currentRequestId)),i=N=>{s("select",N),T.value=!1},A=()=>{if(!T.value||!r.value||!n.value)return;const N=r.value.getBoundingClientRect(),l=n.value.offsetHeight,H=window.innerHeight-N.bottom,Q=N.top;R.value=H<l&&Q>H},O=()=>{T.value=!T.value,T.value&&zT(A)};return Ms(()=>{window.addEventListener("scroll",A,!0),window.addEventListener("resize",A)}),Er(()=>{window.removeEventListener("scroll",A,!0),window.removeEventListener("resize",A)}),(N,l)=>(P(),y("div",od,[S("button",{ref_key:"dropdownButton",ref:r,onClick:O,class:"w-[360px] px-2 py-1.5 bg-white border border-stone-200 rounded text-sm flex items-center justify-start space-x-1.5 hover:bg-stone-50"},[F(ls,{verb:o.value.request.method},null,8,["verb"]),S("span",Ad,[S("span",id,ne(o.value.request.url.pathname),1),S("span",Sd,ne(Re(bT)(o.value.request.url)),1)]),F(Re(aI),{class:ge(["size-4",{"rotate-180":T.value}])},null,8,["class"])],512),T.value?(P(),y("div",{key:0,ref_key:"dropdownList",ref:n,class:ge(["absolute z-50 w-full bg-white border border-stone-200 rounded-md shadow-lg max-h-60 overflow-auto",{"bottom-[calc(100%+0.25rem)]":R.value,"mt-1":!R.value}])},[S("div",Od,[(P(!0),y(le,null,Je(N.requests,C=>(P(),y("button",{key:C.id,onClick:H=>i(C.id),class:ge(["w-full px-2 py-1.5 flex items-center justify-start space-x-2 text-sm hover:bg-stone-200",{"bg-stone-100":C.id===N.currentRequestId}])},[F(ls,{verb:C.request.method},null,8,["verb"]),S("span",ad,[S("span",Nd,ne(C.request.url.pathname),1),S("span",ld,ne(Re(bT)(C.request.url)),1)])],10,Id))),128))])],2)):Ee("",!0)]))}}),Cd={class:"z-[9999] text-stone-900 fixed left-0 bottom-0 bg-transparent cursor-pointer"},Ld={class:"p-1 pt-1.5"},cd=Ne({__name:"MinimizedDebugbar",setup(e){return(t,E)=>(P(),y("div",Cd,[S("div",Ld,[F(oA)])]))}}),ud={key:1,class:"z-[9999] text-stone-900 fixed left-0 bottom-0 w-full"},pd={class:"flex items-center justify-between bg-stone-100 border-b border-stone-200"},fd={class:"px-3 space-x-2"},Dd=["title"],Pd={key:2,class:"z-[9999] text-stone-900 fixed left-0 bottom-0 w-full"},dd={class:"flex grow"},Md={class:"flex flex-wrap-reverse justify-end items-center space-x-3 pr-1"},Ud={class:"flex space-x-2"},hd={class:"text-sm text-stone-600 font-medium tracking-wide"},Gd={class:"flex items-center"},gd={class:"flex items-center pl-1 space-x-2"},md=["title"],Hd=Ne({__name:"Debugbar",setup(e){let t=Ic(),E=Ir();const s=Qe(null),T=rt({activeTab:"",minimized:E.config.minimized,isResizing:!1,isPolling:E.config.mode==="poll",height:E.config.height}),r=tt(()=>T.activeTab!=""),n=tt(()=>!1);let R=null;const o=()=>{console.log('Using debugbar in "polling mode". Consider using "ws" mode for better performance (requires ActionCable).'),setInterval(()=>{T.isPolling&&fetch(E.config.pollUrl).then(N=>N.json()).then(N=>{if(N.length==0)return;console.log(N);const l=t.addRequests(N);r.value||t.setCurrentRequestById(l[l.length-1]),fetch(E.config.pollUrl+"/confirm",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:l})})})},E.config.poll.interval)};E.config.mode==="ws"?R=OI.createConsumer(E.config.actionCableUrl).subscriptions.create({channel:E.config.cable.channelName},{connected(){console.log("🟢 Connected to channel"),R.send({ids:[]})},disconnected(){console.log("🔴 Disconnected from channel")},received(N){if(N.length==0)return;const l=t.addRequests(N);r.value||t.setCurrentRequestById(l[l.length-1]),setTimeout(()=>{R.send({ids:l})},50)}}):E.config.mode==="poll"?o():console.log('Using debugbar in "offline mode", ideal for demos using fixtures.');const i=()=>{console.log("Clearing requests"),T.activeTab="",t.clearRequests(),R==null||R.send({clear:!0}),T.isPolling=!0},A=()=>{T.isPolling=!T.isPolling};Ms(()=>{window.onresize=function(){window.innerHeight<T.height&&(T.height=window.innerHeight-s.value.clientHeight)},document.onmousemove=function(N){T.isResizing&&(T.height=window.innerHeight-N.clientY-s.value.clientHeight)},document.onmouseup=function(N){T.isResizing=!1}});const O=N=>{window.innerHeight<T.height&&(T.height=window.innerHeight-s.value.clientHeight*2),T.activeTab=N};return(N,l)=>(P(),y(le,null,[T.minimized?(P(),Ae(cd,{key:0,onClick:l[0]||(l[0]=C=>T.minimized=!1)})):Ee("",!0),!T.minimized&&Re(t).currentRequest==null?(P(),y("div",ud,[l[10]||(l[10]=S("div",{class:"h-0.5 bg-red-700 cursor-row-resize"},null,-1)),S("div",pd,[l[9]||(l[9]=S("div",{class:"px-5 py-1.5 italic"},"No request yet",-1)),S("div",fd,[Re(E).config.mode=="poll"?(P(),y("button",{key:0,onClick:A,title:T.isPolling?"Pause polling":"Resume polling"},[T.isPolling?(P(),Ae(Re(Sn),{key:0,class:"size-4"})):Ee("",!0),T.isPolling?Ee("",!0):(P(),Ae(Re(On),{key:1,class:"size-4"}))],8,Dd)):Ee("",!0),S("button",{onClick:l[1]||(l[1]=C=>T.minimized=!0),title:"Hide in the corner"},[F(Re(An),{class:"size-4"})])])])])):Ee("",!0),!T.minimized&&Re(t).currentRequest?(P(),y("div",Pd,[S("div",{id:"draggable-bar",onMousedown:l[2]||(l[2]=C=>T.isResizing=!0),class:"h-0.5 bg-red-700 cursor-row-resize"},null,32),S("div",{id:"debugbar-header",ref_key:"header",ref:s,class:"flex flex-wrap-reverse justify-end px-1 items-center bg-stone-100 border-b-2 border-stone-300"},[S("div",dd,[S("div",{onClick:l[3]||(l[3]=C=>T.minimized=!0),class:"p-1 pt-1.5"},[F(oA)]),(P(!0),y(le,null,Je(Re(t).currentRequest.dataForTabs,(C,H)=>(P(),Ae(Cc,{key:"k",label:C.label,count:C==null?void 0:C.count,"is-active":H===T.activeTab,disabled:C.count==0,onClick:Q=>O(H)},{default:Te(()=>[ye(ne(C.label),1)]),_:2},1032,["label","count","is-active","disabled","onClick"]))),128)),n.value?(P(),y("button",{key:0,onClick:l[4]||(l[4]=C=>O("debug")),class:ge(["px-3 py-1.5 text-stone-600",{"bg-stone-300":T.activeTab=="debug"}])},[F(Re(NI),{class:"size-4"})],2)):Ee("",!0)]),S("div",Md,[S("div",Ud,[F(Rd,{request:Re(t).currentRequest},null,8,["request"])]),S("div",{onClick:l[5]||(l[5]=C=>O("request")),class:"flex space-x-2 cursor-pointer"},[S("span",hd,ne(Re(t).currentRequest.routeAlias),1),F(Nr,{code:Re(t).currentRequest.meta.status},null,8,["code"])]),S("div",Gd,[F(_d,{requests:Re(t).requests,"current-request-id":Re(t).currentRequest.id,onSelect:l[6]||(l[6]=C=>Re(t).setCurrentRequestById(C))},null,8,["requests","current-request-id"]),S("div",gd,[S("button",{onClick:i,title:"Clear all requests (frontend and backend)"},[F(Re(_I),{class:"size-4"})]),Re(E).config.mode=="poll"?(P(),y("button",{key:0,onClick:A,title:T.isPolling?"Pause polling":"Resume polling"},[T.isPolling?(P(),Ae(Re(Sn),{key:0,class:"size-4"})):Ee("",!0),T.isPolling?Ee("",!0):(P(),Ae(Re(On),{key:1,class:"size-4"}))],8,md)):Ee("",!0),r.value?Ee("",!0):(P(),y("button",{key:1,onClick:l[7]||(l[7]=C=>T.minimized=!0),title:"Hide in the corner"},[F(Re(An),{class:"size-4"})])),r.value?(P(),y("button",{key:2,onClick:l[8]||(l[8]=C=>T.activeTab=""),title:"Close"},[F(Re(CI),{class:"size-4"})])):Ee("",!0)])])])],512),T.activeTab!=""?(P(),Ae(rd,{key:0,style:fs(`height: ${T.height}px`),request:Re(t).currentRequest,activeTab:T.activeTab},null,8,["style","request","activeTab"])):Ee("",!0)])):Ee("",!0)],64))}}),Bd=`pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
|
38
|
+
If possible, please select a more specific dialect (like sqlite, postgresql, etc).`:`SQL dialect used: "${this.dialectName}".`}getWhitespace(){Zn.lastIndex=this.index;const e=Zn.exec(this.input);if(e)return this.index+=e[0].length,e[0]}getNextToken(){for(const e of this.rules){const t=this.match(e);if(t)return t}}match(e){e.regex.lastIndex=this.index;const t=e.regex.exec(this.input);if(t){const E=t[0],s={type:e.type,raw:E,text:e.text?e.text(E):E,start:this.index};return e.key&&(s.key=e.key(E)),this.index+=E.length,s}}},sR=/\/\*/uy,jp=/[\s\S]/uy,Qp=/\*\//uy,Zp=class{constructor(){this.lastIndex=0}exec(e){let t="",E,s=0;if(E=this.matchSection(sR,e))t+=E,s++;else return null;for(;s>0;)if(E=this.matchSection(sR,e))t+=E,s++;else if(E=this.matchSection(Qp,e))t+=E,s--;else if(E=this.matchSection(jp,e))t+=E;else return null;return[t]}matchSection(e,t){e.lastIndex=this.lastIndex;const E=e.exec(t);return E&&(this.lastIndex+=E[0].length),E?E[0]:null}},zp=class{constructor(e,t){this.cfg=e,this.dialectName=t,this.rulesBeforeParams=this.buildRulesBeforeParams(e),this.rulesAfterParams=this.buildRulesAfterParams(e)}tokenize(e,t){const E=[...this.rulesBeforeParams,...this.buildParamRules(this.cfg,t),...this.rulesAfterParams],s=new qp(E,this.dialectName).tokenize(e);return this.cfg.postProcess?this.cfg.postProcess(s):s}buildRulesBeforeParams(e){var t,E;return this.validRules([{type:"BLOCK_COMMENT",regex:/(\/\* *sql-formatter-disable *\*\/[\s\S]*?(?:\/\* *sql-formatter-enable *\*\/|$))/uy},{type:"BLOCK_COMMENT",regex:e.nestedBlockComments?new Zp:/(\/\*[^]*?\*\/)/uy},{type:"LINE_COMMENT",regex:Xp((t=e.lineCommentTypes)!=null?t:["--"])},{type:"QUOTED_IDENTIFIER",regex:ER(e.identTypes)},{type:"NUMBER",regex:/(?:0x[0-9a-fA-F]+|0b[01]+|(?:-\s*)?(?:[0-9]*\.[0-9]+|[0-9]+(?:\.[0-9]*)?)(?:[eE][-+]?[0-9]+(?:\.[0-9]+)?)?)(?![\w\p{Alphabetic}])/uy},{type:"RESERVED_PHRASE",regex:Ct((E=e.reservedPhrases)!=null?E:[],e.identChars),text:Ue},{type:"CASE",regex:/CASE\b/iuy,text:Ue},{type:"END",regex:/END\b/iuy,text:Ue},{type:"BETWEEN",regex:/BETWEEN\b/iuy,text:Ue},{type:"LIMIT",regex:e.reservedClauses.includes("LIMIT")?/LIMIT\b/iuy:void 0,text:Ue},{type:"RESERVED_CLAUSE",regex:Ct(e.reservedClauses,e.identChars),text:Ue},{type:"RESERVED_SELECT",regex:Ct(e.reservedSelect,e.identChars),text:Ue},{type:"RESERVED_SET_OPERATION",regex:Ct(e.reservedSetOperations,e.identChars),text:Ue},{type:"WHEN",regex:/WHEN\b/iuy,text:Ue},{type:"ELSE",regex:/ELSE\b/iuy,text:Ue},{type:"THEN",regex:/THEN\b/iuy,text:Ue},{type:"RESERVED_JOIN",regex:Ct(e.reservedJoins,e.identChars),text:Ue},{type:"AND",regex:/AND\b/iuy,text:Ue},{type:"OR",regex:/OR\b/iuy,text:Ue},{type:"XOR",regex:e.supportsXor?/XOR\b/iuy:void 0,text:Ue},...e.operatorKeyword?[{type:"OPERATOR",regex:/OPERATOR *\([^)]+\)/iuy}]:[],{type:"RESERVED_FUNCTION_NAME",regex:Ct(e.reservedFunctionNames,e.identChars),text:Ue},{type:"RESERVED_DATA_TYPE",regex:Ct(e.reservedDataTypes,e.identChars),text:Ue},{type:"RESERVED_KEYWORD",regex:Ct(e.reservedKeywords,e.identChars),text:Ue}])}buildRulesAfterParams(e){var t,E;return this.validRules([{type:"VARIABLE",regex:e.variableTypes?Jp(e.variableTypes):void 0},{type:"STRING",regex:ER(e.stringTypes)},{type:"IDENTIFIER",regex:kp(e.identChars)},{type:"DELIMITER",regex:/[;]/uy},{type:"COMMA",regex:/[,]/y},{type:"OPEN_PAREN",regex:zn("open",e.extraParens)},{type:"CLOSE_PAREN",regex:zn("close",e.extraParens)},{type:"OPERATOR",regex:eR(["+","-","/",">","<","=","<>","<=",">=","!=",...(t=e.operators)!=null?t:[]])},{type:"ASTERISK",regex:/[*]/uy},{type:"PROPERTY_ACCESS_OPERATOR",regex:eR([".",...(E=e.propertyAccessOperators)!=null?E:[]])}])}buildParamRules(e,t){var E,s,T,r,n;const R={named:(t==null?void 0:t.named)||((E=e.paramTypes)==null?void 0:E.named)||[],quoted:(t==null?void 0:t.quoted)||((s=e.paramTypes)==null?void 0:s.quoted)||[],numbered:(t==null?void 0:t.numbered)||((T=e.paramTypes)==null?void 0:T.numbered)||[],positional:typeof(t==null?void 0:t.positional)=="boolean"?t.positional:(r=e.paramTypes)==null?void 0:r.positional,custom:(t==null?void 0:t.custom)||((n=e.paramTypes)==null?void 0:n.custom)||[]};return this.validRules([{type:"NAMED_PARAMETER",regex:NT(R.named,LA(e.paramChars||e.identChars)),key:o=>o.slice(1)},{type:"QUOTED_PARAMETER",regex:NT(R.quoted,cA(e.identTypes)),key:o=>(({tokenKey:i,quoteChar:A})=>i.replace(new RegExp(Tt("\\"+A),"gu"),A))({tokenKey:o.slice(2,-1),quoteChar:o.slice(-1)})},{type:"NUMBERED_PARAMETER",regex:NT(R.numbered,"[0-9]+"),key:o=>o.slice(1)},{type:"POSITIONAL_PARAMETER",regex:R.positional?/[?]/y:void 0},...R.custom.map(o=>{var i;return{type:"CUSTOM_PARAMETER",regex:$t(o.regex),key:(i=o.key)!=null?i:A=>A}})])}validRules(e){return e.filter(t=>!!t.regex)}},Ue=e=>zE(e.toUpperCase()),TR=new Map,eD=e=>{let t=TR.get(e);return t||(t=tD(e),TR.set(e,t)),t},tD=e=>({tokenizer:new zp(e.tokenizerOptions,e.name),formatOptions:ED(e.formatOptions)}),ED=e=>{var t;return{alwaysDenseOperators:e.alwaysDenseOperators||[],onelineClauses:Object.fromEntries(e.onelineClauses.map(E=>[E,!0])),tabularOnelineClauses:Object.fromEntries(((t=e.tabularOnelineClauses)!=null?t:e.onelineClauses).map(E=>[E,!0]))}};function sD(e){return e.indentStyle==="tabularLeft"||e.indentStyle==="tabularRight"?" ".repeat(10):e.useTabs?" ":" ".repeat(e.tabWidth)}function Zt(e){return e.indentStyle==="tabularLeft"||e.indentStyle==="tabularRight"}var TD=class{constructor(e){this.params=e,this.index=0}get({key:e,text:t}){return this.params?e?this.params[e]:this.params[this.index++]:t}getPositionalParameterIndex(){return this.index}setPositionalParameterIndex(e){this.index=e}};function rD(e){return e.map(nD).map(RD).map(oD).map(AD).map(iD)}var nD=(e,t,E)=>{if(lA(e.type)){const s=SD(E,t);if(s&&s.type==="PROPERTY_ACCESS_OPERATOR")return Ye(me({},e),{type:"IDENTIFIER",text:e.raw});const T=IE(E,t);if(T&&T.type==="PROPERTY_ACCESS_OPERATOR")return Ye(me({},e),{type:"IDENTIFIER",text:e.raw})}return e},RD=(e,t,E)=>{if(e.type==="RESERVED_FUNCTION_NAME"){const s=IE(E,t);if(!s||!fA(s))return Ye(me({},e),{type:"IDENTIFIER",text:e.raw})}return e},oD=(e,t,E)=>{if(e.type==="RESERVED_DATA_TYPE"){const s=IE(E,t);if(s&&fA(s))return Ye(me({},e),{type:"RESERVED_PARAMETERIZED_DATA_TYPE"})}return e},AD=(e,t,E)=>{if(e.type==="IDENTIFIER"){const s=IE(E,t);if(s&&pA(s))return Ye(me({},e),{type:"ARRAY_IDENTIFIER"})}return e},iD=(e,t,E)=>{if(e.type==="RESERVED_DATA_TYPE"){const s=IE(E,t);if(s&&pA(s))return Ye(me({},e),{type:"ARRAY_KEYWORD"})}return e},SD=(e,t)=>IE(e,t,-1),IE=(e,t,E=1)=>{let s=1;for(;e[t+s*E]&&OD(e[t+s*E]);)s++;return e[t+s*E]},fA=e=>e.type==="OPEN_PAREN"&&e.text==="(",pA=e=>e.type==="OPEN_PAREN"&&e.text==="[",OD=e=>e.type==="BLOCK_COMMENT"||e.type==="LINE_COMMENT",DA=class{constructor(e){this.tokenize=e,this.index=0,this.tokens=[],this.input=""}reset(e,t){this.input=e,this.index=0,this.tokens=this.tokenize(e)}next(){return this.tokens[this.index++]}save(){}formatError(e){const{line:t,col:E}=uA(this.input,e.start);return`Parse error at token: ${e.text} at line ${t} column ${E}`}has(e){return e in IA}};function lT(e){return e[0]}var z=new DA(e=>[]),Ft=([[e]])=>e,he=e=>({type:"keyword",tokenType:e.type,text:e.text,raw:e.raw}),rR=e=>({type:"data_type",text:e.text,raw:e.raw}),Ge=(e,{leading:t,trailing:E})=>(t!=null&&t.length&&(e=Ye(me({},e),{leadingComments:t})),E!=null&&E.length&&(e=Ye(me({},e),{trailingComments:E})),e),aD=(e,{leading:t,trailing:E})=>{if(t!=null&&t.length){const[s,...T]=e;e=[Ge(s,{leading:t}),...T]}if(E!=null&&E.length){const s=e.slice(0,-1),T=e[e.length-1];e=[...s,Ge(T,{trailing:E})]}return e},ID={Lexer:z,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 t=e[e.length-1];return t&&!t.hasSemicolon?t.children.length>0?e:e.slice(0,-1):e}},{name:"statement$subexpression$1",symbols:[z.has("DELIMITER")?{type:"DELIMITER"}:DELIMITER]},{name:"statement$subexpression$1",symbols:[z.has("EOF")?{type:"EOF"}:EOF]},{name:"statement",symbols:["expressions_or_clauses","statement$subexpression$1"],postprocess:([e,[t]])=>({type:"statement",children:e,hasSemicolon:t.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,t])=>[...e,...t]},{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:Ft},{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:[z.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:lT},{name:"limit_clause$ebnf$1",symbols:[],postprocess:()=>null},{name:"limit_clause",symbols:[z.has("LIMIT")?{type:"LIMIT"}:LIMIT,"_","expression_chain_","limit_clause$ebnf$1"],postprocess:([e,t,E,s])=>{if(s){const[T,r]=s;return{type:"limit_clause",limitKw:Ge(he(e),{trailing:t}),offset:E,count:r}}else return{type:"limit_clause",limitKw:Ge(he(e),{trailing:t}),count:E}}},{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:[z.has("RESERVED_SELECT")?{type:"RESERVED_SELECT"}:RESERVED_SELECT,"select_clause$subexpression$1"],postprocess:([e,[t,E]])=>({type:"clause",nameKw:he(e),children:[t,...E]})},{name:"select_clause",symbols:[z.has("RESERVED_SELECT")?{type:"RESERVED_SELECT"}:RESERVED_SELECT],postprocess:([e])=>({type:"clause",nameKw:he(e),children:[]})},{name:"all_columns_asterisk",symbols:[z.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:[z.has("RESERVED_CLAUSE")?{type:"RESERVED_CLAUSE"}:RESERVED_CLAUSE,"other_clause$ebnf$1"],postprocess:([e,t])=>({type:"clause",nameKw:he(e),children:t})},{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:[z.has("RESERVED_SET_OPERATION")?{type:"RESERVED_SET_OPERATION"}:RESERVED_SET_OPERATION,"set_operation$ebnf$1"],postprocess:([e,t])=>({type:"set_operation",nameKw:he(e),children:t})},{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:lT},{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,t])=>[e,...t]},{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,t])=>[e,...t]},{name:"expression_with_comments_",symbols:["expression","_"],postprocess:([e,t])=>Ge(e,{trailing:t})},{name:"_expression_with_comments",symbols:["_","expression"],postprocess:([e,t])=>Ge(t,{leading:e})},{name:"_andless_expression_with_comments",symbols:["_","andless_expression"],postprocess:([e,t])=>Ge(t,{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:Ft},{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:Ft},{name:"expression$subexpression$1",symbols:["andless_expression"]},{name:"expression$subexpression$1",symbols:["logic_operator"]},{name:"expression",symbols:["expression$subexpression$1"],postprocess:Ft},{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:Ft},{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:Ft},{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:Ft},{name:"array_subscript",symbols:[z.has("ARRAY_IDENTIFIER")?{type:"ARRAY_IDENTIFIER"}:ARRAY_IDENTIFIER,"_","square_brackets"],postprocess:([e,t,E])=>({type:"array_subscript",array:Ge({type:"identifier",quoted:!1,text:e.text},{trailing:t}),parenthesis:E})},{name:"array_subscript",symbols:[z.has("ARRAY_KEYWORD")?{type:"ARRAY_KEYWORD"}:ARRAY_KEYWORD,"_","square_brackets"],postprocess:([e,t,E])=>({type:"array_subscript",array:Ge(he(e),{trailing:t}),parenthesis:E})},{name:"function_call",symbols:[z.has("RESERVED_FUNCTION_NAME")?{type:"RESERVED_FUNCTION_NAME"}:RESERVED_FUNCTION_NAME,"_","parenthesis"],postprocess:([e,t,E])=>({type:"function_call",nameKw:Ge(he(e),{trailing:t}),parenthesis:E})},{name:"parenthesis",symbols:[{literal:"("},"expressions_or_clauses",{literal:")"}],postprocess:([e,t,E])=>({type:"parenthesis",children:t,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,t,E])=>({type:"parenthesis",children:t,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,t,E])=>({type:"parenthesis",children:t,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","_",z.has("PROPERTY_ACCESS_OPERATOR")?{type:"PROPERTY_ACCESS_OPERATOR"}:PROPERTY_ACCESS_OPERATOR,"_","property_access$subexpression$1"],postprocess:([e,t,E,s,[T]])=>({type:"property_access",object:Ge(e,{trailing:t}),operator:E.text,property:Ge(T,{leading:s})})},{name:"between_predicate",symbols:[z.has("BETWEEN")?{type:"BETWEEN"}:BETWEEN,"_","andless_expression_chain","_",z.has("AND")?{type:"AND"}:AND,"_","andless_expression"],postprocess:([e,t,E,s,T,r,n])=>({type:"between_predicate",betweenKw:he(e),expr1:aD(E,{leading:t,trailing:s}),andKw:he(T),expr2:[Ge(n,{leading:r})]})},{name:"case_expression$ebnf$1",symbols:["expression_chain_"],postprocess:lT},{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:[z.has("CASE")?{type:"CASE"}:CASE,"_","case_expression$ebnf$1","case_expression$ebnf$2",z.has("END")?{type:"END"}:END],postprocess:([e,t,E,s,T])=>({type:"case_expression",caseKw:Ge(he(e),{trailing:t}),endKw:he(T),expr:E||[],clauses:s})},{name:"case_clause",symbols:[z.has("WHEN")?{type:"WHEN"}:WHEN,"_","expression_chain_",z.has("THEN")?{type:"THEN"}:THEN,"_","expression_chain_"],postprocess:([e,t,E,s,T,r])=>({type:"case_when",whenKw:Ge(he(e),{trailing:t}),thenKw:Ge(he(s),{trailing:T}),condition:E,result:r})},{name:"case_clause",symbols:[z.has("ELSE")?{type:"ELSE"}:ELSE,"_","expression_chain_"],postprocess:([e,t,E])=>({type:"case_else",elseKw:Ge(he(e),{trailing:t}),result:E})},{name:"comma$subexpression$1",symbols:[z.has("COMMA")?{type:"COMMA"}:COMMA]},{name:"comma",symbols:["comma$subexpression$1"],postprocess:([[e]])=>({type:"comma"})},{name:"asterisk$subexpression$1",symbols:[z.has("ASTERISK")?{type:"ASTERISK"}:ASTERISK]},{name:"asterisk",symbols:["asterisk$subexpression$1"],postprocess:([[e]])=>({type:"operator",text:e.text})},{name:"operator$subexpression$1",symbols:[z.has("OPERATOR")?{type:"OPERATOR"}:OPERATOR]},{name:"operator",symbols:["operator$subexpression$1"],postprocess:([[e]])=>({type:"operator",text:e.text})},{name:"identifier$subexpression$1",symbols:[z.has("IDENTIFIER")?{type:"IDENTIFIER"}:IDENTIFIER]},{name:"identifier$subexpression$1",symbols:[z.has("QUOTED_IDENTIFIER")?{type:"QUOTED_IDENTIFIER"}:QUOTED_IDENTIFIER]},{name:"identifier$subexpression$1",symbols:[z.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:[z.has("NAMED_PARAMETER")?{type:"NAMED_PARAMETER"}:NAMED_PARAMETER]},{name:"parameter$subexpression$1",symbols:[z.has("QUOTED_PARAMETER")?{type:"QUOTED_PARAMETER"}:QUOTED_PARAMETER]},{name:"parameter$subexpression$1",symbols:[z.has("NUMBERED_PARAMETER")?{type:"NUMBERED_PARAMETER"}:NUMBERED_PARAMETER]},{name:"parameter$subexpression$1",symbols:[z.has("POSITIONAL_PARAMETER")?{type:"POSITIONAL_PARAMETER"}:POSITIONAL_PARAMETER]},{name:"parameter$subexpression$1",symbols:[z.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:[z.has("NUMBER")?{type:"NUMBER"}:NUMBER]},{name:"literal$subexpression$1",symbols:[z.has("STRING")?{type:"STRING"}:STRING]},{name:"literal",symbols:["literal$subexpression$1"],postprocess:([[e]])=>({type:"literal",text:e.text})},{name:"keyword$subexpression$1",symbols:[z.has("RESERVED_KEYWORD")?{type:"RESERVED_KEYWORD"}:RESERVED_KEYWORD]},{name:"keyword$subexpression$1",symbols:[z.has("RESERVED_PHRASE")?{type:"RESERVED_PHRASE"}:RESERVED_PHRASE]},{name:"keyword$subexpression$1",symbols:[z.has("RESERVED_JOIN")?{type:"RESERVED_JOIN"}:RESERVED_JOIN]},{name:"keyword",symbols:["keyword$subexpression$1"],postprocess:([[e]])=>he(e)},{name:"data_type$subexpression$1",symbols:[z.has("RESERVED_DATA_TYPE")?{type:"RESERVED_DATA_TYPE"}:RESERVED_DATA_TYPE]},{name:"data_type",symbols:["data_type$subexpression$1"],postprocess:([[e]])=>rR(e)},{name:"data_type",symbols:[z.has("RESERVED_PARAMETERIZED_DATA_TYPE")?{type:"RESERVED_PARAMETERIZED_DATA_TYPE"}:RESERVED_PARAMETERIZED_DATA_TYPE,"_","parenthesis"],postprocess:([e,t,E])=>({type:"parameterized_data_type",dataType:Ge(rR(e),{trailing:t}),parenthesis:E})},{name:"logic_operator$subexpression$1",symbols:[z.has("AND")?{type:"AND"}:AND]},{name:"logic_operator$subexpression$1",symbols:[z.has("OR")?{type:"OR"}:OR]},{name:"logic_operator$subexpression$1",symbols:[z.has("XOR")?{type:"XOR"}:XOR]},{name:"logic_operator",symbols:["logic_operator$subexpression$1"],postprocess:([[e]])=>he(e)},{name:"other_keyword$subexpression$1",symbols:[z.has("WHEN")?{type:"WHEN"}:WHEN]},{name:"other_keyword$subexpression$1",symbols:[z.has("THEN")?{type:"THEN"}:THEN]},{name:"other_keyword$subexpression$1",symbols:[z.has("ELSE")?{type:"ELSE"}:ELSE]},{name:"other_keyword$subexpression$1",symbols:[z.has("END")?{type:"END"}:END]},{name:"other_keyword",symbols:["other_keyword$subexpression$1"],postprocess:([[e]])=>he(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:[z.has("LINE_COMMENT")?{type:"LINE_COMMENT"}:LINE_COMMENT],postprocess:([e])=>({type:"line_comment",text:e.text,precedingWhitespace:e.precedingWhitespace})},{name:"comment",symbols:[z.has("BLOCK_COMMENT")?{type:"BLOCK_COMMENT"}:BLOCK_COMMENT],postprocess:([e])=>({type:"block_comment",text:e.text,precedingWhitespace:e.precedingWhitespace})},{name:"comment",symbols:[z.has("DISABLE_COMMENT")?{type:"DISABLE_COMMENT"}:DISABLE_COMMENT],postprocess:([e])=>({type:"disable_comment",text:e.text,precedingWhitespace:e.precedingWhitespace})}],ParserStart:"main"},ND=ID,{Parser:lD,Grammar:_D}=LL;function CD(e){let t={};const E=new DA(T=>[...rD(e.tokenize(T,t)),NA(T.length)]),s=new lD(_D.fromCompiled(ND),{lexer:E});return{parse:(T,r)=>{t=r;const{results:n}=s.feed(T);if(n.length===1)return n[0];throw n.length===0?new Error("Parse error: Invalid SQL"):new Error(`Parse error: Ambiguous grammar
|
39
|
+
${JSON.stringify(n,void 0,2)}`)}}}var PA=class{constructor(e){this.indentation=e,this.items=[]}add(...e){for(const t of e)switch(t){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(t)}}trimHorizontalWhitespace(){for(;cD(UE(this.items));)this.items.pop()}trimWhitespace(){for(;LD(UE(this.items));)this.items.pop()}addNewline(e){if(this.items.length>0)switch(UE(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`
|
40
|
+
`;case 6:return this.indentation.getSingleIndent();default:return e}}},cD=e=>e===0||e===6,LD=e=>e===0||e===6||e===3;function nR(e,t){if(t==="standard")return e;let E=[];return e.length>=10&&e.includes(" ")&&([e,...E]=e.split(" ")),t==="tabularLeft"?e=e.padEnd(9," "):e=e.padStart(9," "),e+["",...E].join(" ")}function RR(e){return HL(e)||e==="RESERVED_CLAUSE"||e==="RESERVED_SELECT"||e==="RESERVED_SET_OPERATION"||e==="RESERVED_JOIN"||e==="LIMIT"}var _T="top-level",uD="block-level",dA=class{constructor(e){this.indent=e,this.indentTypes=[]}getSingleIndent(){return this.indent}getLevel(){return this.indentTypes.length}increaseTopLevel(){this.indentTypes.push(_T)}increaseBlockLevel(){this.indentTypes.push(uD)}decreaseTopLevel(){this.indentTypes.length>0&&UE(this.indentTypes)===_T&&this.indentTypes.pop()}decreaseBlockLevel(){for(;this.indentTypes.length>0&&this.indentTypes.pop()===_T;);}},fD=class extends PA{constructor(e){super(new dA("")),this.expressionWidth=e,this.length=0,this.trailingSpace=!1}add(...e){if(e.forEach(t=>this.addToLength(t)),this.length>this.expressionWidth)throw new HT;super.add(...e)}addToLength(e){if(typeof e=="string")this.length+=e.length,this.trailingSpace=!1;else{if(e===4||e===3)throw new HT;e===5||e===6||e===0?this.trailingSpace||(this.length++,this.trailingSpace=!0):(e===2||e===1)&&this.trailingSpace&&(this.trailingSpace=!1,this.length--)}}},HT=class extends Error{},pD=class bT{constructor({cfg:t,dialectCfg:E,params:s,layout:T,inline:r=!1}){this.inline=!1,this.nodes=[],this.index=-1,this.cfg=t,this.dialectCfg=E,this.inline=r,this.params=s,this.layout=T}format(t){for(this.nodes=t,this.index=0;this.index<this.nodes.length;this.index++)this.formatNode(this.nodes[this.index]);return this.layout}formatNode(t){this.formatComments(t.leadingComments),this.formatNodeWithoutComments(t),this.formatComments(t.trailingComments)}formatNodeWithoutComments(t){switch(t.type){case"function_call":return this.formatFunctionCall(t);case"parameterized_data_type":return this.formatParameterizedDataType(t);case"array_subscript":return this.formatArraySubscript(t);case"property_access":return this.formatPropertyAccess(t);case"parenthesis":return this.formatParenthesis(t);case"between_predicate":return this.formatBetweenPredicate(t);case"case_expression":return this.formatCaseExpression(t);case"case_when":return this.formatCaseWhen(t);case"case_else":return this.formatCaseElse(t);case"clause":return this.formatClause(t);case"set_operation":return this.formatSetOperation(t);case"limit_clause":return this.formatLimitClause(t);case"all_columns_asterisk":return this.formatAllColumnsAsterisk(t);case"literal":return this.formatLiteral(t);case"identifier":return this.formatIdentifier(t);case"parameter":return this.formatParameter(t);case"operator":return this.formatOperator(t);case"comma":return this.formatComma(t);case"line_comment":return this.formatLineComment(t);case"block_comment":return this.formatBlockComment(t);case"disable_comment":return this.formatBlockComment(t);case"data_type":return this.formatDataType(t);case"keyword":return this.formatKeywordNode(t)}}formatFunctionCall(t){this.withComments(t.nameKw,()=>{this.layout.add(this.showFunctionKw(t.nameKw))}),this.formatNode(t.parenthesis)}formatParameterizedDataType(t){this.withComments(t.dataType,()=>{this.layout.add(this.showDataType(t.dataType))}),this.formatNode(t.parenthesis)}formatArraySubscript(t){let E;switch(t.array.type){case"data_type":E=this.showDataType(t.array);break;case"keyword":E=this.showKw(t.array);break;default:E=this.showIdentifier(t.array);break}this.withComments(t.array,()=>{this.layout.add(E)}),this.formatNode(t.parenthesis)}formatPropertyAccess(t){this.formatNode(t.object),this.layout.add(1,t.operator),this.formatNode(t.property)}formatParenthesis(t){const E=this.formatInlineExpression(t.children);E?(this.layout.add(t.openParen),this.layout.add(...E.getLayoutItems()),this.layout.add(1,t.closeParen,0)):(this.layout.add(t.openParen,3),Zt(this.cfg)?(this.layout.add(5),this.layout=this.formatSubExpression(t.children)):(this.layout.indentation.increaseBlockLevel(),this.layout.add(5),this.layout=this.formatSubExpression(t.children),this.layout.indentation.decreaseBlockLevel()),this.layout.add(3,5,t.closeParen,0))}formatBetweenPredicate(t){this.layout.add(this.showKw(t.betweenKw),0),this.layout=this.formatSubExpression(t.expr1),this.layout.add(1,0,this.showNonTabularKw(t.andKw),0),this.layout=this.formatSubExpression(t.expr2),this.layout.add(0)}formatCaseExpression(t){this.formatNode(t.caseKw),this.layout.indentation.increaseBlockLevel(),this.layout=this.formatSubExpression(t.expr),this.layout=this.formatSubExpression(t.clauses),this.layout.indentation.decreaseBlockLevel(),this.layout.add(3,5),this.formatNode(t.endKw)}formatCaseWhen(t){this.layout.add(3,5),this.formatNode(t.whenKw),this.layout=this.formatSubExpression(t.condition),this.formatNode(t.thenKw),this.layout=this.formatSubExpression(t.result)}formatCaseElse(t){this.layout.add(3,5),this.formatNode(t.elseKw),this.layout=this.formatSubExpression(t.result)}formatClause(t){this.isOnelineClause(t)?this.formatClauseInOnelineStyle(t):Zt(this.cfg)?this.formatClauseInTabularStyle(t):this.formatClauseInIndentedStyle(t)}isOnelineClause(t){return Zt(this.cfg)?this.dialectCfg.tabularOnelineClauses[t.nameKw.text]:this.dialectCfg.onelineClauses[t.nameKw.text]}formatClauseInIndentedStyle(t){this.layout.add(3,5,this.showKw(t.nameKw),3),this.layout.indentation.increaseTopLevel(),this.layout.add(5),this.layout=this.formatSubExpression(t.children),this.layout.indentation.decreaseTopLevel()}formatClauseInOnelineStyle(t){this.layout.add(3,5,this.showKw(t.nameKw),0),this.layout=this.formatSubExpression(t.children)}formatClauseInTabularStyle(t){this.layout.add(3,5,this.showKw(t.nameKw),0),this.layout.indentation.increaseTopLevel(),this.layout=this.formatSubExpression(t.children),this.layout.indentation.decreaseTopLevel()}formatSetOperation(t){this.layout.add(3,5,this.showKw(t.nameKw),3),this.layout.add(5),this.layout=this.formatSubExpression(t.children)}formatLimitClause(t){this.withComments(t.limitKw,()=>{this.layout.add(3,5,this.showKw(t.limitKw))}),this.layout.indentation.increaseTopLevel(),Zt(this.cfg)?this.layout.add(0):this.layout.add(3,5),t.offset?(this.layout=this.formatSubExpression(t.offset),this.layout.add(1,",",0),this.layout=this.formatSubExpression(t.count)):this.layout=this.formatSubExpression(t.count),this.layout.indentation.decreaseTopLevel()}formatAllColumnsAsterisk(t){this.layout.add("*",0)}formatLiteral(t){this.layout.add(t.text,0)}formatIdentifier(t){this.layout.add(this.showIdentifier(t),0)}formatParameter(t){this.layout.add(this.params.get(t),0)}formatOperator({text:t}){this.cfg.denseOperators||this.dialectCfg.alwaysDenseOperators.includes(t)?this.layout.add(1,t):t===":"?this.layout.add(1,t,0):this.layout.add(t,0)}formatComma(t){this.inline?this.layout.add(1,",",0):this.layout.add(1,",",3,5)}withComments(t,E){this.formatComments(t.leadingComments),E(),this.formatComments(t.trailingComments)}formatComments(t){t&&t.forEach(E=>{E.type==="line_comment"?this.formatLineComment(E):this.formatBlockComment(E)})}formatLineComment(t){IT(t.precedingWhitespace||"")?this.layout.add(3,5,t.text,4,5):this.layout.getLayoutItems().length>0?this.layout.add(2,0,t.text,4,5):this.layout.add(t.text,4,5)}formatBlockComment(t){t.type==="block_comment"&&this.isMultilineBlockComment(t)?(this.splitBlockComment(t.text).forEach(E=>{this.layout.add(3,5,E)}),this.layout.add(3,5)):this.layout.add(t.text,0)}isMultilineBlockComment(t){return IT(t.text)||IT(t.precedingWhitespace||"")}isDocComment(t){const E=t.split(/\n/);return/^\/\*\*?$/.test(E[0])&&E.slice(1,E.length-1).every(s=>/^\s*\*/.test(s))&&/^\s*\*\/$/.test(UE(E))}splitBlockComment(t){return this.isDocComment(t)?t.split(/\n/).map(E=>/^\s*\*/.test(E)?" "+E.replace(/^\s*/,""):E):t.split(/\n/).map(E=>E.replace(/^\s*/,""))}formatSubExpression(t){return new bT({cfg:this.cfg,dialectCfg:this.dialectCfg,params:this.params,layout:this.layout,inline:this.inline}).format(t)}formatInlineExpression(t){const E=this.params.getPositionalParameterIndex();try{return new bT({cfg:this.cfg,dialectCfg:this.dialectCfg,params:this.params,layout:new fD(this.cfg.expressionWidth),inline:!0}).format(t)}catch(s){if(s instanceof HT){this.params.setPositionalParameterIndex(E);return}else throw s}}formatKeywordNode(t){switch(t.tokenType){case"RESERVED_JOIN":return this.formatJoin(t);case"AND":case"OR":case"XOR":return this.formatLogicalOperator(t);default:return this.formatKeyword(t)}}formatJoin(t){Zt(this.cfg)?(this.layout.indentation.decreaseTopLevel(),this.layout.add(3,5,this.showKw(t),0),this.layout.indentation.increaseTopLevel()):this.layout.add(3,5,this.showKw(t),0)}formatKeyword(t){this.layout.add(this.showKw(t),0)}formatLogicalOperator(t){this.cfg.logicalOperatorNewline==="before"?Zt(this.cfg)?(this.layout.indentation.decreaseTopLevel(),this.layout.add(3,5,this.showKw(t),0),this.layout.indentation.increaseTopLevel()):this.layout.add(3,5,this.showKw(t),0):this.layout.add(this.showKw(t),3,5)}formatDataType(t){this.layout.add(this.showDataType(t),0)}showKw(t){return RR(t.tokenType)?nR(this.showNonTabularKw(t),this.cfg.indentStyle):this.showNonTabularKw(t)}showNonTabularKw(t){switch(this.cfg.keywordCase){case"preserve":return zE(t.raw);case"upper":return t.text;case"lower":return t.text.toLowerCase()}}showFunctionKw(t){return RR(t.tokenType)?nR(this.showNonTabularFunctionKw(t),this.cfg.indentStyle):this.showNonTabularFunctionKw(t)}showNonTabularFunctionKw(t){switch(this.cfg.functionCase){case"preserve":return zE(t.raw);case"upper":return t.text;case"lower":return t.text.toLowerCase()}}showIdentifier(t){if(t.quoted)return t.text;switch(this.cfg.identifierCase){case"preserve":return t.text;case"upper":return t.text.toUpperCase();case"lower":return t.text.toLowerCase()}}showDataType(t){switch(this.cfg.dataTypeCase){case"preserve":return zE(t.raw);case"upper":return t.text;case"lower":return t.text.toLowerCase()}}},DD=class{constructor(e,t){this.dialect=e,this.cfg=t,this.params=new TD(this.cfg.params)}format(e){const t=this.parse(e);return this.formatAst(t).trimEnd()}parse(e){return CD(this.dialect.tokenizer).parse(e,this.cfg.paramTypes||{})}formatAst(e){return e.map(t=>this.formatStatement(t)).join(`
|
41
|
+
`.repeat(this.cfg.linesBetweenQueries+1))}formatStatement(e){const t=new pD({cfg:this.cfg,dialectCfg:this.dialect.formatOptions,params:this.params,layout:new PA(new dA(sD(this.cfg)))}).format(e.children);return e.hasSemicolon&&(this.cfg.newlineBeforeSemicolon?t.add(3,";"):t.add(2,";")),t.toString()}},es=class extends Error{};function PD(e){const t=["multilineLists","newlineBeforeOpenParen","newlineBeforeCloseParen","aliasAs","commaPosition","tabulateAlias"];for(const E of t)if(E in e)throw new es(`${E} config is no more supported.`);if(e.expressionWidth<=0)throw new es(`expressionWidth config must be positive number. Received ${e.expressionWidth} instead.`);if(e.params&&!dD(e.params)&&console.warn('WARNING: All "params" option values should be strings.'),e.paramTypes&&!MD(e.paramTypes))throw new es("Empty regex given in custom paramTypes. That would result in matching infinite amount of parameters.");return e}function dD(e){return(e instanceof Array?e:Object.values(e)).every(E=>typeof E=="string")}function MD(e){return e.custom&&Array.isArray(e.custom)?e.custom.every(t=>t.regex!==""):!0}var MA={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",tidb:"tidb",trino:"trino",transactsql:"transactsql",tsql:"transactsql",singlestoredb:"singlestoredb",snowflake:"snowflake"},UD=Object.keys(MA),hD={tabWidth:2,useTabs:!1,keywordCase:"preserve",identifierCase:"preserve",dataTypeCase:"preserve",functionCase:"preserve",indentStyle:"standard",logicalOperatorNewline:"before",expressionWidth:50,linesBetweenQueries:1,denseOperators:!1,newlineBeforeSemicolon:!1},GD=(e,t={})=>{if(typeof t.language=="string"&&!UD.includes(t.language))throw new es(`Unsupported SQL dialect: ${t.language}`);const E=MA[t.language||"sql"];return gD(e,Ye(me({},t),{dialect:aA[E]}))},gD=(e,t)=>{var E=t,{dialect:s}=E,T=pL(E,["dialect"]);if(typeof e!="string")throw new Error("Invalid query argument. Expected string, instead got "+typeof e);const r=PD(me(me({},hD),T));return new DD(eD(s),r).format(e)};const mD={class:"flex items-center"},HD=["textContent"],ts=Ne({__name:"Timing",props:{durationMs:{},slowThreshold:{default:1e3},tooSlowThreshold:{default:1500}},setup(e){const t=e,E=tt(()=>t.durationMs>=1e3?(t.durationMs/1e3).toFixed(2)+"s":t.durationMs.toFixed(1)+"ms");return(s,T)=>(P(),y("div",mD,[st(s.$slots,"default"),S("span",{class:ge({"px-1 py-0.5 rounded text-sm":!0,"text-orange-600":s.durationMs>=t.slowThreshold&&s.durationMs<t.tooSlowThreshold,"text-red-600 bg-red-100":s.durationMs>=t.tooSlowThreshold}),textContent:ne(E.value)},null,10,HD)]))}});function bD(e){const t=typeof e=="string"?e:JSON.stringify(e),E="text/plain",s=new Blob([t],{type:E}),T=[new ClipboardItem({[E]:s})];navigator.clipboard.write(T)}function BT(e){const t=e.origin.length+e.pathname.length;return e.href.slice(t)}function BD(e){const t={};for(const[E,s]of e.searchParams)t[E]=s;return t}const yD={class:"flex items-center space-x-4"},FD={class:"font-semibold text-lg"},vD={key:0},YD=["textContent"],VD={key:0,class:"mt-4 ml-4"},xD={key:0,class:"mt-3 text-stone-400 text-sm"},wD=["textContent"],WD=["textContent"],UA=Ne({__name:"PanelListItem",props:{title:{},source:{},isFormatted:{type:Boolean},copyableText:{}},emits:["toggleFormatting"],setup(e){const t=e,E=rt({isOpen:!0,showOriginFile:!1});return(s,T)=>(P(),y("div",null,[S("div",yD,[S("button",{class:"flex items-center space-x-1",onClick:T[0]||(T[0]=r=>E.isOpen=!E.isOpen)},[v(Re(or),{class:ge(["size-4",{"-rotate-90":!E.isOpen}])},null,8,["class"]),S("span",FD,ne(t.title),1)]),st(s.$slots,"title-details"),E.isOpen?(P(),y("div",vD,[t.isFormatted!==void 0?(P(),y("span",{key:0,onClick:T[1]||(T[1]=r=>s.$emit("toggleFormatting")),class:"px-3 text-xs uppercase text-stone-400 cursor-pointer",title:"Format SQL query",textContent:ne(t.isFormatted?"unformat":"format")},null,8,YD)):Ee("",!0),t.copyableText?(P(),y("span",{key:1,onClick:T[2]||(T[2]=r=>Re(bD)(t.copyableText)),class:"px-3 text-xs uppercase text-stone-400 cursor-pointer",title:"Copy SQL query to clipboard"},"copy")):Ee("",!0),t.source?(P(),y("span",{key:2,onClick:T[3]||(T[3]=r=>E.showOriginFile=!E.showOriginFile),class:"px-3 text-xs uppercase text-stone-400 cursor-pointer",title:"Show origin file of the query"},"file")):Ee("",!0),st(s.$slots,"actions")])):Ee("",!0)]),E.isOpen?(P(),y("div",VD,[S("div",null,[st(s.$slots,"content")]),E.showOriginFile?(P(),y("div",xD,[S("div",{textContent:ne(t.source[0])},null,8,wD),t.source.length>1?(P(!0),y(le,{key:0},Je(t.source.slice(1),r=>(P(),y("div",{class:"pl-4",textContent:ne("↳ "+r)},null,8,WD))),256)):Ee("",!0)])):Ee("",!0)])):Ee("",!0)]))}}),XD={key:0,class:"px-1 py-0.5 rounded text-xs bg-sky-600 text-white"},KD={key:1,class:"px-1 py-0.5 rounded text-xs bg-emerald-600 text-white"},$D=Ne({__name:"QueryItem",props:{query:{}},setup(e){const t=e,E=rt({isFormatted:!1});let s=ar();const T=n=>GD(n,{language:s.config.sqlDialect}),r=n=>E.isFormatted?T(n):n;return(n,R)=>{const o=sr("highlightjs");return P(),Ae(UA,{onToggleFormatting:R[0]||(R[0]=i=>E.isFormatted=!E.isFormatted),title:n.query.name,source:n.query.source,"is-formatted":E.isFormatted,"copyable-text":r(n.query.sql)},{"title-details":Te(()=>[t.query.cached?(P(),y("span",XD,"cached")):Ee("",!0),t.query.async?(P(),y("span",KD,"async")):Ee("",!0),v(ts,{"duration-ms":t.query.duration,slowThreshold:30,"too-slow-threshold":100,title:"Query runtime"},{default:Te(()=>[v(Re(Fo),{class:"text-stone-600 size-3"})]),_:1},8,["duration-ms"])]),actions:Te(()=>R[1]||(R[1]=[])),content:Te(()=>[v(o,{language:"sql",code:r(n.query.sql)},null,8,["code"])]),_:1},8,["title","source","is-formatted","copyable-text"])}}}),_r=Ne({__name:"JsonCode",props:{json:{}},setup(e){return(t,E)=>{const s=sr("highlightjs");return P(),Ae(s,{class:"text-sm",language:"json",code:JSON.stringify(t.json,null,2)},null,8,["code"])}}}),JD={class:"p-4 leading-8"},kD=Ne({__name:"JsonPanel",props:{request:{}},setup(e){return(t,E)=>(P(),y("div",JD,[v(_r,{json:t.request},null,8,["json"])]))}}),qD={},jD={class:"px-3 py-2"};function QD(e,t){return P(),y("div",jD,[st(e.$slots,"default")])}const Gt=Ir(qD,[["render",QD]]),ZD={key:0},zD={class:"space-y-3"},eP={class:"flex items-center space-x-8"},tP={class:"w-24 text-sm text-right text-gray-400"},EP={class:"w-16 text-right"},sP={class:"text-gray-800"},TP={class:"font-medium",title:"cache key"},rP={class:"text-xs text-gray-400",title:"transaction_id"},nP=Ne({__name:"CachePanel",props:{cache:{}},setup(e){const t=e;return(E,s)=>(P(),Ae(Gt,null,{default:Te(()=>[t.cache.length==0?(P(),y("div",ZD,s[0]||(s[0]=[S("div",{class:"text-gray-500"},"No cache used.",-1)]))):Ee("",!0),S("div",zD,[(P(!0),y(le,null,Je(t.cache,T=>(P(),y("div",eP,[S("div",tP,ne(T.time),1),S("div",EP,[S("span",{class:ge(["px-1 py-0.5 rounded text-white text-xs font-mono font-medium bg-stone-400",{"!bg-emerald-500":T.label=="hit","!bg-indigo-500":T.label=="write","!bg-amber-400":T.label=="read","!bg-red-400":T.label=="delete"}])},ne(T.label),3)]),S("div",sP,[S("div",TP,ne(T.key),1),S("div",rP,ne(T.transaction_id),1)])]))),256))])]),_:1}))}}),RP={key:0},oP={class:"flex items-center space-y-1 space-x-3"},AP={class:"w-32 text-right text-gray-400"},iP={class:"w-20 text-center"},SP=["title"],OP=["innerHTML"],aP=Ne({__name:"LogsPanel",props:{logs:{}},setup(e){const t=e;function E(s){return(s.progname||s.message||"").replace(" "," ")}return(s,T)=>(P(),Ae(Gt,null,{default:Te(()=>[t.logs.length==0?(P(),y("div",RP,T[0]||(T[0]=[S("div",{class:"text-gray-500"},"No logs to show. Are you using the correct minimum level in your config?",-1)]))):Ee("",!0),(P(!0),y(le,null,Je(t.logs,r=>(P(),y("div",oP,[S("div",AP,ne(r.time),1),S("div",iP,[S("span",{class:ge(["px-1 py-0.5 rounded text-white text-xs font-mono font-medium",{"bg-stone-400":r.severity==0,"bg-blue-500":r.severity==1,"bg-amber-400":r.severity==2,"bg-red-400":r.severity==2,"bg-fuchsia-500":r.severity>=3}]),title:r.severity_label},ne(r.severity_label),11,SP)]),S("div",{class:"text-gray-800",innerHTML:E(r)},null,8,OP)]))),256))]),_:1}))}}),IP={class:"flex flex-col space-y-8"},oR=Ne({__name:"PanelList",setup(e){return(t,E)=>(P(),Ae(Gt,null,{default:Te(()=>[S("div",IP,[st(t.$slots,"default")])]),_:3}))}}),NP={key:0},lP={key:1,class:"my-4 mx-6 divide-y divide-stone-300"},_P={class:"divide-y divide-stone-200"},CP={class:"whitespace-nowrap p-4 pr-8 text-stone-900"},cP=["textContent"],LP={class:"text-stone-600 text-sm"},uP=["textContent"],fP=["textContent"],pP={class:"whitespace-nowrap px-3 p-4 pr-8 text-sm"},DP={class:"whitespace-nowrap px-3 p-4 pr-8 text-sm text-stone-500"},PP=["innerHTML"],dP=Ne({__name:"JobsPanel",props:{jobs:{}},setup(e){const t=e;function E(s){return s==null?"-":new Date(s*1e3).toLocaleString()}return(s,T)=>(P(),Ae(Gt,null,{default:Te(()=>[t.jobs.length==0?(P(),y("div",NP,T[0]||(T[0]=[S("div",{class:"text-gray-500"},"No jobs enqueued.",-1)]))):Ee("",!0),t.jobs.length>0?(P(),y("table",lP,[T[1]||(T[1]=S("thead",null,[S("tr",null,[S("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"),S("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-stone-900"},"Args"),S("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-stone-900"},"Logs")])],-1)),S("tbody",_P,[(P(!0),y(le,null,Je(t.jobs,(r,n)=>(P(),y("tr",{key:r.id},[S("td",CP,[S("div",{class:"text-lg font-bold",textContent:ne(r.class)},null,8,cP),S("div",LP,[S("div",{textContent:ne("Queue: "+r.queue)},null,8,uP),S("div",{textContent:ne("At: "+E(r.scheduled_at))},null,8,fP)])]),S("td",pP,[v(_r,{json:r.args},null,8,["json"])]),S("td",DP,[(P(!0),y(le,null,Je(r.logs,(R,o)=>(P(),y("div",{innerHTML:(o>0?" ".repeat(o)+"↳ ":"")+R,class:""},null,8,PP))),256))])]))),128))])])):Ee("",!0)]),_:1}))}}),MP={class:"break-all w-full border-separate border-spacing-1"},UP={key:0},hP=["textContent"],GP=["textContent"],vE=Ne({__name:"KeyValueTable",props:{keyLabel:{},valueLabel:{}},setup(e){const t=e;return(E,s)=>(P(),y("table",MP,[t.keyLabel||t.valueLabel?(P(),y("tr",UP,[S("th",{textContent:ne(t.keyLabel),class:"bg-amber-50 w-40 px-3 py-1"},null,8,hP),S("th",{textContent:ne(t.valueLabel),class:"bg-amber-50 px-3 py-1"},null,8,GP)])):Ee("",!0),st(E.$slots,"default")]))}}),gP=["textContent"],mP={class:"px-3 py-1"},et=Ne({__name:"Row",props:{label:{}},setup(e){const t=e;return(E,s)=>(P(),y("tr",null,[S("td",{textContent:ne(t.label),class:"w-40 font-medium bg-stone-50 px-3 py-1"},null,8,gP),S("td",mP,[st(E.$slots,"default")])]))}}),HP={},bP={class:"mt-0.5 mb-2 px-2 py-1 bg-stone-300 text-black tracking-wide text-xs uppercase font-bold rounded"};function BP(e,t){return P(),y("h2",bP,[st(e.$slots,"default")])}const Cr=Ir(HP,[["render",BP]]),yP={class:"font-medium"},FP={key:0},hA=Ne({__name:"Foldable",props:{label:{},isOpen:{type:Boolean,default:!1}},setup(e){const t=e,E=rt({isOpen:t.isOpen});return(s,T)=>(P(),y("div",null,[S("div",null,[S("button",{class:"flex items-center space-x-1",onClick:T[0]||(T[0]=r=>E.isOpen=!E.isOpen)},[v(Re(or),{class:ge(["size-4",{"-rotate-90":!E.isOpen}])},null,8,["class"]),S("span",yP,ne(t.label),1)])]),E.isOpen?(P(),y("div",FP,[st(s.$slots,"default")])):Ee("",!0)]))}}),GA=Ne({__name:"HttpResponsePanel",props:{response:{}},setup(e){return(t,E)=>(P(),Ae(Gt,null,{default:Te(()=>[v(Cr,null,{default:Te(()=>E[0]||(E[0]=[ye("HTTP Response")])),_:1}),v(vE,null,{default:Te(()=>[v(et,{label:"Status"},{default:Te(()=>[v(Nr,{code:t.response.status},null,8,["code"])]),_:1}),v(et,{label:"Body"},{default:Te(()=>[ye(ne(t.response.body.substring(0,140)),1)]),_:1}),v(et,{label:"Header: Content-Type"},{default:Te(()=>[ye(ne(t.response.headers["Content-Type"]),1)]),_:1})]),_:1}),v(hA,{class:"py-4",label:"All Headers"},{default:Te(()=>[v(vE,null,{default:Te(()=>[(P(!0),y(le,null,Je(t.response.headers,(s,T)=>(P(),Ae(et,{key:T,label:T},{default:Te(()=>[ye(ne(s),1)]),_:2},1032,["label"]))),128))]),_:1})]),_:1})]),_:1}))}}),vP=["textContent"],ls=Ne({__name:"HttpVerb",props:{verb:{}},setup(e){const t=e;return(E,s)=>(P(),y("span",{class:ge(["px-1 py-0.5 rounded text-xs text-white bg-slate-700",{"!bg-sky-700":t.verb.toLowerCase()=="get","!bg-indigo-700":t.verb.toLowerCase()=="post","!bg-purple-700":t.verb.toLowerCase()=="put","!bg-violet-500":t.verb.toLowerCase()=="patch","!bg-red-700":t.verb.toLowerCase()=="delete"}]),textContent:ne(t.verb.toUpperCase())},null,10,vP))}}),gA=Ne({__name:"HttpRequestPanel",props:{request:{}},setup(e){return(t,E)=>(P(),Ae(Gt,null,{default:Te(()=>[v(Cr,null,{default:Te(()=>E[0]||(E[0]=[ye("HTTP Request")])),_:1}),v(vE,null,{default:Te(()=>[v(et,{label:"Method"},{default:Te(()=>[v(ls,{verb:t.request.method},null,8,["verb"])]),_:1}),v(et,{label:"URL",class:"font-mono"},{default:Te(()=>[ye(ne(t.request.url.href),1)]),_:1}),v(et,{label:"Params"},{default:Te(()=>[v(_r,{json:Re(BD)(t.request.url)},null,8,["json"])]),_:1}),v(et,{label:"Header: Version"},{default:Te(()=>[ye(ne(t.request.headers.Version),1)]),_:1}),v(et,{label:"Header: Cache-Control"},{default:Te(()=>[ye(ne(t.request.headers["Cache-Control"]),1)]),_:1})]),_:1}),v(hA,{class:"py-4",label:"All Headers"},{default:Te(()=>[v(vE,null,{default:Te(()=>[(P(!0),y(le,null,Je(t.request.headers,(s,T)=>(P(),Ae(et,{key:T,label:T},{default:Te(()=>[ye(ne(s),1)]),_:2},1032,["label"]))),128))]),_:1})]),_:1})]),_:1}))}}),YP={class:"flex"},VP={class:"w-1/2"},xP={class:"w-1/2"},wP={key:1},WP=Ne({__name:"RequestPanel",props:{request:{}},setup(e){return(t,E)=>{var s,T;return P(),y(le,null,[S("div",YP,[S("div",VP,[v(gA,{request:t.request.request},null,8,["request"])]),S("div",xP,[v(Gt,null,{default:Te(()=>[v(Cr,null,{default:Te(()=>E[0]||(E[0]=[ye("Routing")])),_:1}),v(vE,null,{default:Te(()=>[v(et,{title:"Controller"},{default:Te(()=>[ye(ne(t.request.meta.controller)+" > "+ne(t.request.meta.action),1)]),_:1})]),_:1})]),_:1}),(s=t.request.response)!=null&&s.status?(P(),Ae(GA,{key:0,response:t.request.response},null,8,["response"])):Ee("",!0),(T=t.request.response)!=null&&T.status?Ee("",!0):(P(),y("div",wP,E[1]||(E[1]=[S("div",{class:"py-3 text-sm text-stone-500"},[ye(" The response was not captured. "),S("a",{target:"_blank",class:"underline font-bold",href:"https://debugbar.dev/docs/known-limitations/"},"Learn more")],-1)])))])]),E[2]||(E[2]=S("div",{class:"w-full"},[S("div",{class:"py-3 text-center italic text-sm text-stone-500"},[ye(" What else would like to see here? "),S("a",{target:"_blank",class:"underline font-bold",href:"https://github.com/julienbourdeau/debugbar/discussions"},"Tell me!")])],-1))],64)}}}),XP=Ne({__name:"MessageItem",props:{msg:{}},setup(e){const t=rt({isFormatted:!1});function E(s){return t.isFormatted?JSON.stringify(s,null,2):JSON.stringify(s)}return(s,T)=>{const r=sr("highlightjs");return P(),Ae(UA,{onToggleFormatting:T[0]||(T[0]=n=>t.isFormatted=!t.isFormatted),title:s.msg.msg,"copyable-text":E(s.msg.extra),"is-formatted":t.isFormatted,source:s.msg.source},{content:Te(()=>[v(r,{language:"json",code:E(s.msg.extra)},null,8,["code"])]),_:1},8,["title","copyable-text","is-formatted","source"])}}}),KP={key:0},$P={key:1,class:"divide-y divide-stone-300"},JP={class:"divide-y divide-stone-200"},kP={class:"whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-stone-900 sm:pl-0"},qP={class:"whitespace-nowrap px-3 py-4 text-sm text-stone-500 text-center"},jP=Ne({__name:"ModelsPanel",props:{models:{},count:{}},setup(e){const t=e;return(E,s)=>(P(),Ae(Gt,null,{default:Te(()=>[t.count==0?(P(),y("div",KP,s[0]||(s[0]=[S("div",{class:"text-gray-500"},"No models were initialized.",-1)]))):Ee("",!0),t.count>0?(P(),y("table",$P,[s[1]||(s[1]=S("thead",null,[S("tr",null,[S("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 "),S("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-stone-900"},"Count")])],-1)),S("tbody",JP,[(P(!0),y(le,null,Je(t.models,(T,r)=>(P(),y("tr",{key:r},[S("td",kP,ne(r),1),S("td",qP,ne(T),1)]))),128))])])):Ee("",!0)]),_:1}))}}),QP=["onClick"],ZP={class:""},zP={class:"text-black font-bold"},ed={class:"text-stone-600"},td={key:0,class:"flex"},Ed=Ne({__name:"HttpPanel",props:{requests:{}},setup(e){const t=rt({open:{}});return(E,s)=>(P(!0),y(le,null,Je(E.requests,T=>{var r;return P(),y("div",{key:T.id},[S("h1",{class:"flex items-center my-4 mx-2 space-x-2 px-2 py-2.5 bg-stone-100 border border-stone-300 tracking-wide text-sm rounded cursor-pointer",onClick:n=>t.open[T.id]=!t.open[T.id]},[v(Re(or),{class:ge(["size-4",{"-rotate-90":t.open[T.id]}])},null,8,["class"]),v(Nr,{code:(r=T.response)==null?void 0:r.status},null,8,["code"]),v(ls,{verb:T.request.method},null,8,["verb"]),S("span",ZP,[S("span",zP,ne(T.request.url.pathname),1),S("span",ed,ne(Re(BT)(T.request.url)),1)])],8,QP),t.open[T.id]?(P(),y("div",td,[v(gA,{request:T.request,class:"w-1/2"},null,8,["request"]),v(GA,{response:T.response,class:"w-1/2"},null,8,["response"])])):Ee("",!0)])}),128))}}),sd={ref:"body",id:"debugbar-body",class:"bg-white overflow-scroll"},Td=Ne({__name:"DebugbarBody",props:{activeTab:{default:""},request:{}},setup(e){return(t,E)=>{var s,T,r,n,R;return P(),y("div",sd,[t.activeTab=="messages"?(P(),Ae(oR,{key:0},{default:Te(()=>{var o;return[(P(!0),y(le,null,Je((o=t.request)==null?void 0:o.messages,i=>(P(),Ae(XP,{msg:i,key:i.id},null,8,["msg"]))),128))]}),_:1})):Ee("",!0),t.activeTab=="models"?(P(),Ae(jP,{key:1,models:(s=t.request)==null?void 0:s.models,count:(T=t.request)==null?void 0:T.modelsCount},null,8,["models","count"])):Ee("",!0),t.activeTab=="queries"?(P(),Ae(oR,{key:2},{default:Te(()=>[(P(!0),y(le,null,Je(t.request.queries,o=>(P(),Ae($D,{key:o.id,query:o},null,8,["query"]))),128))]),_:1})):Ee("",!0),t.activeTab=="jobs"?(P(),Ae(dP,{key:3,jobs:(r=t.request)==null?void 0:r.jobs},null,8,["jobs"])):Ee("",!0),t.activeTab=="cache"?(P(),Ae(nP,{key:4,cache:(n=t.request)==null?void 0:n.cache},null,8,["cache"])):Ee("",!0),t.activeTab=="logs"?(P(),Ae(aP,{key:5,logs:(R=t.request)==null?void 0:R.logs},null,8,["logs"])):Ee("",!0),t.activeTab=="http"?(P(),Ae(Ed,{key:6,requests:t.request.httpCalls},null,8,["requests"])):Ee("",!0),t.activeTab=="request"?(P(),Ae(WP,{key:7,request:t.request},null,8,["request"])):Ee("",!0),t.activeTab=="debug"?(P(),Ae(kD,{key:8,request:t.request,class:"px-3 py-2"},null,8,["request"])):Ee("",!0)],512)}}}),rd={class:"flex space-x-2"},nd=Ne({__name:"RequestTimings",props:{request:{}},setup(e){return(t,E)=>(P(),y("div",rd,[v(ts,{"duration-ms":t.request.meta.db_runtime,title:"DB runtime"},{default:Te(()=>[v(Re(Fo),{class:"text-stone-600 size-3"})]),_:1},8,["duration-ms"]),v(ts,{"duration-ms":t.request.meta.cpu_time,title:"CPU time"},{default:Te(()=>[v(Re(Na),{class:"text-stone-600 size-3"})]),_:1},8,["duration-ms"]),v(ts,{"duration-ms":t.request.meta.duration,"too-slow-threshold":1e3,"slow-threshold":750,class:"font-bold",title:"Total duration"},{default:Te(()=>[v(Re(Oa),{class:"text-stone-800 size-4"})]),_:1},8,["duration-ms"])]))}}),Rd={class:""},od={class:"truncate grow text-left"},Ad={class:"text-stone-900"},id={class:"text-stone-500"},Sd={class:"py-1"},Od=["onClick"],ad={class:""},Id={class:"text-stone-900"},Nd={class:"text-stone-500"},ld=Ne({__name:"RequestsDropdown",props:{requests:{},currentRequestId:{}},emits:["select"],setup(e,{emit:t}){const E=e,s=t,T=Qe(!1),r=Qe(null),n=Qe(null),R=Qe(!1),o=tt(()=>E.requests.find(N=>N.id===E.currentRequestId)),i=N=>{s("select",N),T.value=!1},A=()=>{if(!T.value||!r.value||!n.value)return;const N=r.value.getBoundingClientRect(),l=n.value.offsetHeight,H=window.innerHeight-N.bottom,Q=N.top;R.value=H<l&&Q>H},O=()=>{T.value=!T.value,T.value&&zT(A)};return Ms(()=>{window.addEventListener("scroll",A,!0),window.addEventListener("resize",A)}),Er(()=>{window.removeEventListener("scroll",A,!0),window.removeEventListener("resize",A)}),(N,l)=>(P(),y("div",Rd,[S("button",{ref_key:"dropdownButton",ref:r,onClick:O,class:"w-[360px] px-2 py-1.5 bg-white border border-stone-200 rounded text-sm flex items-center justify-start space-x-1.5 hover:bg-stone-50"},[v(ls,{verb:o.value.request.method},null,8,["verb"]),S("span",od,[S("span",Ad,ne(o.value.request.url.pathname),1),S("span",id,ne(Re(BT)(o.value.request.url)),1)]),v(Re(aa),{class:ge(["size-4",{"rotate-180":T.value}])},null,8,["class"])],512),T.value?(P(),y("div",{key:0,ref_key:"dropdownList",ref:n,class:ge(["absolute z-50 w-full bg-white border border-stone-200 rounded-md shadow-lg max-h-60 overflow-auto",{"bottom-[calc(100%+0.25rem)]":R.value,"mt-1":!R.value}])},[S("div",Sd,[(P(!0),y(le,null,Je(N.requests,C=>(P(),y("button",{key:C.id,onClick:H=>i(C.id),class:ge(["w-full px-2 py-1.5 flex items-center justify-start space-x-2 text-sm hover:bg-stone-200",{"bg-stone-100":C.id===N.currentRequestId}])},[v(ls,{verb:C.request.method},null,8,["verb"]),S("span",ad,[S("span",Id,ne(C.request.url.pathname),1),S("span",Nd,ne(Re(BT)(C.request.url)),1)])],10,Od))),128))])],2)):Ee("",!0)]))}}),_d={class:"z-[9999] text-stone-900 fixed left-0 bottom-0 bg-transparent cursor-pointer"},Cd={class:"p-1 pt-1.5"},cd=Ne({__name:"MinimizedDebugbar",setup(e){return(t,E)=>(P(),y("div",_d,[S("div",Cd,[v(oA)])]))}}),Ld={key:1,class:"z-[9999] text-stone-900 fixed left-0 bottom-0 w-full"},ud={class:"flex items-center justify-between bg-stone-100 border-b border-stone-200"},fd={class:"px-3 space-x-2"},pd=["title"],Dd={key:2,class:"z-[9999] text-stone-900 fixed left-0 bottom-0 w-full"},Pd={class:"flex grow"},dd={class:"flex flex-wrap-reverse justify-end items-center space-x-3 pr-1"},Md={class:"flex space-x-2"},Ud={class:"text-sm text-stone-600 font-medium tracking-wide"},hd={class:"flex items-center"},Gd={class:"flex items-center pl-1 space-x-2"},gd=["title"],md=Ne({__name:"Debugbar",setup(e){let t=OL(),E=ar();const s=Qe(null),T=rt({activeTab:"",minimized:E.config.minimized,isResizing:!1,isPolling:E.config.mode==="poll",height:E.config.height}),r=tt(()=>T.activeTab!=""),n=tt(()=>!1);let R=null;const o=()=>{console.log('Using debugbar in "polling mode". Consider using "ws" mode for better performance (requires ActionCable).'),setInterval(()=>{T.isPolling&&fetch(E.config.pollUrl).then(N=>N.json()).then(N=>{if(N.length==0)return;console.log(N);const l=t.addRequests(N);r.value||t.setCurrentRequestById(l[l.length-1]),fetch(E.config.pollUrl+"/confirm",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:l})})})},E.config.poll.interval)};E.config.mode==="ws"?R=Sa.createConsumer(E.config.actionCableUrl).subscriptions.create({channel:E.config.cable.channelName},{connected(){console.log("🟢 Connected to channel"),R.send({ids:[]})},disconnected(){console.log("🔴 Disconnected from channel")},received(N){if(N.length==0)return;const l=t.addRequests(N);r.value||t.setCurrentRequestById(l[l.length-1]),setTimeout(()=>{R.send({ids:l})},50)}}):E.config.mode==="poll"?o():console.log('Using debugbar in "offline mode", ideal for demos using fixtures.');const i=()=>{console.log("Clearing requests"),T.activeTab="",t.clearRequests(),R==null||R.send({clear:!0}),T.isPolling=!0},A=()=>{T.isPolling=!T.isPolling};Ms(()=>{window.onresize=function(){window.innerHeight<T.height&&(T.height=window.innerHeight-s.value.clientHeight)},document.onmousemove=function(N){T.isResizing&&(T.height=window.innerHeight-N.clientY-s.value.clientHeight)},document.onmouseup=function(N){T.isResizing=!1}});const O=N=>{window.innerHeight<T.height&&(T.height=window.innerHeight-s.value.clientHeight*2),T.activeTab=N};return(N,l)=>(P(),y(le,null,[T.minimized?(P(),Ae(cd,{key:0,onClick:l[0]||(l[0]=C=>T.minimized=!1)})):Ee("",!0),!T.minimized&&Re(t).currentRequest==null?(P(),y("div",Ld,[l[10]||(l[10]=S("div",{class:"h-0.5 bg-red-700 cursor-row-resize"},null,-1)),S("div",ud,[l[9]||(l[9]=S("div",{class:"px-5 py-1.5 italic"},"No request yet",-1)),S("div",fd,[Re(E).config.mode=="poll"?(P(),y("button",{key:0,onClick:A,title:T.isPolling?"Pause polling":"Resume polling"},[T.isPolling?(P(),Ae(Re(Sn),{key:0,class:"size-4"})):Ee("",!0),T.isPolling?Ee("",!0):(P(),Ae(Re(On),{key:1,class:"size-4"}))],8,pd)):Ee("",!0),S("button",{onClick:l[1]||(l[1]=C=>T.minimized=!0),title:"Hide in the corner"},[v(Re(An),{class:"size-4"})])])])])):Ee("",!0),!T.minimized&&Re(t).currentRequest?(P(),y("div",Dd,[S("div",{id:"draggable-bar",onMousedown:l[2]||(l[2]=C=>T.isResizing=!0),class:"h-0.5 bg-red-700 cursor-row-resize"},null,32),S("div",{id:"debugbar-header",ref_key:"header",ref:s,class:"flex flex-wrap-reverse justify-end px-1 items-center bg-stone-100 border-b-2 border-stone-300"},[S("div",Pd,[S("div",{onClick:l[3]||(l[3]=C=>T.minimized=!0),class:"p-1 pt-1.5"},[v(oA)]),(P(!0),y(le,null,Je(Re(t).currentRequest.dataForTabs,(C,H)=>(P(),Ae(_L,{key:"k",label:C.label,count:C==null?void 0:C.count,"is-active":H===T.activeTab,disabled:C.count==0,onClick:Q=>O(H)},{default:Te(()=>[ye(ne(C.label),1)]),_:2},1032,["label","count","is-active","disabled","onClick"]))),128)),n.value?(P(),y("button",{key:0,onClick:l[4]||(l[4]=C=>O("debug")),class:ge(["px-3 py-1.5 text-stone-600",{"bg-stone-300":T.activeTab=="debug"}])},[v(Re(Ia),{class:"size-4"})],2)):Ee("",!0)]),S("div",dd,[S("div",Md,[v(nd,{request:Re(t).currentRequest},null,8,["request"])]),S("div",{onClick:l[5]||(l[5]=C=>O("request")),class:"flex space-x-2 cursor-pointer"},[S("span",Ud,ne(Re(t).currentRequest.routeAlias),1),v(Nr,{code:Re(t).currentRequest.meta.status},null,8,["code"])]),S("div",hd,[v(ld,{requests:Re(t).requests,"current-request-id":Re(t).currentRequest.id,onSelect:l[6]||(l[6]=C=>Re(t).setCurrentRequestById(C))},null,8,["requests","current-request-id"]),S("div",Gd,[S("button",{onClick:i,title:"Clear all requests (frontend and backend)"},[v(Re(la),{class:"size-4"})]),Re(E).config.mode=="poll"?(P(),y("button",{key:0,onClick:A,title:T.isPolling?"Pause polling":"Resume polling"},[T.isPolling?(P(),Ae(Re(Sn),{key:0,class:"size-4"})):Ee("",!0),T.isPolling?Ee("",!0):(P(),Ae(Re(On),{key:1,class:"size-4"}))],8,gd)):Ee("",!0),r.value?Ee("",!0):(P(),y("button",{key:1,onClick:l[7]||(l[7]=C=>T.minimized=!0),title:"Hide in the corner"},[v(Re(An),{class:"size-4"})])),r.value?(P(),y("button",{key:2,onClick:l[8]||(l[8]=C=>T.activeTab=""),title:"Close"},[v(Re(_a),{class:"size-4"})])):Ee("",!0)])])])],512),T.activeTab!=""?(P(),Ae(Td,{key:0,style:ps(`height: ${T.height}px`),request:Re(t).currentRequest,activeTab:T.activeTab},null,8,["style","request","activeTab"])):Ee("",!0)])):Ee("",!0)],64))}}),Hd=`pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
|
42
42
|
Theme: GitHub
|
43
43
|
Description: Light theme as seen on github.com
|
44
44
|
Author: github.com
|
@@ -48,4 +48,4 @@ ${JSON.stringify(n,void 0,2)}`)}}}var PA=class{constructor(e){this.indentation=e
|
|
48
48
|
Outdated base version: https://github.com/primer/github-syntax-light
|
49
49
|
Current colors taken from GitHub's CSS
|
50
50
|
*/.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}*,: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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com
|
51
|
-
*/*,: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:Inter,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;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([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]:where(:not([hidden=until-found])){display:none}pre,pre code.hljs{margin:0!important;width:100%;padding:0!important}button{cursor:pointer}button[disabled]{cursor:not-allowed;opacity:.5}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.bottom-0{bottom:0}.bottom-\\[calc\\(100\\%\\+0\\.25rem\\)\\]{bottom:calc(100% + .25rem)}.left-0{left:0}.z-50{z-index:50}.z-\\[9999\\]{z-index:9999}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.mb-2{margin-bottom:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.mt-0\\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.inline{display:inline}.flex{display:flex}.table{display:table}.hidden{display:none}.size-3{width:.75rem;height:.75rem}.size-3\\.5{width:.875rem;height:.875rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.h-0\\.5{height:.125rem}.h-2{height:.5rem}.h-full{height:100%}.max-h-60{max-height:15rem}.w-1\\/2{width:50%}.w-16{width:4rem}.w-2{width:.5rem}.w-20{width:5rem}.w-24{width:6rem}.w-32{width:8rem}.w-36{width:9rem}.w-40{width:10rem}.w-\\[360px\\]{width:360px}.w-full{width:100%}.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))}.rotate-180{--tw-rotate: 180deg;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-auto{cursor:auto}.cursor-pointer{cursor:pointer}.cursor-row-resize{cursor:row-resize}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap-reverse{flex-wrap:wrap-reverse}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-between{justify-content:space-between}.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-1\\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.375rem * var(--tw-space-x-reverse));margin-left:calc(.375rem * 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-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * 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, 1))}.divide-stone-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(214 211 209 / var(--tw-divide-opacity, 1))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.text-nowrap{text-wrap:nowrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.rounded-t-sm{border-top-left-radius:.125rem;border-top-right-radius:.125rem}.border{border-width:1px}.border-0{border-width:0px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-stone-200{--tw-border-opacity: 1;border-color:rgb(231 229 228 / var(--tw-border-opacity, 1))}.border-stone-300{--tw-border-opacity: 1;border-color:rgb(214 211 209 / var(--tw-border-opacity, 1))}.\\!bg-amber-400{--tw-bg-opacity: 1 !important;background-color:rgb(251 191 36 / var(--tw-bg-opacity, 1))!important}.\\!bg-emerald-500{--tw-bg-opacity: 1 !important;background-color:rgb(16 185 129 / var(--tw-bg-opacity, 1))!important}.\\!bg-indigo-500{--tw-bg-opacity: 1 !important;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1))!important}.\\!bg-indigo-700{--tw-bg-opacity: 1 !important;background-color:rgb(67 56 202 / var(--tw-bg-opacity, 1))!important}.\\!bg-purple-700{--tw-bg-opacity: 1 !important;background-color:rgb(126 34 206 / var(--tw-bg-opacity, 1))!important}.\\!bg-red-400{--tw-bg-opacity: 1 !important;background-color:rgb(248 113 113 / var(--tw-bg-opacity, 1))!important}.\\!bg-red-700{--tw-bg-opacity: 1 !important;background-color:rgb(185 28 28 / var(--tw-bg-opacity, 1))!important}.\\!bg-sky-700{--tw-bg-opacity: 1 !important;background-color:rgb(3 105 161 / var(--tw-bg-opacity, 1))!important}.\\!bg-violet-500{--tw-bg-opacity: 1 !important;background-color:rgb(139 92 246 / var(--tw-bg-opacity, 1))!important}.bg-amber-400{--tw-bg-opacity: 1;background-color:rgb(251 191 36 / var(--tw-bg-opacity, 1))}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-amber-600{--tw-bg-opacity: 1;background-color:rgb(217 119 6 / var(--tw-bg-opacity, 1))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-emerald-500{--tw-bg-opacity: 1;background-color:rgb(16 185 129 / var(--tw-bg-opacity, 1))}.bg-emerald-600{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity, 1))}.bg-fuchsia-500{--tw-bg-opacity: 1;background-color:rgb(217 70 239 / var(--tw-bg-opacity, 1))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity, 1))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-red-700{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity, 1))}.bg-rose-500{--tw-bg-opacity: 1;background-color:rgb(244 63 94 / var(--tw-bg-opacity, 1))}.bg-sky-600{--tw-bg-opacity: 1;background-color:rgb(2 132 199 / var(--tw-bg-opacity, 1))}.bg-slate-700{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity, 1))}.bg-stone-100{--tw-bg-opacity: 1;background-color:rgb(245 245 244 / var(--tw-bg-opacity, 1))}.bg-stone-300{--tw-bg-opacity: 1;background-color:rgb(214 211 209 / var(--tw-bg-opacity, 1))}.bg-stone-400{--tw-bg-opacity: 1;background-color:rgb(168 162 158 / var(--tw-bg-opacity, 1))}.bg-stone-50{--tw-bg-opacity: 1;background-color:rgb(250 250 249 / var(--tw-bg-opacity, 1))}.bg-stone-700{--tw-bg-opacity: 1;background-color:rgb(68 64 60 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.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}.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-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pl-1{padding-left:.25rem}.pl-1\\.5{padding-left:.375rem}.pl-4{padding-left:1rem}.pr-1{padding-right:.25rem}.pr-3{padding-right:.75rem}.pr-8{padding-right:2rem}.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-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.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-8{line-height:2rem}.tracking-wide{letter-spacing:.025em}.\\!text-white{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-orange-600{--tw-text-opacity: 1;color:rgb(234 88 12 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-stone-400{--tw-text-opacity: 1;color:rgb(168 162 158 / var(--tw-text-opacity, 1))}.text-stone-500{--tw-text-opacity: 1;color:rgb(120 113 108 / var(--tw-text-opacity, 1))}.text-stone-600{--tw-text-opacity: 1;color:rgb(87 83 78 / var(--tw-text-opacity, 1))}.text-stone-800{--tw-text-opacity: 1;color:rgb(41 37 36 / var(--tw-text-opacity, 1))}.text-stone-900{--tw-text-opacity: 1;color:rgb(28 25 23 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.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)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}body{font-family:Inter,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-size:.875rem;line-height:1.25rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-optical-sizing:auto}.hover\\:bg-stone-200:hover{--tw-bg-opacity: 1;background-color:rgb(231 229 228 / var(--tw-bg-opacity, 1))}.hover\\:bg-stone-50:hover{--tw-bg-opacity: 1;background-color:rgb(250 250 249 / var(--tw-bg-opacity, 1))}@media (min-width: 640px){.sm\\:pl-0{padding-left:0}}`,bd=Ne({__name:"App",setup(e){return(t,E)=>(P(),y("div",null,[F(Re(Ss),{id:"__debugbar-shadow-root"},{default:Te(()=>[F(Hd),F(Re(is),null,{default:Te(()=>[ye(ne(Re(Bd)),1)]),_:1})]),_:1})]))}});LE.registerLanguage("sql",Mi);LE.registerLanguage("json",Ui);const yd=tI();jO(bd).use(zO).use(yd).use(SI).mount("#__debugbar");
|
51
|
+
*/*,: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:Inter,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;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([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]:where(:not([hidden=until-found])){display:none}pre,pre code.hljs{margin:0!important;width:100%;padding:0!important}button{cursor:pointer}button[disabled]{cursor:not-allowed;opacity:.5}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.bottom-0{bottom:0}.bottom-\\[calc\\(100\\%\\+0\\.25rem\\)\\]{bottom:calc(100% + .25rem)}.left-0{left:0}.z-50{z-index:50}.z-\\[9999\\]{z-index:9999}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.mb-2{margin-bottom:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.mt-0\\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.inline{display:inline}.flex{display:flex}.table{display:table}.hidden{display:none}.size-3{width:.75rem;height:.75rem}.size-3\\.5{width:.875rem;height:.875rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.h-0\\.5{height:.125rem}.h-2{height:.5rem}.h-full{height:100%}.max-h-60{max-height:15rem}.w-1\\/2{width:50%}.w-16{width:4rem}.w-2{width:.5rem}.w-20{width:5rem}.w-24{width:6rem}.w-32{width:8rem}.w-36{width:9rem}.w-40{width:10rem}.w-\\[360px\\]{width:360px}.w-full{width:100%}.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))}.rotate-180{--tw-rotate: 180deg;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-auto{cursor:auto}.cursor-pointer{cursor:pointer}.cursor-row-resize{cursor:row-resize}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap-reverse{flex-wrap:wrap-reverse}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-between{justify-content:space-between}.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-1\\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.375rem * var(--tw-space-x-reverse));margin-left:calc(.375rem * 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-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * 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, 1))}.divide-stone-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(214 211 209 / var(--tw-divide-opacity, 1))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.text-nowrap{text-wrap:nowrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.rounded-t-sm{border-top-left-radius:.125rem;border-top-right-radius:.125rem}.border{border-width:1px}.border-0{border-width:0px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-stone-200{--tw-border-opacity: 1;border-color:rgb(231 229 228 / var(--tw-border-opacity, 1))}.border-stone-300{--tw-border-opacity: 1;border-color:rgb(214 211 209 / var(--tw-border-opacity, 1))}.\\!bg-amber-400{--tw-bg-opacity: 1 !important;background-color:rgb(251 191 36 / var(--tw-bg-opacity, 1))!important}.\\!bg-emerald-500{--tw-bg-opacity: 1 !important;background-color:rgb(16 185 129 / var(--tw-bg-opacity, 1))!important}.\\!bg-indigo-500{--tw-bg-opacity: 1 !important;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1))!important}.\\!bg-indigo-700{--tw-bg-opacity: 1 !important;background-color:rgb(67 56 202 / var(--tw-bg-opacity, 1))!important}.\\!bg-purple-700{--tw-bg-opacity: 1 !important;background-color:rgb(126 34 206 / var(--tw-bg-opacity, 1))!important}.\\!bg-red-400{--tw-bg-opacity: 1 !important;background-color:rgb(248 113 113 / var(--tw-bg-opacity, 1))!important}.\\!bg-red-700{--tw-bg-opacity: 1 !important;background-color:rgb(185 28 28 / var(--tw-bg-opacity, 1))!important}.\\!bg-sky-700{--tw-bg-opacity: 1 !important;background-color:rgb(3 105 161 / var(--tw-bg-opacity, 1))!important}.\\!bg-violet-500{--tw-bg-opacity: 1 !important;background-color:rgb(139 92 246 / var(--tw-bg-opacity, 1))!important}.bg-amber-400{--tw-bg-opacity: 1;background-color:rgb(251 191 36 / var(--tw-bg-opacity, 1))}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-amber-600{--tw-bg-opacity: 1;background-color:rgb(217 119 6 / var(--tw-bg-opacity, 1))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-emerald-500{--tw-bg-opacity: 1;background-color:rgb(16 185 129 / var(--tw-bg-opacity, 1))}.bg-emerald-600{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity, 1))}.bg-fuchsia-500{--tw-bg-opacity: 1;background-color:rgb(217 70 239 / var(--tw-bg-opacity, 1))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity, 1))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-red-700{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity, 1))}.bg-rose-500{--tw-bg-opacity: 1;background-color:rgb(244 63 94 / var(--tw-bg-opacity, 1))}.bg-sky-600{--tw-bg-opacity: 1;background-color:rgb(2 132 199 / var(--tw-bg-opacity, 1))}.bg-slate-700{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity, 1))}.bg-stone-100{--tw-bg-opacity: 1;background-color:rgb(245 245 244 / var(--tw-bg-opacity, 1))}.bg-stone-300{--tw-bg-opacity: 1;background-color:rgb(214 211 209 / var(--tw-bg-opacity, 1))}.bg-stone-400{--tw-bg-opacity: 1;background-color:rgb(168 162 158 / var(--tw-bg-opacity, 1))}.bg-stone-50{--tw-bg-opacity: 1;background-color:rgb(250 250 249 / var(--tw-bg-opacity, 1))}.bg-stone-700{--tw-bg-opacity: 1;background-color:rgb(68 64 60 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.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}.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-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pl-1{padding-left:.25rem}.pl-1\\.5{padding-left:.375rem}.pl-4{padding-left:1rem}.pr-1{padding-right:.25rem}.pr-3{padding-right:.75rem}.pr-8{padding-right:2rem}.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-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.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-8{line-height:2rem}.tracking-wide{letter-spacing:.025em}.\\!text-white{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-orange-600{--tw-text-opacity: 1;color:rgb(234 88 12 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-stone-400{--tw-text-opacity: 1;color:rgb(168 162 158 / var(--tw-text-opacity, 1))}.text-stone-500{--tw-text-opacity: 1;color:rgb(120 113 108 / var(--tw-text-opacity, 1))}.text-stone-600{--tw-text-opacity: 1;color:rgb(87 83 78 / var(--tw-text-opacity, 1))}.text-stone-800{--tw-text-opacity: 1;color:rgb(41 37 36 / var(--tw-text-opacity, 1))}.text-stone-900{--tw-text-opacity: 1;color:rgb(28 25 23 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.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)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}body{font-family:Inter,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-size:.875rem;line-height:1.25rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-optical-sizing:auto}.hover\\:bg-stone-200:hover{--tw-bg-opacity: 1;background-color:rgb(231 229 228 / var(--tw-bg-opacity, 1))}.hover\\:bg-stone-50:hover{--tw-bg-opacity: 1;background-color:rgb(250 250 249 / var(--tw-bg-opacity, 1))}@media (min-width: 640px){.sm\\:pl-0{padding-left:0}}`,bd=Ne({__name:"App",setup(e){return(t,E)=>(P(),y("div",null,[v(Re(Ss),{id:"__debugbar-shadow-root"},{default:Te(()=>[v(md),v(Re(is),null,{default:Te(()=>[ye(ne(Re(Hd)),1)]),_:1})]),_:1})]))}});cE.registerLanguage("sql",Mi);cE.registerLanguage("json",Ui);const Bd=ea();jO(bd).use(zO).use(Bd).use(ia).mount("#__debugbar");
|